blob: fcf62aa59d1f83eda9206ead2131998bb1c9619d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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])
|