From 659d77e6c9de550f076164d4a812b699edece3a1 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 7 Jun 2021 23:57:18 +0800 Subject: add appletvos platform --- xmake/toolchains/xcode/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmake/toolchains/xcode/xmake.lua') diff --git a/xmake/toolchains/xcode/xmake.lua b/xmake/toolchains/xcode/xmake.lua index 67a58cbbb..b4d8c3d66 100644 --- a/xmake/toolchains/xcode/xmake.lua +++ b/xmake/toolchains/xcode/xmake.lua @@ -46,6 +46,10 @@ toolchain("xcode") arch = toolchain:arch() simulator = (arch == "i386") cross = simulator and "xcrun -sdk watchsimulator " or "xcrun -sdk watchos " + elseif toolchain:is_plat("appletvos") then + arch = toolchain:arch() + simulator = (arch == "i386" or arch == "x86_64") + cross = simulator and "xcrun -sdk appletvsimulator " or "xcrun -sdk appletvos " else raise("unknown platform for xcode!") end -- cgit v1.3.1