summaryrefslogtreecommitdiff
path: root/cross
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-10-30 14:40:08 -0400
committerAndrew Opalach <andrew@akon.city> 2025-10-30 14:40:08 -0400
commit90da3b27d939b3b7af1cf7fed10dfaaa7e271622 (patch)
treef0cf96c76d5c83470d2c50dd69d2d3e39a503fab /cross
parent77837d7b63240c069b3351a919a7d2af670f46cd (diff)
downloadcamu-90da3b27d939b3b7af1cf7fed10dfaaa7e271622.tar.gz
camu-90da3b27d939b3b7af1cf7fed10dfaaa7e271622.tar.bz2
camu-90da3b27d939b3b7af1cf7fed10dfaaa7e271622.zip
Fixes from testing sink change, document things
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'cross')
-rw-r--r--cross/wasm-emscripten.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/cross/wasm-emscripten.txt b/cross/wasm-emscripten.txt
new file mode 100644
index 0000000..b8d8611
--- /dev/null
+++ b/cross/wasm-emscripten.txt
@@ -0,0 +1,20 @@
+[binaries]
+c = 'emcc'
+cpp = 'em++'
+ar = 'emar'
+
+# If pkgconfig is broken refer to this.
+# https://github.com/hartenfels/meson-emscripten-example/blob/380be33d396e536b872e88f95e62b93e2f16545c/cross/emscripten.cross
+pkgconfig = ['emmake', 'pkg-config']
+cmake = ['emcmake', 'cmake']
+
+exe_wrapper = 'node'
+
+[properties]
+needs_exe_wrapper = true
+
+[host_machine]
+system = 'wasm'
+cpu_family = 'wasm'
+cpu = 'wasm'
+endian = 'little'