summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_nmap.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-04-06 22:08:30 +0800
committerruki <[email protected]>2019-04-06 22:08:30 +0800
commitfd990589bde78eb58393d7b19438c860b7db2d7c (patch)
treea5668e2970383c9560e53810aa0c26e6710014ad /xmake/modules/detect/tools/find_nmap.lua
parent868d9e0667cc66ec9fd1dc5c1e78539383ed3e9f (diff)
improve ping
Diffstat (limited to 'xmake/modules/detect/tools/find_nmap.lua')
-rw-r--r--xmake/modules/detect/tools/find_nmap.lua40
1 files changed, 40 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_nmap.lua b/xmake/modules/detect/tools/find_nmap.lua
new file mode 100644
index 000000000..5eaeea5ca
--- /dev/null
+++ b/xmake/modules/detect/tools/find_nmap.lua
@@ -0,0 +1,40 @@
+--!A cross-platform build utility based on Lua
+--
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements. See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership. The ASF licenses this file
+-- to you 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 ruki
+-- @file find_nmap.lua
+--
+
+-- imports
+import("lib.detect.find_program")
+
+-- find nmap
+--
+--
+-- @param opt the argument options
+--
+-- @return program
+--
+function main(opt)
+
+ -- find program
+ opt = opt or {}
+ return find_program(opt.program or "nmap", opt)
+end