summaryrefslogtreecommitdiff
path: root/build_common/ios/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'build_common/ios/SConscript')
-rw-r--r--build_common/ios/SConscript18
1 files changed, 18 insertions, 0 deletions
diff --git a/build_common/ios/SConscript b/build_common/ios/SConscript
new file mode 100644
index 000000000..fcf62aa59
--- /dev/null
+++ b/build_common/ios/SConscript
@@ -0,0 +1,18 @@
+##
+# This script set ios specific flags (GNU GCC)
+#
+##
+Import('env')
+
+# setting of IOS is almost the same as Darwin(MAC OSX)
+env.SConscript('../darwin/SConscript')
+
+sys_version = env.get('SYS_VERSION')
+if env.get('TARGET_ARCH') in ['i386', 'x86_64']: #Simulator
+ flag = '-mios-simulator-version-min=' + sys_version
+ env.AppendUnique(CCFLAGS = [flag])
+ env.AppendUnique(LINKFLAGS = [flag])
+else:
+ flag = '-miphoneos-version-min=' + sys_version
+ env.AppendUnique(CCFLAGS = [flag])
+ env.AppendUnique(LINKFLAGS = [flag]) \ No newline at end of file