|
|
@@ -52,6 +52,11 @@ function toolchain(_buildDir, _libDir)
|
|
|
androidPlatform = "android-" .. _OPTIONS["with-android"]
|
|
|
end
|
|
|
|
|
|
+ local iosPlatform = "8.0"
|
|
|
+ if _OPTIONS["with-ios"] then
|
|
|
+ iosPlatform = _OPTIONS["with-ios"]
|
|
|
+ end
|
|
|
+
|
|
|
if _ACTION == "gmake" then
|
|
|
|
|
|
if nil == _OPTIONS["gcc"] then
|
|
|
@@ -672,14 +677,14 @@ function toolchain(_buildDir, _libDir)
|
|
|
libdirs { _libDir .. "lib/ios-arm" }
|
|
|
linkoptions {
|
|
|
"-arch armv7",
|
|
|
- "--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk",
|
|
|
- "-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/lib/system",
|
|
|
- "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks",
|
|
|
- "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/PrivateFrameworks",
|
|
|
+ "--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS" ..iosPlatform .. ".sdk",
|
|
|
+ "-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS" ..iosPlatform .. ".sdk/usr/lib/system",
|
|
|
+ "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS" ..iosPlatform .. ".sdk/System/Library/Frameworks",
|
|
|
+ "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS" ..iosPlatform .. ".sdk/System/Library/PrivateFrameworks",
|
|
|
}
|
|
|
buildoptions {
|
|
|
"-arch armv7",
|
|
|
- "--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk",
|
|
|
+ "--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS" ..iosPlatform .. ".sdk",
|
|
|
}
|
|
|
|
|
|
configuration { "ios-simulator" }
|
|
|
@@ -688,14 +693,14 @@ function toolchain(_buildDir, _libDir)
|
|
|
libdirs { _libDir .. "lib/ios-simulator" }
|
|
|
linkoptions {
|
|
|
"-arch i386",
|
|
|
- "--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk",
|
|
|
- "-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/system",
|
|
|
- "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/Frameworks",
|
|
|
- "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/PrivateFrameworks",
|
|
|
+ "--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator" ..iosPlatform .. ".sdk",
|
|
|
+ "-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator" ..iosPlatform .. ".sdk/usr/lib/system",
|
|
|
+ "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator" ..iosPlatform .. ".sdk/System/Library/Frameworks",
|
|
|
+ "-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator" ..iosPlatform .. ".sdk/System/Library/PrivateFrameworks",
|
|
|
}
|
|
|
buildoptions {
|
|
|
"-arch i386",
|
|
|
- "--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk",
|
|
|
+ "--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator" ..iosPlatform .. ".sdk",
|
|
|
}
|
|
|
|
|
|
configuration { "qnx-arm" }
|