aboutsummaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-09-05 01:32:10 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-09-05 14:22:56 +0300
commit2c5688445bfc8a98972d380c17227ec9da0588ae (patch)
tree4c9d4111e440f0ac2385d0450a9578497ea512ae /cross
parent70f4e388ca65b3f3381568c345e3bac3eb0551f3 (diff)
downloadmeson-2c5688445bfc8a98972d380c17227ec9da0588ae.zip
meson-2c5688445bfc8a98972d380c17227ec9da0588ae.tar.gz
meson-2c5688445bfc8a98972d380c17227ec9da0588ae.tar.bz2
Created iphone cross file and made it possible to specify compile and link args in the cross file.
Diffstat (limited to 'cross')
-rw-r--r--cross/iphone.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/cross/iphone.txt b/cross/iphone.txt
new file mode 100644
index 0000000..9fa4474
--- /dev/null
+++ b/cross/iphone.txt
@@ -0,0 +1,34 @@
+# This is a cross compilation file from OSX Yosemite to iPhone
+# Apple keeps changing the location and names of files so
+# these might not work for you. Use the googels and xcrun.
+
+[binaries]
+c = 'clang'
+cpp = 'clang++'
+ar = 'ar'
+strip = 'strip'
+
+[properties]
+root = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer'
+
+c_args = ['-arch', 'armv7', '-miphoneos-version-min=8.0', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk']
+cpp_args = ['-arch', 'armv7', '-miphoneos-version-min=8.0', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk']
+c_link_args = ['-arch', 'armv7', '-miphoneos-version-min=8.0', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk']
+cpp_link_args = ['-arch', 'armv7', '-miphoneos-version-min=8.0', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk']
+
+sizeof_int = 4
+sizeof_wchar_t = 4
+sizeof_void* = 4
+
+alignment_char = 1
+alignment_void* = 4
+alignment_double = 4 # Don't know if this is correct...
+
+has_function_printf = true
+has_function_hfkerhisadf = false
+
+[host_machine]
+system = 'ios'
+cpu = 'armv7'
+endian = 'little'
+