diff options
| author | OpportunityLiu <[email protected]> | 2019-07-16 23:25:53 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-17 08:45:36 +0800 |
| commit | 887d97e20023e347fb8920d792aa5024b3d8203b (patch) | |
| tree | 5e7115966fe9e9a2493a870e70738be313c71781 /xmake/modules/detect/tools/find_cudagdb.lua | |
| parent | 54386754982c5580e9d351484eabd45ebfd20c48 (diff) | |
add find cuda tools
Diffstat (limited to 'xmake/modules/detect/tools/find_cudagdb.lua')
| -rw-r--r-- | xmake/modules/detect/tools/find_cudagdb.lua | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_cudagdb.lua b/xmake/modules/detect/tools/find_cudagdb.lua new file mode 100644 index 000000000..15d501ba4 --- /dev/null +++ b/xmake/modules/detect/tools/find_cudagdb.lua @@ -0,0 +1,39 @@ +--!A cross-platform build utility based on Lua +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- +-- Copyright (C) 2015 - 2019, TBOOX Open Source Group. +-- +-- @author OpportunityLiu +-- @file find_cudagdb.lua +-- + +-- imports +import("private.detect.find_cudatool") + +-- find cudagdb +-- +-- @param opt the argument options, .e.g {version = true} +-- +-- @return program, version +-- +-- @code +-- +-- local cudagdb = find_cudagdb() +-- local cudagdb, version = find_cudagdb({program = "cuda-gdb", version = true}) +-- +-- @endcode +-- +function main(opt) + return find_cudatool("cuda-gdb", "(%d+%.?%d*%.?%d*.-)%s+release", opt) +end |
