-
Notifications
You must be signed in to change notification settings - Fork 116
User Manual AS2WASM
erikdebruin edited this page Nov 17, 2017
·
26 revisions
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
-
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!
- 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...
cd royale-asjs/as2wasm
npm run create-project -- -dir=[root dir] -name=[project name]
cd [root dir] /[project name]
npm run build
Apache®, Apache Royale, Royale™, and the Royale logo are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries.