diff --git a/ios_arm64_cross.txt b/ios_arm64_cross.txt new file mode 100644 index 00000000..8baae9d5 --- /dev/null +++ b/ios_arm64_cross.txt @@ -0,0 +1,22 @@ +# build for the ios simulator(Mac) & iphone devices + +[binaries] +cpp = ['clang++', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk'] +ar = 'ar' +strip = 'strip' + +[properties] +root = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer' +has_function_printf = true + +[built-in options] +cpp_args = ['-miphoneos-version-min=11.0'] +cpp_link_args = ['-miphoneos-version-min=11.0'] + +[host_machine] +system = 'darwin' +subsystem = 'ios' +kernel = 'xnu' +cpu_family = 'aarch64' +cpu = 'aarch64' +endian = 'little' diff --git a/ios_x86_64_cross.txt b/ios_x86_64_cross.txt new file mode 100644 index 00000000..db051412 --- /dev/null +++ b/ios_x86_64_cross.txt @@ -0,0 +1,22 @@ +# build for the ios simulator(Intel) + +[binaries] +cpp = ['clang++', '-arch', 'x86_64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk'] +ar = 'ar' +strip = 'strip' + +[properties] +root = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer' +has_function_printf = true + +[built-in options] +cpp_args = ['-miphoneos-version-min=11.0'] +cpp_link_args = ['-miphoneos-version-min=11.0'] + +[host_machine] +system = 'darwin' +subsystem = 'ios' +kernel = 'xnu' +cpu_family = 'x86_64' +cpu = 'x86_64' +endian = 'little'