diff options
| author | ruki <[email protected]> | 2015-06-11 17:16:30 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-11 17:16:30 +0800 |
| commit | 1e8ddd3262352cc199b51493501a4ce5f48e69d2 (patch) | |
| tree | 1d465819431b197a7b6410636716dc17630f7b7e /xmake/scripts/platform | |
| parent | 34850cd997a6e3b29388b126675feb8c5755404e (diff) | |
add flags for platform
Diffstat (limited to 'xmake/scripts/platform')
| -rw-r--r-- | xmake/scripts/platform/iphoneos/iphoneos.lua | 6 | ||||
| -rw-r--r-- | xmake/scripts/platform/iphonesimulator/iphonesimulator.lua | 6 | ||||
| -rw-r--r-- | xmake/scripts/platform/macosx/macosx.lua | 7 |
3 files changed, 19 insertions, 0 deletions
diff --git a/xmake/scripts/platform/iphoneos/iphoneos.lua b/xmake/scripts/platform/iphoneos/iphoneos.lua index 75f8453a3..3d8538e2a 100644 --- a/xmake/scripts/platform/iphoneos/iphoneos.lua +++ b/xmake/scripts/platform/iphoneos/iphoneos.lua @@ -56,6 +56,12 @@ function iphoneos.make(configs) -- init xcode sdk directory configs.xcode_sdkdir = config.get("xcode_dir") .. "/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS" .. config.get("xcode_sdkver") .. ".sdk" + -- init flags + configs.cxflags = "-isysroot " .. configs.xcode_sdkdir + configs.mxflags = "-isysroot " .. configs.xcode_sdkdir + configs.ldflags = "-isysroot " .. configs.xcode_sdkdir + configs.shflags = "-isysroot " .. configs.xcode_sdkdir + end -- get the option menu for action: xmake config or global diff --git a/xmake/scripts/platform/iphonesimulator/iphonesimulator.lua b/xmake/scripts/platform/iphonesimulator/iphonesimulator.lua index fb9fd7e3e..effab15c3 100644 --- a/xmake/scripts/platform/iphonesimulator/iphonesimulator.lua +++ b/xmake/scripts/platform/iphonesimulator/iphonesimulator.lua @@ -56,6 +56,12 @@ function iphonesimulator.make(configs) -- init xcode sdk directory configs.xcode_sdkdir = config.get("xcode_dir") .. "/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator" .. config.get("xcode_sdkver") .. ".sdk" + -- init flags + configs.cxflags = "-isysroot " .. configs.xcode_sdkdir + configs.mxflags = "-isysroot " .. configs.xcode_sdkdir + configs.ldflags = "-isysroot " .. configs.xcode_sdkdir + configs.shflags = "-isysroot " .. configs.xcode_sdkdir + end -- get the option menu for action: xmake config or global diff --git a/xmake/scripts/platform/macosx/macosx.lua b/xmake/scripts/platform/macosx/macosx.lua index 7b8d40e4d..5bdc6f1f3 100644 --- a/xmake/scripts/platform/macosx/macosx.lua +++ b/xmake/scripts/platform/macosx/macosx.lua @@ -55,6 +55,13 @@ function macosx.make(configs) -- init xcode sdk directory configs.xcode_sdkdir = config.get("xcode_dir") .. "/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX" .. config.get("xcode_sdkver") .. ".sdk" + + -- init flags + configs.cxflags = "-isysroot " .. configs.xcode_sdkdir + configs.mxflags = "-isysroot " .. configs.xcode_sdkdir + configs.ldflags = "-isysroot " .. configs.xcode_sdkdir + configs.shflags = "-isysroot " .. configs.xcode_sdkdir + end -- get the option menu for action: xmake config or global |
