win32.js is a Win32 wrapper for Emscripten.
You need no Windows to run win32.js project.
- Download and extract MinGW w32api and mingw-rt.
- Install Emscripten. Note that it requires clang 3.2 and nodejs.
It is really boring to build llvm/clang by yourself;
use a prebuilt package if available.
- For Windows, You may use clang-win32 binary.
- Clone this repository. Note there is fake-mswin submodule in use.
- Execute
MINGW=/path/to/mingw make examples
.examples/hello.cpp
is compiled intoexamples/hello.js
. - Open
examples/hello.html
using modern web browser.