diff options
| author | ruki <[email protected]> | 2022-08-22 22:42:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-22 22:42:30 +0800 |
| commit | a82eeeb6a50d00b8fadaf020e545b11d296b6c5b (patch) | |
| tree | dfa056136354d6810f9d74973ad0f92534272cac /xmake/toolchains/xcode/load_macosx.lua | |
| parent | b359ad6ccb676c0bd3f8cec8004111e339716e87 (diff) | |
add frameworks for catalyst
Diffstat (limited to 'xmake/toolchains/xcode/load_macosx.lua')
| -rw-r--r-- | xmake/toolchains/xcode/load_macosx.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/xmake/toolchains/xcode/load_macosx.lua b/xmake/toolchains/xcode/load_macosx.lua index 107e5a9da..69afce0e9 100644 --- a/xmake/toolchains/xcode/load_macosx.lua +++ b/xmake/toolchains/xcode/load_macosx.lua @@ -56,6 +56,23 @@ function main(toolchain) toolchain:add("scflags", "-sdk " .. xcode_sysroot) toolchain:add("scshflags", "-sdk " .. xcode_sysroot) toolchain:add("scldflags", "-sdk " .. xcode_sysroot) + if appledev == "catalyst" then + toolchain:add("cxflags", {"-I", path.join(xcode_sysroot, "System/iOSSupport/usr/include")}) + toolchain:add("asflags", {"-I", path.join(xcode_sysroot, "System/iOSSupport/usr/include")}) + toolchain:add("mxflags", {"-I", path.join(xcode_sysroot, "System/iOSSupport/usr/include")}) + toolchain:add("ldflags", {"-L", path.join(xcode_sysroot, "System/iOSSupport/usr/lib")}) + toolchain:add("shflags", {"-L", path.join(xcode_sysroot, "System/iOSSupport/usr/lib")}) + toolchain:add("scldflags", {"-L", path.join(xcode_sysroot, "System/iOSSupport/usr/lib")}) + toolchain:add("scshflags", {"-L", path.join(xcode_sysroot, "System/iOSSupport/usr/lib")}) + toolchain:add("cxflags", {"-iframework", path.join(xcode_sysroot, "System/iOSSupport/System/Library/Frameworks")}) + toolchain:add("asflags", {"-iframework", path.join(xcode_sysroot, "System/iOSSupport/System/Library/Frameworks")}) + toolchain:add("ldflags", {"-iframework", path.join(xcode_sysroot, "System/iOSSupport/System/Library/Frameworks")}) + toolchain:add("shflags", {"-iframework", path.join(xcode_sysroot, "System/iOSSupport/System/Library/Frameworks")}) + toolchain:add("mxflags", {"-iframework", path.join(xcode_sysroot, "System/iOSSupport/System/Library/Frameworks")}) + toolchain:add("scflags", {"-iframework", path.join(xcode_sysroot, "System/iOSSupport/System/Library/Frameworks")}) + toolchain:add("scshflags", {"-iframework", path.join(xcode_sysroot, "System/iOSSupport/System/Library/Frameworks")}) + toolchain:add("scldflags", {"-iframework", path.join(xcode_sysroot, "System/iOSSupport/System/Library/Frameworks")}) + end end -- init flags for c/c++ |
