Mercurial > hg > orthanc-stone
view OrthancStone/Samples/build-wasm-samples.sh @ 1519:22d1bd085c19
split STONE_BINARIES into two different vars for both
StoneWebViewer and RtViewer
+ fixed docker build
+ embed of RtViewer files
+ serving of RtViewer files
+ Orthanc explorer extension to open a series in
the RtViewer : sibling series will be traversed and the
first DOSE/STRUCT will be used.
WARNING: needs work for PT and to allow for missing dose
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Fri, 31 Jul 2020 12:51:28 +0200 |
parents | 244ad1e4e76a |
children |
line wrap: on
line source
#!/bin/bash # # usage: # to build the samples in RelWithDebInfo: # ./build-wasm-samples.sh # # to build the samples in Release: # ./build-wasm-samples.sh Release set -e if [ ! -d "WebAssembly" ]; then echo "This script must be run from the Samples folder one level below orthanc-stone" exit 1 fi currentDir=$(pwd) samplesRootDir=$(pwd) devrootDir=$(pwd)/../../ buildType=${1:-RelWithDebInfo} buildFolderName="$devrootDir/out/build-stone-wasm-samples-$buildType" installFolderName="$devrootDir/out/install-stone-wasm-samples-$buildType" mkdir -p $buildFolderName # change current folder to the build folder pushd $buildFolderName # configure the environment to use Emscripten source ~/apps/emsdk/emsdk_env.sh emcmake cmake -G "Ninja" \ -DCMAKE_BUILD_TYPE=$buildType \ -DCMAKE_INSTALL_PREFIX=$installFolderName \ -DSTATIC_BUILD=ON -DALLOW_DOWNLOADS=ON \ $samplesRootDir/WebAssembly # perform build + installation ninja ninja install # restore the original working folder popd echo "If all went well, the output files can be found in $installFolderName:" ls $installFolderName