diff options
author | Bernhard Urban <bernhard.urban@xamarin.com> | 2019-01-07 19:56:42 +0300 |
---|---|---|
committer | Ludovic Henry <luhenry@microsoft.com> | 2019-01-07 19:56:42 +0300 |
commit | 333ad864c4fcd8843653b3da7461e0ca1a6f7b83 (patch) | |
tree | ddc840390bd81bf888601bc3a169c7e2d056f106 /sdks/builds/ios.mk | |
parent | 7d746ac40578b1b6acec326a75c0fd578d8aab9e (diff) |
[ios] initial watch64_32 support (#11691)
* [ios] initial watch64_32 support
* align iOSSimulatorTemplate with iOSDeviceTemplate
Diffstat (limited to 'sdks/builds/ios.mk')
-rw-r--r-- | sdks/builds/ios.mk | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/sdks/builds/ios.mk b/sdks/builds/ios.mk index d66cceaebb5..6f38b92a5b9 100644 --- a/sdks/builds/ios.mk +++ b/sdks/builds/ios.mk @@ -17,7 +17,7 @@ PLATFORM_BIN=$(XCODE_DIR)/Toolchains/XcodeDefault.xctoolchain/usr/bin # # Parameters # $(1): target (target32/target32s/target64) -# $(2): host arch (arm or aarch64) +# $(2): host triple # $(3): host arch for compiler (armv7 or arm64) # # Flags: @@ -104,37 +104,45 @@ _ios-$(1)_CONFIGURE_FLAGS = \ .stamp-ios-$(1)-toolchain: touch $$@ -$$(eval $$(call RuntimeTemplate,ios,$(1),$(2)-apple-darwin10)) +$$(eval $$(call RuntimeTemplate,ios,$(1),$(2))) + endef ios_sysroot = -isysroot $(XCODE_DIR)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$(IOS_VERSION).sdk -miphoneos-version-min=$(IOS_VERSION_MIN) tvos_sysroot = -isysroot $(XCODE_DIR)/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS$(TVOS_VERSION).sdk -mtvos-version-min=$(TVOS_VERSION_MIN) watchos_sysroot = -isysroot $(XCODE_DIR)/Platforms/WatchOS.platform/Developer/SDKs/WatchOS$(WATCHOS_VERSION).sdk -mwatchos-version-min=$(WATCHOS_VERSION_MIN) +watchos5_sysroot = -isysroot $(XCODE_DIR)/Platforms/WatchOS.platform/Developer/SDKs/WatchOS$(WATCHOS5_VERSION).sdk -mwatchos-version-min=$(WATCHOS5_VERSION_MIN) # explicitly disable dtrace, since it requires inline assembly, which is disabled on AppleTV (and mono's configure.ac doesn't know that (yet at least)) ios-targettv_CONFIGURE_FLAGS = --enable-dtrace=no --enable-llvm-runtime --with-bitcode=yes --with-monotouch-tv ios-targetwatch_CONFIGURE_FLAGS = --enable-cooperative-suspend --enable-llvm-runtime --with-bitcode=yes --with-monotouch-watch +ios-targetwatch64_32_CONFIGURE_FLAGS = --enable-cooperative-suspend --with-bitcode=yes --with-monotouch-watch ios-target32_SYSROOT = $(ios_sysroot) ios-target32s_SYSROOT = $(ios_sysroot) ios-target64_SYSROOT = $(ios_sysroot) ios-targettv_SYSROOT = $(tvos_sysroot) ios-targetwatch_SYSROOT = $(watchos_sysroot) +ios-targetwatch64_32_SYSROOT = $(watchos5_sysroot) ios-target32_CPPFLAGS = -DHOST_IOS ios-target32s_CPPFLAGS = -DHOST_IOS ios-target64_CPPFLAGS = -DHOST_IOS ios-targettv_CPPFLAGS = -DHOST_APPLETVOS -DTARGET_APPLETVOS ios-targetwatch_CPPFLAGS = -DHOST_IOS -DHOST_WATCHOS +ios-targetwatch64_32_CPPFLAGS = -DHOST_IOS -DHOST_WATCHOS ios-targettv_CFLAGS = -fembed-bitcode -fno-gnu-inline-asm ios-targettv_CXXFLAGS = -fembed-bitcode -fno-gnu-inline-asm ios-targetwatch_CFLAGS = -fembed-bitcode -fno-gnu-inline-asm ios-targetwatch_CXXFLAGS = -fembed-bitcode -fno-gnu-inline-asm +ios-targetwatch64_32_CFLAGS = -fembed-bitcode -fno-gnu-inline-asm +ios-targetwatch64_32_CXXFLAGS = -fembed-bitcode -fno-gnu-inline-asm ios-targettv_LDFLAGS = -Wl,-bitcode_bundle -framework CoreFoundation -lobjc -lc++ ios-targetwatch_LDFLAGS = -Wl,-bitcode_bundle -framework CoreFoundation -lobjc -lc++ +ios-targetwatch64_32_LDFLAGS = -Wl,-bitcode_bundle -framework CoreFoundation -lobjc -lc++ ios-targettv_AC_VARS = \ ac_cv_func_system=no \ @@ -147,21 +155,24 @@ ios-targettv_AC_VARS = \ ac_cv_func_execvp=no \ ac_cv_func_signal=no ios-targetwatch_AC_VARS = $(ios-targettv_AC_VARS) +ios-targetwatch64_32_AC_VARS = $(ios-targettv_AC_VARS) # ios-target32_BITCODE_MARKER=-fembed-bitcode-marker -$(eval $(call iOSDeviceTemplate,target32,arm,armv7)) -$(eval $(call iOSDeviceTemplate,target32s,arm,armv7s)) +$(eval $(call iOSDeviceTemplate,target32,arm-apple-darwin10,armv7)) +$(eval $(call iOSDeviceTemplate,target32s,arm-apple-darwin10,armv7s)) # ios-target64_BITCODE_MARKER=-fembed-bitcode-marker -$(eval $(call iOSDeviceTemplate,target64,aarch64,arm64)) -$(eval $(call iOSDeviceTemplate,targettv,aarch64,arm64)) -$(eval $(call iOSDeviceTemplate,targetwatch,armv7k,armv7k)) +$(eval $(call iOSDeviceTemplate,target64,aarch64-apple-darwin10,arm64)) +$(eval $(call iOSDeviceTemplate,targettv,aarch64-apple-darwin10,arm64)) +$(eval $(call iOSDeviceTemplate,targetwatch,armv7k-apple-darwin10,armv7k)) +$(eval $(call iOSDeviceTemplate,targetwatch64_32,aarch64-apple-darwin10_ilp32,arm64_32)) ## # Simulator builds # # Parameters # $(1): target (sim32 or sim64) -# $(2): host arch (i386 or x86_64) +# $(2): host triple +# $(3): host arch (i386 or x86_64) # # Flags: # ios-$(1)_SYSROOT @@ -191,18 +202,18 @@ _ios-$(1)_AC_VARS= \ _ios-$(1)_CFLAGS= \ $$(ios-$(1)_SYSROOT) \ - -arch $(2) \ + -arch $(3) \ -Wl,-application_extension _ios-$(1)_CPPFLAGS= \ -DMONOTOUCH=1 \ $$(ios-$(1)_SYSROOT) \ - -arch $(2) \ + -arch $(3) \ -Wl,-application_extension _ios-$(1)_CXXFLAGS= \ $$(ios-$(1)_SYSROOT) \ - -arch $(2) \ + -arch $(3) \ -Wl,-application_extension _ios-$(1)_CONFIGURE_FLAGS= \ @@ -227,7 +238,7 @@ _ios-$(1)_CONFIGURE_FLAGS= \ .stamp-ios-$(1)-toolchain: touch $$@ -$$(eval $$(call RuntimeTemplate,ios,$(1),$(2)-apple-darwin10)) +$$(eval $$(call RuntimeTemplate,ios,$(1),$(2))) endef @@ -267,10 +278,10 @@ ios-simwatch_AC_VARS = \ ac_cv_func_execvp=no \ ac_cv_func_signal=no -$(eval $(call iOSSimulatorTemplate,sim32,i386)) -$(eval $(call iOSSimulatorTemplate,sim64,x86_64)) -$(eval $(call iOSSimulatorTemplate,simtv,x86_64)) -$(eval $(call iOSSimulatorTemplate,simwatch,i386)) +$(eval $(call iOSSimulatorTemplate,sim32,i386-apple-darwin10,i386)) +$(eval $(call iOSSimulatorTemplate,sim64,x86_64-apple-darwin10,x86_64)) +$(eval $(call iOSSimulatorTemplate,simtv,x86_64-apple-darwin10,x86_64)) +$(eval $(call iOSSimulatorTemplate,simwatch,i386-apple-darwin10,i386)) ## # Cross compiler builds |