2021-01-03 11:25:14 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-09-11 12:22:13 +00:00
|
|
|
# get the absolute path of the root folder
|
|
|
|
ROOT=`cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 ; pwd -P`
|
2021-01-03 11:25:14 +00:00
|
|
|
|
|
|
|
# emsdk_env.sh is fairly noisy, and suppress error message if the file doesn't
|
|
|
|
# exist yet (i.e. before building emsdk)
|
|
|
|
source "$ROOT/emsdk/emsdk/emsdk_env.sh" 2> /dev/null || true
|
2021-09-11 12:22:13 +00:00
|
|
|
export PATH="$ROOT/node_modules/.bin/:$ROOT/emsdk/emsdk/ccache/git-emscripten_64bit/bin:$PATH:$ROOT/packages/.artifacts/bin/"
|
2021-01-10 02:51:08 +00:00
|
|
|
export EM_DIR=$(dirname $(which emcc.py || echo "."))
|
2021-09-11 12:22:13 +00:00
|
|
|
|
|
|
|
# Following two variables are set by emsdk activated otherwise
|
|
|
|
export _EMCC_CCACHE=1
|
|
|
|
# mtime of this file is checked by ccache, we set it to avoid cache misses.
|
|
|
|
export EM_CONFIG="$ROOT/emsdk/emsdk/.emscripten"
|