parent
ddbf60f86d
commit
f41bdae368
14 changed files with 127 additions and 1 deletions
@ -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' |
||||
|
@ -0,0 +1,5 @@ |
||||
## Experimental Webassembly support via Emscripten |
||||
|
||||
Meson now supports compiling code to Webassembly using the Emscripten |
||||
compiler. As with most things regarding Webassembly, this support is |
||||
subject to change. |
@ -0,0 +1,7 @@ |
||||
#include<iostream> |
||||
|
||||
int main() { |
||||
std::cout << "Hello World" << std::endl; |
||||
return 0; |
||||
} |
||||
|
@ -0,0 +1,8 @@ |
||||
<html> |
||||
<head> |
||||
<meta charset="utf-8"> |
||||
</head> |
||||
<body> |
||||
<script src="hello.js"></script> |
||||
</body> |
||||
</html> |
@ -0,0 +1,3 @@ |
||||
project('emcctest', 'cpp') |
||||
|
||||
executable('hello', 'hello.cpp') |
Loading…
Reference in new issue