aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-06-19 21:56:00 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2019-08-05 19:31:32 +0300
commitf41bdae36861baa8be541af8273adc5b4b94ec48 (patch)
tree9334ac78c12e5505592dcff7f6f5c32c999ee4fb /test cases
parentddbf60f86da4ece3d407fe3b3e38ff45e34f561e (diff)
downloadmeson-f41bdae36861baa8be541af8273adc5b4b94ec48.zip
meson-f41bdae36861baa8be541af8273adc5b4b94ec48.tar.gz
meson-f41bdae36861baa8be541af8273adc5b4b94ec48.tar.bz2
Add basic Webassembly support via Emscripten.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/wasm/1 basic/hello.cpp7
-rw-r--r--test cases/wasm/1 basic/hello.html8
-rw-r--r--test cases/wasm/1 basic/meson.build3
3 files changed, 18 insertions, 0 deletions
diff --git a/test cases/wasm/1 basic/hello.cpp b/test cases/wasm/1 basic/hello.cpp
new file mode 100644
index 0000000..6ce13da
--- /dev/null
+++ b/test cases/wasm/1 basic/hello.cpp
@@ -0,0 +1,7 @@
+#include<iostream>
+
+int main() {
+ std::cout << "Hello World" << std::endl;
+ return 0;
+}
+
diff --git a/test cases/wasm/1 basic/hello.html b/test cases/wasm/1 basic/hello.html
new file mode 100644
index 0000000..637bc20
--- /dev/null
+++ b/test cases/wasm/1 basic/hello.html
@@ -0,0 +1,8 @@
+<html>
+ <head>
+ <meta charset="utf-8">
+ </head>
+ <body>
+ <script src="hello.js"></script>
+ </body>
+</html>
diff --git a/test cases/wasm/1 basic/meson.build b/test cases/wasm/1 basic/meson.build
new file mode 100644
index 0000000..8fe713c
--- /dev/null
+++ b/test cases/wasm/1 basic/meson.build
@@ -0,0 +1,3 @@
+project('emcctest', 'cpp')
+
+executable('hello', 'hello.cpp')