mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
infra: added ios cross compile scripts.
meson setup builddir --cross-file ./ios_x86_64_cross.txt ...
This commit is contained in:
parent
3fabf9f19d
commit
f9f1e9932c
2 changed files with 44 additions and 0 deletions
22
ios_arm64_cross.txt
Normal file
22
ios_arm64_cross.txt
Normal file
|
@ -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'
|
22
ios_x86_64_cross.txt
Normal file
22
ios_x86_64_cross.txt
Normal file
|
@ -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'
|
Loading…
Add table
Reference in a new issue