diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-06-19 21:56:00 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-08-05 19:31:32 +0300 |
commit | f41bdae36861baa8be541af8273adc5b4b94ec48 (patch) | |
tree | 9334ac78c12e5505592dcff7f6f5c32c999ee4fb /cross | |
parent | ddbf60f86da4ece3d407fe3b3e38ff45e34f561e (diff) | |
download | meson-f41bdae36861baa8be541af8273adc5b4b94ec48.zip meson-f41bdae36861baa8be541af8273adc5b4b94ec48.tar.gz meson-f41bdae36861baa8be541af8273adc5b4b94ec48.tar.bz2 |
Add basic Webassembly support via Emscripten.
Diffstat (limited to 'cross')
-rw-r--r-- | cross/wasm.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cross/wasm.txt b/cross/wasm.txt new file mode 100644 index 0000000..a43636f --- /dev/null +++ b/cross/wasm.txt @@ -0,0 +1,19 @@ +[binaries] +c = '/home/jpakkane/emsdk/fastcomp/emscripten/emcc' +cpp = '/home/jpakkane/emsdk/fastcomp/emscripten/em++' +ar = '/home/jpakkane/emsdk/fastcomp/emscripten/emar' + +[properties] + +c_args = ['-s', 'WASM=1', '-s', 'EXPORT_ALL=1'] +c_link_args = ['-s','EXPORT_ALL=1'] +cpp_args = ['-s', 'WASM=1', '-s', 'EXPORT_ALL=1'] +cpp_link_args = ['-s', 'EXPORT_ALL=1'] + +[host_machine] + +system = 'emscripten' +cpu_family = 'wasm32' +cpu = 'wasm32' +endian = 'little' + |