summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-26 16:18:10 +0800
committerruki <[email protected]>2022-03-26 16:18:10 +0800
commit8e9f4bac621c3158b3c82ec9fe149b54a1f644a2 (patch)
tree43ba3743de8ce7ad122269e73e9c52464947a9c4 /xmake/modules/package/tools/xmake.lua
parentac16d2aa9c2c84009cc55a4b27fbbc70fd398c1b (diff)
add --appledev for xrepo
Diffstat (limited to 'xmake/modules/package/tools/xmake.lua')
-rw-r--r--xmake/modules/package/tools/xmake.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/xmake.lua b/xmake/modules/package/tools/xmake.lua
index 53f977911..a0934db1e 100644
--- a/xmake/modules/package/tools/xmake.lua
+++ b/xmake/modules/package/tools/xmake.lua
@@ -52,8 +52,12 @@ function _get_configs(package, configs)
if vs_runtime then
table.insert(configs, "--vs_runtime=" .. vs_runtime)
end
- end
- if package:is_plat("cross") then
+ elseif package:is_plat("iphoneos", "watchos", "appletvos") then
+ local appledev = package:config("appledev")
+ if appledev then
+ table.insert(configs, "--appledev=" .. appledev)
+ end
+ elseif package:is_plat("cross") then
local cross = _get_config_from_toolchains(package, "cross") or get_config("cross")
if cross then
table.insert(configs, "--cross=" .. cross)