Skip to content
Snippets Groups Projects
Verified Commit 2a63840e authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Add Meson cross-file for WebAssembly with Emscripten

parent 3b1e4749
No related branches found
No related tags found
No related merge requests found
# Cross-compile file for creating a WebAssembly version of the preprocessor
# Requires emscripten to be installed
# Creates a .wasm and .js wrapper under <builddir>/src/
# Can be run locally with node.js using:
# node --no-experimental-fetch dynare-preprocessor.js
[binaries]
cpp = 'em++'
[host_machine]
system = 'emscripten'
cpu_family = 'wasm64'
cpu = 'wasm64'
endian = 'little'
[properties]
# It’s necessary to use a different copy of Boost than the one under
# /usr/include, because otherwise GCC headers confuse Clang
#boost_root = '/path/to/boost'
# For accessing the local filesystem
cpp_link_args = [ '-s', 'NODERAWFS=1' ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment