User Manual AS2WASM - apache/royale-asjs GitHub Wiki
Set up your system
Your system will need to have the following tools available/installed:
- Java
- Ant
- git
- Node and npm
- make
- Cmake
-
PATH
Add the bin directory of CMake to the PATH:
On a Mac, set PATH to
export PATH=/Applications/CMake.app/Contents/bin:$PATH
-
Get and build the code
To use as2wasm you need to get and partially build a git repo:
git clone https://github.com/apache/royale-asjs.git
cd royale-asjs
git checkout feature/as2wasm
cd as2wasm
npm run build
Note: the build will take a long time to finish!
Global var
- For now, create a system variable WAT2WASM_HOME and set it to the absolute path of the wat2wasm binary the setup just created (e.g. '/usr/local/lib/node_modules/webassembly-binary-toolkit/wabt/bin'). This should not be needed for the final version...
Your first as2wasm project
Create a project
cd royale-asjs/as2wasm
npm run create-project -- -dir=[root dir] -name=[project name]
Build your project
cd [root dir] /[project name]
npm run build