1 This project provides build scripts and sample apps for Mono targeting its supported platforms. Supported are Android, iOS and WebAssembly.
7 Copy `Make.config.sample` to `Make.config` and edit the new file to disable building the target you're not interested in.
8 Unless you have a very particular need, the BCL build should be left enabled as it's needed by all test runners.
12 To build Mono for Android, iOS or WebAssembly, the build scripts can be found in `sdks/builds/`. There are 5 predefined targets that can be invoked:
14 - toolchain: setup the toolchain so we can cross-compile the runtime for the appropriate platform
15 - configure: configure the build of Mono
17 - package: provide a package of the built Mono, the result can be found in `sdks/builds/out/`
18 - clean: clean the Mono build directory
20 The `make` targets are as follow:
24 make -C builds {toolchain,configure,build,package,clean}-android-{armeabi,armeabi-v7a,arm64-v8a,x86,x86_64}
27 make -C builds {toolchain,configure,build,package,clean}-ios-{target{32,64},sim{32,64},cross{32,64}}
30 make -C builds {toolchain,configure,build,package,clean}-wasm-interp
33 # Testing instructions
37 First, ensure you built&packaged bcl and wasm-inter in the `builds` directory:
40 make build-wasm-interp package-wasm-interp
41 make build-bcl package-bcl
44 Go to the `wasm` directory for building and testing WebAssembly. Right now the following targets are available:
46 - build: Build the test runner and test suites
47 - run-mini: Run mini test suite
48 - run-corlib: Run corlib test suite
49 - run-system: Run System test suite
50 - run-system-core: Run System.Core test suite
53 For bcl or runtime changes, you must manually run the corresponding build/package steps in `builds`.
54 For test suite changes, it's enough to just rerun the local target.
58 | Project | Dependencies |
59 | ----------- | ------------------- |
60 | Android | Android SDK and NDK |
64 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](https://github.com/mono/mono).