From: Adrian Kashivskyy Date: Mon, 26 Nov 2018 18:28:59 +0000 (+0100) Subject: Add ability to specify iPhoneSimulator ARCHS X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~389^2~9^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7c134617d39e9c3500d489ddf0563803e0a3599;p=platform%2Fupstream%2Fopencv.git Add ability to specify iPhoneSimulator ARCHS --- diff --git a/platforms/ios/build_framework.py b/platforms/ios/build_framework.py index 8b828fa..806f346 100755 --- a/platforms/ios/build_framework.py +++ b/platforms/ios/build_framework.py @@ -283,12 +283,15 @@ if __name__ == "__main__": parser.add_argument('--disable-bitcode', default=False, dest='bitcodedisabled', action='store_true', help='disable bitcode (enabled by default)') parser.add_argument('--iphoneos_deployment_target', default=os.environ.get('IPHONEOS_DEPLOYMENT_TARGET', IPHONEOS_DEPLOYMENT_TARGET), help='specify IPHONEOS_DEPLOYMENT_TARGET') parser.add_argument('--iphoneos_archs', default='armv7,armv7s,arm64', help='select iPhoneOS target ARCHS') + parser.add_argument('--iphonesimulator_archs', default='i386,x86_64', help='select iPhoneSimulator target ARCHS') args = parser.parse_args() os.environ['IPHONEOS_DEPLOYMENT_TARGET'] = args.iphoneos_deployment_target print('Using IPHONEOS_DEPLOYMENT_TARGET=' + os.environ['IPHONEOS_DEPLOYMENT_TARGET']) iphoneos_archs = args.iphoneos_archs.split(',') print('Using iPhoneOS ARCHS=' + str(iphoneos_archs)) + iphonesimulator_archs = args.iphonesimulator_archs.split(',') + print('Using iPhoneSimulator ARCHS=' + str(iphonesimulator_archs)) b = iOSBuilder(args.opencv, args.contrib, args.dynamic, args.bitcodedisabled, args.without, [ @@ -296,6 +299,6 @@ if __name__ == "__main__": ] if os.environ.get('BUILD_PRECOMMIT', None) else [ (iphoneos_archs, "iPhoneOS"), - (["i386", "x86_64"], "iPhoneSimulator"), + (iphonesimulator_archs, "iPhoneSimulator"), ]) b.build(args.out)