summaryrefslogtreecommitdiff
path: root/xmake/toolchains/xcode/check.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-13 23:33:15 +0800
committerruki <[email protected]>2023-10-13 23:33:15 +0800
commit72c1a7a5c184b855bb083411d6547b5ac98009c7 (patch)
tree637266e44141c8d2c7f0db92980fc74b4f9befe2 /xmake/toolchains/xcode/check.lua
parent97ffd7a145521e930a237e8977e73fdf3d41dbf4 (diff)
add apple xros support
Diffstat (limited to 'xmake/toolchains/xcode/check.lua')
-rw-r--r--xmake/toolchains/xcode/check.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/toolchains/xcode/check.lua b/xmake/toolchains/xcode/check.lua
index 40c05095c..225e84284 100644
--- a/xmake/toolchains/xcode/check.lua
+++ b/xmake/toolchains/xcode/check.lua
@@ -86,6 +86,8 @@ function main(toolchain)
cross = simulator and "xcrun -sdk watchsimulator " or "xcrun -sdk watchos "
elseif toolchain:is_plat("appletvos") then
cross = simulator and "xcrun -sdk appletvsimulator " or "xcrun -sdk appletvos "
+ elseif toolchain:is_plat("applexros") then
+ cross = simulator and "xcrun -sdk xrsimulator " or "xcrun -sdk xros "
else
raise("unknown platform for xcode!")
end
@@ -109,6 +111,9 @@ function main(toolchain)
elseif toolchain:is_plat("appletvos") then
local platname = simulator and "AppleTVSimulator" or "AppleTVOS"
xcode_sysroot = format("%s/Contents/Developer/Platforms/%s.platform/Developer/SDKs/%s%s.sdk", xcode.sdkdir, platname, platname, xcode_sdkver)
+ elseif toolchain:is_plat("applexros") then
+ local platname = simulator and "XRSimulator" or "XROS"
+ xcode_sysroot = format("%s/Contents/Developer/Platforms/%s.platform/Developer/SDKs/%s%s.sdk", xcode.sdkdir, platname, platname, xcode_sdkver)
end
else
-- maybe it is from CommandLineTools, e.g. /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk