|
| 1 | +From 3e9f708e0dd45ab9212043c602e6ebbb67b02846 Mon Sep 17 00:00:00 2001 |
| 2 | +From: qianlongxu < [email protected]> |
| 3 | +Date: Mon, 31 Jul 2023 13:30:25 +0800 |
| 4 | +Subject: [PATCH] add ios corss file |
| 5 | + |
| 6 | +--- |
| 7 | + package/crossfiles/arm64-ios.meson | 30 +++++++++++++++++++++++++++++ |
| 8 | + package/crossfiles/x86_64-ios.meson | 30 +++++++++++++++++++++++++++++ |
| 9 | + 2 files changed, 60 insertions(+) |
| 10 | + create mode 100644 package/crossfiles/arm64-ios.meson |
| 11 | + create mode 100644 package/crossfiles/x86_64-ios.meson |
| 12 | + |
| 13 | +diff --git a/package/crossfiles/arm64-ios.meson b/package/crossfiles/arm64-ios.meson |
| 14 | +new file mode 100644 |
| 15 | +index 0000000..5eaa411 |
| 16 | +--- /dev/null |
| 17 | ++++ b/package/crossfiles/arm64-ios.meson |
| 18 | +@@ -0,0 +1,30 @@ |
| 19 | ++# This is a cross compilation file from OSX (x86_64) to M1 |
| 20 | ++# Apple keeps changing the location and names of files so |
| 21 | ++# these might not work for you. Use the googels and xcrun. |
| 22 | ++ |
| 23 | ++[binaries] |
| 24 | ++c = 'clang' |
| 25 | ++cpp = 'clang++' |
| 26 | ++objc = 'clang' |
| 27 | ++objcpp = 'clang++' |
| 28 | ++ar = 'ar' |
| 29 | ++strip = 'strip' |
| 30 | ++ |
| 31 | ++[built-in options] |
| 32 | ++c_args = ['-arch', 'arm64', '-miphoneos-version-min=9.0', '-fembed-bitcode', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk'] |
| 33 | ++cpp_args = ['-arch', 'arm64', '-miphoneos-version-min=9.0', '-fembed-bitcode', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk'] |
| 34 | ++c_link_args = ['-arch', 'arm64', '-miphoneos-version-min=9.0', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk'] |
| 35 | ++cpp_link_args = ['-arch', 'arm64', '-miphoneos-version-min=9.0', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk'] |
| 36 | ++objc_args = ['-arch', 'arm64', '-miphoneos-version-min=9.0', '-fembed-bitcode', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk'] |
| 37 | ++objcpp_args = ['-arch', 'arm64', '-miphoneos-version-min=9.0', '-fembed-bitcode', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk'] |
| 38 | ++ |
| 39 | ++[properties] |
| 40 | ++root = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer' |
| 41 | ++has_function_printf = true |
| 42 | ++has_function_hfkerhisadf = false |
| 43 | ++ |
| 44 | ++[host_machine] |
| 45 | ++system = 'darwin' |
| 46 | ++cpu_family = 'aarch64' |
| 47 | ++cpu = 'arm64' |
| 48 | ++endian = 'little' |
| 49 | +\ No newline at end of file |
| 50 | +diff --git a/package/crossfiles/x86_64-ios.meson b/package/crossfiles/x86_64-ios.meson |
| 51 | +new file mode 100644 |
| 52 | +index 0000000..f84e0c6 |
| 53 | +--- /dev/null |
| 54 | ++++ b/package/crossfiles/x86_64-ios.meson |
| 55 | +@@ -0,0 +1,30 @@ |
| 56 | ++# This is a cross compilation file from OSX (M1) to x86_64 |
| 57 | ++# Apple keeps changing the location and names of files so |
| 58 | ++# these might not work for you. Use the googels and xcrun. |
| 59 | ++ |
| 60 | ++[binaries] |
| 61 | ++c = 'clang' |
| 62 | ++cpp = 'clang++' |
| 63 | ++objc = 'clang' |
| 64 | ++objcpp = 'clang++' |
| 65 | ++ar = 'ar' |
| 66 | ++strip = 'strip' |
| 67 | ++ |
| 68 | ++[built-in options] |
| 69 | ++c_args = ['-arch', 'x86_64', '-mios-simulator-version-min=9.0', '-fembed-bitcode', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk'] |
| 70 | ++cpp_args = ['-arch', 'x86_64', '-mios-simulator-version-min=9.0', '-fembed-bitcode', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk'] |
| 71 | ++c_link_args = ['-arch', 'x86_64', '-mios-simulator-version-min=9.0', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk'] |
| 72 | ++cpp_link_args = ['-arch', 'x86_64', '-mios-simulator-version-min=9.0', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk'] |
| 73 | ++objc_args = ['-arch', 'x86_64', '-mios-simulator-version-min=9.0', '-fembed-bitcode', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk'] |
| 74 | ++objcpp_args = ['-arch', 'x86_64', '-mios-simulator-version-min=9.0', '-fembed-bitcode', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk'] |
| 75 | ++ |
| 76 | ++[properties] |
| 77 | ++root = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer' |
| 78 | ++has_function_printf = true |
| 79 | ++has_function_hfkerhisadf = false |
| 80 | ++ |
| 81 | ++[host_machine] |
| 82 | ++system = 'darwin' |
| 83 | ++cpu_family = 'x86_64' |
| 84 | ++cpu = 'x86_64' |
| 85 | ++endian = 'little' |
| 86 | +\ No newline at end of file |
| 87 | +-- |
| 88 | +2.39.2 (Apple Git-143) |
| 89 | + |
0 commit comments