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 /mesonbuild/minstall.py | |
parent | ddbf60f86da4ece3d407fe3b3e38ff45e34f561e (diff) | |
download | meson-f41bdae36861baa8be541af8273adc5b4b94ec48.zip meson-f41bdae36861baa8be541af8273adc5b4b94ec48.tar.gz meson-f41bdae36861baa8be541af8273adc5b4b94ec48.tar.bz2 |
Add basic Webassembly support via Emscripten.
Diffstat (limited to 'mesonbuild/minstall.py')
-rw-r--r-- | mesonbuild/minstall.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index ed82c37..8b0768e 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -465,6 +465,13 @@ class Installer: pdb_outname = os.path.splitext(outname)[0] + '.pdb' self.do_copyfile(pdb_filename, pdb_outname) set_mode(pdb_outname, install_mode, d.install_umask) + if fname.endswith('.js'): + # Emscripten outputs js files and optionally a wasm file. + # If one was generated, install it as well. + wasm_source = os.path.splitext(fname)[0] + '.wasm' + if os.path.exists(wasm_source): + wasm_output = os.path.splitext(outname)[0] + '.wasm' + self.do_copyfile(wasm_source, wasm_output) elif os.path.isdir(fname): fname = os.path.join(d.build_dir, fname.rstrip('/')) outname = os.path.join(outdir, os.path.basename(fname)) |