Skip to content

Commit

Permalink
X
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Baulig committed Oct 29, 2018
1 parent 41dac5b commit ae8fcaa
Show file tree
Hide file tree
Showing 44 changed files with 1,253 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[submodule "external/mono"]
path = external/mono
url = ../../mono/mono.git
branch = 2018-08
branch = 2018-10
[submodule "external/opentk"]
path = external/opentk
url = ../../mono/opentk.git
Expand Down
6 changes: 3 additions & 3 deletions Make.config
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ XCODE94_URL=http://xamarin-storage/bot-provisioning/xcodes/Xcode_9.4.xip
XCODE94_DEVELOPER_ROOT=/Applications/Xcode94.app/Contents/Developer

# Minimum Mono version
MIN_MONO_VERSION=5.18.0.180
MAX_MONO_VERSION=5.18.99
MIN_MONO_URL=https://xamjenkinsartifact.azureedge.net/build-package-osx-mono/2018-08/143/b5e8de9182106b7ea34465bf32d236fda5fbce09/MonoFramework-MDK-5.18.0.180.macos10.xamarin.universal.pkg
MIN_MONO_VERSION=5.20.0.1
MAX_MONO_VERSION=5.20.99
MIN_MONO_URL=https://xamjenkinsartifact.azureedge.net/build-package-osx-mono/2018-10/2/50051dacdb6a7ae17f2f229539597196d9274230/MonoFramework-MDK-5.20.0.1.macos10.xamarin.universal.pkg

# Minimum Mono version for Xamarin.Mac apps using the system mono
MIN_XM_MONO_VERSION=5.18.0.180
Expand Down
72 changes: 72 additions & 0 deletions Martin.make
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
ROOT = /Developer/Work/xamarin-macios
MONO_ROOT = $(ROOT)/external/mono
COREFX_ROOT = $(MONO_ROOT)/external/corefx
SIM64_BUILD_ROOT = $(MONO_ROOT)/sdks/builds/ios-sim64-release
SIM64_BUILD_OUT = $(MONO_ROOT)/sdks/out/ios-sim64-release
TARGET32_BUILD_ROOT = $(MONO_ROOT)/sdks/builds/ios-target32-release
TARGET32_BUILD_OUT = $(MONO_ROOT)/sdks/out/ios-target32-release
MAC_BUILD_ROOT = $(ROOT)/builds/mac64
MAC_BUILD_OUT = $(ROOT)/builds/install/mac64

NATIVE_APPLE_DIR = $(COREFX_ROOT)/src/Native/Unix/System.Security.Cryptography.Native.Apple

IOS_SDK_INSTALL = $(ROOT)/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git
MAC_SDK_INSTALL = $(ROOT)/_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git

all::
@echo $(ROOT)

dir-native-apple::
@echo $(NATIVE_APPLE_DIR)

corlib-monotouch::
$(MAKE) -C $(MONO_ROOT)/mcs/class/corlib PROFILE=monotouch all install
cp $(MONO_ROOT)/mcs/class/lib/monotouch/mscorlib.dll $(IOS_SDK_INSTALL)/lib/mono/Xamarin.iOS/
cp $(MONO_ROOT)/mcs/class/lib/monotouch/mscorlib.pdb $(IOS_SDK_INSTALL)/lib/mono/Xamarin.iOS/

system-monotouch::
$(MAKE) -C $(MONO_ROOT)/mcs/class/System PROFILE=monotouch all install
cp $(MONO_ROOT)/mcs/class/lib/monotouch/System.dll $(IOS_SDK_INSTALL)/lib/mono/Xamarin.iOS/
cp $(MONO_ROOT)/mcs/class/lib/monotouch/System.pdb $(IOS_SDK_INSTALL)/lib/mono/Xamarin.iOS/

system-core-monotouch::
$(MAKE) -C $(MONO_ROOT)/mcs/class/System.Core PROFILE=monotouch all install
cp $(MONO_ROOT)/mcs/class/lib/monotouch/System.Core.dll $(IOS_SDK_INSTALL)/lib/mono/Xamarin.iOS/
cp $(MONO_ROOT)/mcs/class/lib/monotouch/System.Core.pdb $(IOS_SDK_INSTALL)/lib/mono/Xamarin.iOS/

sim64-runtime::
$(MAKE) -C $(SIM64_BUILD_ROOT)/mono all install
cp $(SIM64_BUILD_OUT)/lib/libmono-apple-crypto.* $(IOS_SDK_INSTALL)/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/
cp $(SIM64_BUILD_OUT)/lib/libmonosgen-* $(IOS_SDK_INSTALL)/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/

target32-runtime::
$(MAKE) -C $(TARGET32_BUILD_ROOT)/mono all install
#cp $(TARGET32_BUILD_OUT)/lib/libmono-native* $(IOS_SDK_INSTALL)/SDKs/MonoTouch.iphoneos.sdk/usr/lib/
#cp $(TARGET32_BUILD_OUT)/lib/libmonosgen-* $(IOS_SDK_INSTALL)/SDKs/MonoTouch.iphoneos.sdk/usr/lib/

mac-runtime::
$(MAKE) -C $(MAC_BUILD_ROOT)/mono all install
cp $(MAC_BUILD_OUT)/lib/libmono-apple-crypto.* $(MAC_SDK_INSTALL)/lib/
cp $(MAC_BUILD_OUT)/lib/libmonosgen-* $(MAC_SDK_INSTALL)/lib/

corlib-xammac::
$(MAKE) -C $(MONO_ROOT)/mcs/class/corlib PROFILE=xammac all install
cp $(MONO_ROOT)/mcs/class/lib/xammac/mscorlib.dll $(MAC_SDK_INSTALL)/lib/mono/Xamarin.Mac/
cp $(MONO_ROOT)/mcs/class/lib/xammac/mscorlib.pdb $(MAC_SDK_INSTALL)/lib/mono/Xamarin.Mac/

system-xammac::
$(MAKE) -C $(MONO_ROOT)/mcs/class/System PROFILE=xammac all install
cp $(MONO_ROOT)/mcs/class/lib/xammac/System.dll $(MAC_SDK_INSTALL)/lib/mono/Xamarin.Mac/
cp $(MONO_ROOT)/mcs/class/lib/xammac/System.pdb $(MAC_SDK_INSTALL)/lib/mono/Xamarin.Mac/

system-core-xammac::
$(MAKE) -C $(MONO_ROOT)/mcs/class/System.Core PROFILE=xammac all install
cp $(MONO_ROOT)/mcs/class/lib/xammac/System.Core.dll $(MAC_SDK_INSTALL)/lib/mono/Xamarin.Mac/
cp $(MONO_ROOT)/mcs/class/lib/xammac/System.Core.pdb $(MAC_SDK_INSTALL)/lib/mono/Xamarin.Mac/

nm-monotouch-crypto::
nm $(SIM64_BUILD_ROOT)/mono/metadata/.libs/libmono-apple-crypto.dylib

nm-xammac-crypto::
nm $(MAC_BUILD_ROOT)/mono/metadata/.libs/libmono-apple-crypto.dylib

13 changes: 13 additions & 0 deletions README.Martin
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Fastbuild:

1.) Do a `make -j16 install` in `external/mono/sdks/builds/ios-sim64-release-mono`
2.) Copy
`cp external/mono/sdks/out/ios-sim64-release/lib/libmonosgen-2.0.* _ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/SDKs/MonoTouch.iphonesimulator.sdk/usr/lib/`.
3.) Rebuild App.

Managed pieces:

* Goto `external/mono/mcs/class/System`
* build `make PROFILE=xammac`
* install make PROFILE=xammac && cp ../lib/xammac/System.dll ../../../../../_mac-build/Library/Frameworks/Xamarin.Mac.framework/Versions/git/lib/mono/Xamarin.Mac/"

Loading

0 comments on commit ae8fcaa

Please sign in to comment.