Mercurial > hg > orthanc-stone
comparison Applications/Samples/build-wasm.sh @ 446:3fd8e4e5f93e
changed path to emsdk (it shall now be in ~/apps instead of ~/Downloads)
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 16 Jan 2019 18:50:59 +0100 |
parents | e641d3978856 |
children | 593b8c3c02fb 7cdb4634846c |
comparison
equal
deleted
inserted
replaced
444:1e3d870ccd0d | 446:3fd8e4e5f93e |
---|---|
15 samplesRootDir=$(pwd) | 15 samplesRootDir=$(pwd) |
16 | 16 |
17 mkdir -p $samplesRootDir/build-wasm | 17 mkdir -p $samplesRootDir/build-wasm |
18 cd $samplesRootDir/build-wasm | 18 cd $samplesRootDir/build-wasm |
19 | 19 |
20 source ~/Downloads/emsdk/emsdk_env.sh | 20 source ~/apps/emsdk/emsdk_env.sh |
21 cmake -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -DSTONE_SOURCES_DIR=$currentDir/../../../orthanc-stone -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT=$currentDir/../../../orthanc -DALLOW_DOWNLOADS=ON .. -DENABLE_WASM=ON | 21 cmake -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=Release -DSTONE_SOURCES_DIR=$currentDir/../../../orthanc-stone -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT=$currentDir/../../../orthanc -DALLOW_DOWNLOADS=ON .. -DENABLE_WASM=ON |
22 make -j 5 $target | 22 make -j 5 $target |
23 | 23 |
24 echo "-- building the web application -- " | 24 echo "-- building the web application -- " |
25 cd $currentDir | 25 cd $currentDir |