summaryrefslogtreecommitdiff
path: root/xmake/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-15 10:51:07 +0800
committerruki <[email protected]>2015-12-15 10:51:07 +0800
commitda041a08d3e2faf3bdb88e9699af4a54f7a50f99 (patch)
tree3e062b11b640adde50ea4c183c92f6bf3fd71d75 /xmake/scripts
parent5152870f70f4cd527c619f28493d834319b519ca (diff)
update tbox for linux and fix prober
Diffstat (limited to 'xmake/scripts')
-rw-r--r--xmake/scripts/platform/iphoneos/prober.lua6
-rw-r--r--xmake/scripts/platform/iphonesimulator/prober.lua6
-rw-r--r--xmake/scripts/platform/linux/prober.lua6
-rw-r--r--xmake/scripts/platform/macosx/prober.lua6
-rw-r--r--xmake/scripts/platform/mingw/prober.lua6
-rw-r--r--xmake/scripts/platform/watchos/prober.lua6
-rw-r--r--xmake/scripts/platform/watchsimulator/prober.lua6
-rw-r--r--xmake/scripts/platform/windows/prober.lua6
8 files changed, 40 insertions, 8 deletions
diff --git a/xmake/scripts/platform/iphoneos/prober.lua b/xmake/scripts/platform/iphoneos/prober.lua
index f63f8ea5c..3b096fba2 100644
--- a/xmake/scripts/platform/iphoneos/prober.lua
+++ b/xmake/scripts/platform/iphoneos/prober.lua
@@ -240,7 +240,11 @@ function prober._probe_toolpath(configs, kind, cross, name, description)
if toolpath then configs.set(kind, toolpath) end
-- trace
- utils.verbose("checking for %s (%s) ... %s", description, kind, utils.ifelse(toolpath, path.filename(toolpath), "no"))
+ if toolpath then
+ utils.verbose("checking for %s (%s) ... %s", description, kind, path.filename(toolpath), "no")
+ else
+ utils.verbose("checking for %s (%s) ... no", description, kind)
+ end
-- ok
return true
diff --git a/xmake/scripts/platform/iphonesimulator/prober.lua b/xmake/scripts/platform/iphonesimulator/prober.lua
index 3683b9c57..86f6b70c6 100644
--- a/xmake/scripts/platform/iphonesimulator/prober.lua
+++ b/xmake/scripts/platform/iphonesimulator/prober.lua
@@ -240,7 +240,11 @@ function prober._probe_toolpath(configs, kind, cross, name, description)
if toolpath then configs.set(kind, toolpath) end
-- trace
- utils.verbose("checking for %s (%s) ... %s", description, kind, utils.ifelse(toolpath, path.filename(toolpath), "no"))
+ if toolpath then
+ utils.verbose("checking for %s (%s) ... %s", description, kind, path.filename(toolpath), "no")
+ else
+ utils.verbose("checking for %s (%s) ... no", description, kind)
+ end
-- ok
return true
diff --git a/xmake/scripts/platform/linux/prober.lua b/xmake/scripts/platform/linux/prober.lua
index b476b0b8a..91b2ff685 100644
--- a/xmake/scripts/platform/linux/prober.lua
+++ b/xmake/scripts/platform/linux/prober.lua
@@ -132,7 +132,11 @@ function prober._probe_toolpath(configs, kind, cross, name, description)
if toolpath then configs.set(kind, toolpath) end
-- trace
- utils.verbose("checking for %s (%s) ... %s", description, kind, utils.ifelse(toolpath, path.filename(toolpath), "no"))
+ if toolpath then
+ utils.verbose("checking for %s (%s) ... %s", description, kind, path.filename(toolpath), "no")
+ else
+ utils.verbose("checking for %s (%s) ... no", description, kind)
+ end
-- ok
return true
diff --git a/xmake/scripts/platform/macosx/prober.lua b/xmake/scripts/platform/macosx/prober.lua
index d7f031c12..d4602e22a 100644
--- a/xmake/scripts/platform/macosx/prober.lua
+++ b/xmake/scripts/platform/macosx/prober.lua
@@ -240,7 +240,11 @@ function prober._probe_toolpath(configs, kind, cross, name, description)
if toolpath then configs.set(kind, toolpath) end
-- trace
- utils.verbose("checking for %s (%s) ... %s", description, kind, utils.ifelse(toolpath, path.filename(toolpath), "no"))
+ if toolpath then
+ utils.verbose("checking for %s (%s) ... %s", description, kind, path.filename(toolpath), "no")
+ else
+ utils.verbose("checking for %s (%s) ... no", description, kind)
+ end
-- ok
return true
diff --git a/xmake/scripts/platform/mingw/prober.lua b/xmake/scripts/platform/mingw/prober.lua
index f70449697..b8471485f 100644
--- a/xmake/scripts/platform/mingw/prober.lua
+++ b/xmake/scripts/platform/mingw/prober.lua
@@ -132,7 +132,11 @@ function prober._probe_toolpath(configs, kind, cross, name, description)
if toolpath then configs.set(kind, toolpath) end
-- trace
- utils.verbose("checking for %s (%s) ... %s", description, kind, utils.ifelse(toolpath, path.filename(toolpath), "no"))
+ if toolpath then
+ utils.verbose("checking for %s (%s) ... %s", description, kind, path.filename(toolpath), "no")
+ else
+ utils.verbose("checking for %s (%s) ... no", description, kind)
+ end
-- ok
return true
diff --git a/xmake/scripts/platform/watchos/prober.lua b/xmake/scripts/platform/watchos/prober.lua
index 8428909c4..b6563603c 100644
--- a/xmake/scripts/platform/watchos/prober.lua
+++ b/xmake/scripts/platform/watchos/prober.lua
@@ -240,7 +240,11 @@ function prober._probe_toolpath(configs, kind, cross, name, description)
if toolpath then configs.set(kind, toolpath) end
-- trace
- utils.verbose("checking for %s (%s) ... %s", description, kind, utils.ifelse(toolpath, path.filename(toolpath), "no"))
+ if toolpath then
+ utils.verbose("checking for %s (%s) ... %s", description, kind, path.filename(toolpath), "no")
+ else
+ utils.verbose("checking for %s (%s) ... no", description, kind)
+ end
-- ok
return true
diff --git a/xmake/scripts/platform/watchsimulator/prober.lua b/xmake/scripts/platform/watchsimulator/prober.lua
index 29564edf1..a14d92054 100644
--- a/xmake/scripts/platform/watchsimulator/prober.lua
+++ b/xmake/scripts/platform/watchsimulator/prober.lua
@@ -240,7 +240,11 @@ function prober._probe_toolpath(configs, kind, cross, name, description)
if toolpath then configs.set(kind, toolpath) end
-- trace
- utils.verbose("checking for %s (%s) ... %s", description, kind, utils.ifelse(toolpath, path.filename(toolpath), "no"))
+ if toolpath then
+ utils.verbose("checking for %s (%s) ... %s", description, kind, path.filename(toolpath), "no")
+ else
+ utils.verbose("checking for %s (%s) ... no", description, kind)
+ end
-- ok
return true
diff --git a/xmake/scripts/platform/windows/prober.lua b/xmake/scripts/platform/windows/prober.lua
index d32fac686..d5ccdef88 100644
--- a/xmake/scripts/platform/windows/prober.lua
+++ b/xmake/scripts/platform/windows/prober.lua
@@ -216,7 +216,11 @@ function prober._probe_toolpath(configs, kind, name, description)
if toolpath then configs.set(kind, toolpath) end
-- trace
- utils.verbose("checking for %s (%s) ... %s", description, kind, utils.ifelse(toolpath, path.filename(toolpath), "no"))
+ if toolpath then
+ utils.verbose("checking for %s (%s) ... %s", description, kind, path.filename(toolpath), "no")
+ else
+ utils.verbose("checking for %s (%s) ... no", description, kind)
+ end
-- ok
return true