[wasm] Unify BuildWasmRuntimes target and use cmake (#58878)
authorRadek Doulik <radek.doulik@gmail.com>
Thu, 16 Sep 2021 11:48:11 +0000 (13:48 +0200)
committerGitHub <noreply@github.com>
Thu, 16 Sep 2021 11:48:11 +0000 (13:48 +0200)
commit909880b5a7a737f86d388f263e0bfa8c2ddb186c
tree6fb4677b785ffdccb1f32b7f54903c6c7ea9efeb
parent7017817a0ba2f0c92ef2a4c0166e91f22bad2a83
[wasm] Unify BuildWasmRuntimes target and use cmake (#58878)

Add new cmake file to build native parts of `BuildWasmRuntimes` target. That unifies the build on windows and mac/linux.

Implements https://github.com/dotnet/runtime/issues/51553

* [wasm] Add cmake file for runtime native build

* Use the new cmake file

* Set the emcc configuration flags

The ninja generator is not multi-configuration cmake generator, so we
have to pass them from msbuild

* Update Makefile

* Fix few build issues

* Copy ICU files to native bin dir

* Copy source files to native bin dir

* Copy required header file

* Make all settings target specific
src/mono/wasm/Makefile
src/mono/wasm/runtime/CMakeLists.txt [new file with mode: 0644]
src/mono/wasm/wasm.proj