|
|
6 лет назад | |
|---|---|---|
| .. | ||
| android | 6ab8aff5dd [sdks] Add z option to tar | 6 лет назад |
| builds | ae23232f6a [2019-08-xcode11.4] Add fixes needed by new version of Xcode (#18726) | 6 лет назад |
| desktop | f46191114b [bcl] Add nunit exclude categories for monotouch/monodroid profiles (#14695) | 6 лет назад |
| ios | d1ca1a5d2e [2019-08] [System.Xml] Fix deserialization issue (#17014) | 6 лет назад |
| wasm | f239e4e68b [wasm] Add basic support for running xunit tests. | 6 лет назад |
| .gitignore | 88cab36c20 [sdks] add Make.config to ignore file (#7901) | 7 лет назад |
| Make.config.sample | a43f1d2909 [sdks] Add mac-{mac32,mac64} targets (#12959) | 7 лет назад |
| Makefile | b0919d93f9 [sdks] Source drop from xamarin/mono-sdks (#5876) | 8 лет назад |
| README.md | 434d70053d Update README.md | 7 лет назад |
| paths.mk | a43f1d2909 [sdks] Add mac-{mac32,mac64} targets (#12959) | 7 лет назад |
| versions.mk | 61ca7fe3a4 [sdks] Bump min iOS version to 7.0. (#17070) | 6 лет назад |
This project provides build scripts and sample apps for Mono targeting its supported platforms. Supported are Android, iOS and WebAssembly.
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
You can download the Ninja binary or find it in your system's package manager
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.
To build Mono for Android, iOS or WebAssembly, the build scripts can be found in sdks/builds/.
The make targets are as follow:
# Android
mono$ make -C sdks/builds provision-android && make -C sdks/android accept-android-license
mono$ make -C sdks/builds provision-mxe
mono$ make -C sdks/builds archive-android NINJA= IGNORE_PROVISION_ANDROID=1 IGNORE_PROVISION_MXE=1
# iOS
mono$ make -C sdks/builds archive-ios NINJA=
# WebAssembly
mono$ make -C sdks/builds provision-wasm
mono$ make -C sdks/builds archive-wasm NINJA=
# Mac
mono$ make -C sdks/builds archive-mac [upcoming]
Go to the wasm directory for building and testing WebAssembly. For more information view the WebAssembly readme
| 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.