Mercurial > hg > orthanc-stone
diff Applications/Samples/build-wasm.sh @ 435:e641d3978856 am-vsol-upgrade
WasmWebService now using BaseWebService and supporting cache
author | am@osimis.io |
---|---|
date | Tue, 04 Dec 2018 11:52:43 +0100 |
parents | be2660b6e40a |
children | ee41b6a017d7 3fd8e4e5f93e |
line wrap: on
line diff
--- a/Applications/Samples/build-wasm.sh Mon Dec 03 18:03:30 2018 +0100 +++ b/Applications/Samples/build-wasm.sh Tue Dec 04 11:52:43 2018 +0100 @@ -1,7 +1,16 @@ #!/bin/bash +# +# usage: +# to build all targets: +# ./build-wasm.sh +# +# to build a single target: +# ./build-wasm.sh OrthancStoneSingleFrameEditor set -e +target=${1:-all} + currentDir=$(pwd) samplesRootDir=$(pwd) @@ -10,7 +19,7 @@ source ~/Downloads/emsdk/emsdk_env.sh 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 -make -j 5 +make -j 5 $target echo "-- building the web application -- " cd $currentDir