Merge pull request #505 from naithar/fix/ios-simulator-build
iOS arm64 simulator support.pull/507/head
commit
e2831ff5fa
|
@ -145,6 +145,11 @@ opts.Add(EnumVariable(
|
||||||
'arm64',
|
'arm64',
|
||||||
['armv7', 'arm64', 'x86_64']
|
['armv7', 'arm64', 'x86_64']
|
||||||
))
|
))
|
||||||
|
opts.Add(BoolVariable(
|
||||||
|
'ios_simulator',
|
||||||
|
'Target iOS Simulator',
|
||||||
|
False
|
||||||
|
))
|
||||||
opts.Add(
|
opts.Add(
|
||||||
'IPHONEPATH',
|
'IPHONEPATH',
|
||||||
'Path to iPhone toolchain',
|
'Path to iPhone toolchain',
|
||||||
|
@ -227,9 +232,10 @@ elif env['platform'] == 'osx':
|
||||||
env.Append(CCFLAGS=['-O3'])
|
env.Append(CCFLAGS=['-O3'])
|
||||||
|
|
||||||
elif env['platform'] == 'ios':
|
elif env['platform'] == 'ios':
|
||||||
if env['ios_arch'] == 'x86_64':
|
if env['ios_simulator']:
|
||||||
sdk_name = 'iphonesimulator'
|
sdk_name = 'iphonesimulator'
|
||||||
env.Append(CCFLAGS=['-mios-simulator-version-min=10.0'])
|
env.Append(CCFLAGS=['-mios-simulator-version-min=10.0'])
|
||||||
|
env['LIBSUFFIX'] = ".simulator" + env['LIBSUFFIX']
|
||||||
else:
|
else:
|
||||||
sdk_name = 'iphoneos'
|
sdk_name = 'iphoneos'
|
||||||
env.Append(CCFLAGS=['-miphoneos-version-min=10.0'])
|
env.Append(CCFLAGS=['-miphoneos-version-min=10.0'])
|
||||||
|
|
Loading…
Reference in New Issue