| import os |
| |
| WASM_INSTALL = '{{WASM_INSTALL}}' |
| # this helps projects using emscripten find it |
| EMSCRIPTEN_ROOT = os.path.join(WASM_INSTALL, 'emscripten') |
| LLVM_ROOT = os.path.join(WASM_INSTALL, 'bin') |
| BINARYEN_ROOT = os.path.join(WASM_INSTALL) |
| |
| prebuilt_node = '{{PREBUILT_NODE}}' |
| if not os.path.isfile(prebuilt_node): |
| prebuilt_node = None |
| NODE_JS = os.path.expanduser(os.getenv('NODE') or prebuilt_node or '/usr/bin/nodejs') |
| JAVA = '{{PREBUILT_JAVA}}' |
| |
| # For testing only |
| V8_ENGINE = os.path.join(WASM_INSTALL, 'bin', 'd8') |
| JS_ENGINES = [NODE_JS] |