Alexander Köplinger a01309d104 sdks: Use https for xamjenkinsartifacts llvm archive download пре 4 година
..
android 32c0b1aaf9 Support overriding SDK_DIR/NDK_DIR in sdks/android/Makefile пре 5 година
builds a01309d104 sdks: Use https for xamjenkinsartifacts llvm archive download пре 4 година
desktop f46191114b [bcl] Add nunit exclude categories for monotouch/monodroid profiles (#14695) пре 6 година
ios 269d509e42 Remove DNS lookups of the local hostname in tests (#18059) пре 6 година
wasm 8c331833c7 Disable JSC runs on WASM since it crashes пре 4 година
.gitignore a0d79a4886 [sdks] Add netcore option for iOS SDK пре 6 година
Make.config.sample 9e377af674 [wasm] Fix netcore build. (#18564) пре 6 година
Makefile b0919d93f9 [sdks] Source drop from xamarin/mono-sdks (#5876) пре 8 година
README.md fffad7e3a8 Remove the Legacy TLS Provider. (#17391) пре 6 година
README.netcore.md f965e5d3e8 Fix formatting of README.netcore.md пре 6 година
paths.mk dfbfe5eed1 [2020-02] Build makefile to support Mac Catalyst (#20566) пре 5 година
versions.mk 124f115714 Fix iOS sdks build on Xcode 12 (#20574) пре 5 година

README.md

This project provides build scripts and sample apps for Mono targeting its supported platforms. Supported are Android, iOS and WebAssembly.

Build instructions

Dependencies

  • automake 1.16.1

if you have already built before using a previous version of automake you may need to clean the repo.

  git clean -xffd

The previous should be sufficient but if that does not work then try hard resetting

  git reset --hard && git clean -xffd && git submodule foreach --recursive git reset --hard && git submodule foreach --recursive git clean -xffd && git submodule update --init --recursive

Setup

Copy Make.config.sample to Make.config and edit the new file to disable building the target you're not interested in. Unless you have a very particular need, the BCL build should be left enabled as it's needed by all test runners.

Building for XA/XI/XM and WebAssembly

To build Mono for Android, iOS or WebAssembly, the build scripts can be found in sdks/builds/.

For Android, you need to copy sdks/Make.config.sample to sdks/Make.config and set

ENABLE_ANDROID = 1

The make targets are as follow:

# Android
make -C sdks/builds provision-android && make -C sdks/android accept-android-license
make -C sdks/builds provision-mxe
make -C sdks/builds archive-android NINJA= IGNORE_PROVISION_ANDROID=1 IGNORE_PROVISION_MXE=1

# iOS
make -C sdks/builds archive-ios NINJA=

# WebAssembly
make -C sdks/builds provision-wasm
make -C sdks/builds archive-wasm  NINJA=

# Mac
make -C sdks/builds archive-mac [upcoming]

WebAssembly

Go to the wasm directory for building and testing WebAssembly. For more information view the WebAssembly readme

Dependencies

Project Dependencies
Android Android SDK and NDK
iOS Xcode
WebAssembly

See sdks/versions.mk for specific version numbers, and sdks/paths.mk for where they should be installed. These dependencies will not be installed as part of the build process, and will be expected to be present; an error will be triggered if it's not the case. If you need an additional version, please do contact us or submit a pull-request against mono/mono.