From 2c5688445bfc8a98972d380c17227ec9da0588ae Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 5 Sep 2015 01:32:10 +0300 Subject: Created iphone cross file and made it possible to specify compile and link args in the cross file. --- cross/iphone.txt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 cross/iphone.txt (limited to 'cross/iphone.txt') 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' + -- cgit v1.1