summarylogtreecommitdiffstats
path: root/qtwasm_env.sh
blob: 8b5a49e42ec406cd947b21fe938cc555745b6d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#/opt/qt5-wasm/emsdk/emsdk activate EMSDKVER

# load emsdk environment
# EM_CACHE issue: https://github.com/emscripten-core/emsdk/issues/535
EM_CACHE_PATH=~/.cache/qt5-wasm
export EM_CACHE=$EM_CACHE_PATH
source /opt/qt5-wasm/emsdk/emsdk_env.sh
export EM_CACHE=$EM_CACHE_PATH
echo "EM_CACHE (override) = $EM_CACHE"

# Export Qt5 WebAssembly bin Path
echo $PATH | grep -w "/opt/qt5-wasm/bin" > /dev/null
if [ $? -ne 0 ]; then
    export PATH=/opt/qt5-wasm/bin:$PATH
fi