From 365b293d97dfb81ac6a08e11c79ff5d3ca3c6645 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Wed, 16 Nov 2016 19:05:38 +0100 Subject: [PATCH] Create a Xamarin[-debug].framework. --- runtime/Makefile | 43 +++++++++++++++ runtime/Xamarin.framework-ios.Info.plist | 57 ++++++++++++++++++++ runtime/Xamarin.framework-tvos.Info.plist | 56 +++++++++++++++++++ runtime/Xamarin.framework-watchos.Info.plist | 56 +++++++++++++++++++ 4 files changed, 212 insertions(+) create mode 100644 runtime/Xamarin.framework-ios.Info.plist create mode 100644 runtime/Xamarin.framework-tvos.Info.plist create mode 100644 runtime/Xamarin.framework-watchos.Info.plist diff --git a/runtime/Makefile b/runtime/Makefile index 9257d7f7ce..40d709d2e5 100644 --- a/runtime/Makefile +++ b/runtime/Makefile @@ -75,6 +75,10 @@ MONOTOUCH_LIBS = \ libxamarin.dylib \ libxamarin-debug.dylib \ +MONOTOUCH_FRAMEWORKS = \ + Xamarin \ + Xamarin-debug \ + MONOTOUCH_SOURCE_STEMS = $(patsubst %.s,%,$(patsubst %.m,%,$(SHARED_SOURCES) $(MONOTOUCH_SOURCES))) zlib-helper MONOTOUCH_I386_SOURCE_STEMS = $(patsubst %.s,%,$(patsubst %.m,%,$(SHARED_I386_SOURCES))) MONOTOUCH_X86_64_SOURCE_STEMS = $(patsubst %.s,%,$(patsubst %.m,%,$(SHARED_X86_64_SOURCES))) @@ -96,19 +100,28 @@ $(2)_DEVICE_ARCHITECTURES = $(3) endif $(2)_SIM_ARCHITECTURES = $(4) $(2)_ARCHITECTURES = $$($(2)_DEVICE_ARCHITECTURES) $$($(2)_SIM_ARCHITECTURES) +$(2)_FRAMEWORKS = $(MONOTOUCH_FRAMEWORKS) RUNTIME_$(2)_TARGETS_DIRS += \ + $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/Frameworks/Xamarin.framework \ + $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/Frameworks/Xamarin-debug.framework \ $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/usr/lib \ $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/usr/include/xamarin \ + $(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/Frameworks/Xamarin.framework \ + $(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/Frameworks/Xamarin-debug.framework \ $(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/usr/lib \ $(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/usr/include/xamarin \ RUNTIME_$(2)_TARGETS += \ + $$(foreach file,$$($(2)_FRAMEWORKS),$(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/Frameworks/$$(file).framework/$$(file)) \ + $$(foreach file,$$($(2)_FRAMEWORKS),$(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/Frameworks/$$(file).framework/Info.plist) \ $$(foreach file,$$($(2)_LIBRARIES),$(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/usr/lib/$$(file)) \ $(foreach file,$(SHIPPED_HEADERS),$(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/usr/include/$(file)) \ ifdef INCLUDE_DEVICE RUNTIME_$(2)_TARGETS += \ + $$(foreach file,$$($(2)_FRAMEWORKS),$(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/Frameworks/$$(file).framework/$$(file)) \ + $$(foreach file,$$($(2)_FRAMEWORKS),$(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/Frameworks/$$(file).framework/Info.plist) \ $$(foreach file,$$($(2)_LIBRARIES),$(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/usr/lib/$$(file)) \ $(foreach file,$(SHIPPED_HEADERS),$(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/usr/include/$(file)) \ @@ -117,9 +130,39 @@ endif $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/usr/lib/%.a: .libs/$(1)/%.a | $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/usr/lib $(Q) install -m 0644 $$< $$@ +$(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/Frameworks/Xamarin.framework/Xamarin: .libs/$(1)/libxamarin-sim.dylib | $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/Frameworks/Xamarin.framework + $(Q) cp $$< $$@.tmp + $(Q) install_name_tool -id @rpath/$$(notdir $$@).framework/$$(notdir $$@) $$@.tmp + $(Q) install_name_tool -change @rpath/libmonosgen-2.0.dylib @rpath/Mono.framework/Mono $$@.tmp + $(Q) mv $$@.tmp $$@ + +$(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/Frameworks/Xamarin-debug.framework/Xamarin-debug: .libs/$(1)/libxamarin-debug-sim.dylib | $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/Frameworks/Xamarin-debug.framework + $(Q) cp $$< $$@.tmp + $(Q) install_name_tool -id @rpath/$$(notdir $$@).framework/$$(notdir $$@) $$@.tmp + $(Q) install_name_tool -change @rpath/libmonosgen-2.0.dylib @rpath/Mono.framework/Mono $$@.tmp + $(Q) mv $$@.tmp $$@ + +$(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/Frameworks/%.framework/Info.plist: Xamarin.framework-$(1).Info.plist | $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/Frameworks/Xamarin.framework + $(Q) sed 's/@BUNDLE_EXECUTABLE@/$$*/' $$< > $$@ + ifdef INCLUDE_DEVICE $(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/usr/lib/%.a: .libs/$(1)/%.a | $(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/usr/lib $(Q) install -m 0644 $$< $$@ + +$(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/Frameworks/Xamarin.framework/Xamarin: .libs/$(1)/libxamarin-dev.dylib | $(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/Frameworks/Xamarin.framework + $(Q) cp $$< $$@.tmp + $(Q) install_name_tool -id @rpath/$$(notdir $$@).framework/$$(notdir $$@) $$@.tmp + $(Q) install_name_tool -change @rpath/libmonosgen-2.0.dylib @rpath/Mono.framework/Mono $$@.tmp + $(Q) mv $$@.tmp $$@ + +$(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/Frameworks/Xamarin-debug.framework/Xamarin-debug: .libs/$(1)/libxamarin-debug-dev.dylib | $(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/Frameworks/Xamarin-debug.framework + $(Q) cp $$< $$@.tmp + $(Q) install_name_tool -id @rpath/$$(notdir $$@).framework/$$(notdir $$@) $$@.tmp + $(Q) install_name_tool -change @rpath/libmonosgen-2.0.dylib @rpath/Mono.framework/Mono $$@.tmp + $(Q) mv $$@.tmp $$@ + +$(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/Frameworks/%.framework/Info.plist: Xamarin.framework-$(1).Info.plist | $(IOS_DESTDIR)$$(XAMARIN_$(6)OS_SDK)/Frameworks/Xamarin.framework + $(Q) sed 's/@BUNDLE_EXECUTABLE@/$$*/' $$< > $$@ endif $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/usr/lib/%.dylib: .libs/$(1)/%-sim.dylib | $(IOS_DESTDIR)$$(XAMARIN_$(5)SIMULATOR_SDK)/usr/lib diff --git a/runtime/Xamarin.framework-ios.Info.plist b/runtime/Xamarin.framework-ios.Info.plist new file mode 100644 index 0000000000..33d7a42050 --- /dev/null +++ b/runtime/Xamarin.framework-ios.Info.plist @@ -0,0 +1,57 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleIdentifier + xamarin.ios.xamarin-framework + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Xamarin + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 3.12 + NSPrincipalClass + + CFBundleExecutable + @BUNDLE_EXECUTABLE@ + BuildMachineOSBuild + 13F34 + CFBundleDevelopmentRegion + en + CFBundleSupportedPlatforms + + iPhoneOS + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 12D508 + DTPlatformName + iphoneos + DTPlatformVersion + 8.2 + DTSDKBuild + 12D508 + DTSDKName + iphoneos8.2 + DTXcode + 0620 + DTXcodeBuild + 6C131e + MinimumOSVersion + 8.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/runtime/Xamarin.framework-tvos.Info.plist b/runtime/Xamarin.framework-tvos.Info.plist new file mode 100644 index 0000000000..9a0236a046 --- /dev/null +++ b/runtime/Xamarin.framework-tvos.Info.plist @@ -0,0 +1,56 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleIdentifier + xamarin.ios.xamarin-framework + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Xamarin + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 3.12 + NSPrincipalClass + + CFBundleExecutable + @BUNDLE_EXECUTABLE@ + BuildMachineOSBuild + 13F34 + CFBundleDevelopmentRegion + en + CFBundleSupportedPlatforms + + AppleTVOS + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 12D508 + DTPlatformName + appletvos + DTPlatformVersion + 9.0 + DTSDKBuild + 12D508 + DTSDKName + appletvos9.0 + DTXcode + 0620 + DTXcodeBuild + 6C131e + MinimumOSVersion + 9.0 + UIDeviceFamily + + 3 + + + diff --git a/runtime/Xamarin.framework-watchos.Info.plist b/runtime/Xamarin.framework-watchos.Info.plist new file mode 100644 index 0000000000..3ed56bf3b1 --- /dev/null +++ b/runtime/Xamarin.framework-watchos.Info.plist @@ -0,0 +1,56 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleIdentifier + xamarin.ios.xamarin-framework + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Xamarin + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 3.12 + NSPrincipalClass + + CFBundleExecutable + @BUNDLE_EXECUTABLE@ + BuildMachineOSBuild + 13F34 + CFBundleDevelopmentRegion + en + CFBundleSupportedPlatforms + + WatchOS + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 12D508 + DTPlatformName + watchos + DTPlatformVersion + 2.0 + DTSDKBuild + 12D508 + DTSDKName + watchos2.2 + DTXcode + 0620 + DTXcodeBuild + 6C131e + MinimumOSVersion + 2.0 + UIDeviceFamily + + 4 + + +