comparison Applications/Samples/rt-viewer-demo/build-wasm.sh @ 549:1d9deb4ee84c ct-pet-dose-struct

Added RTSTRUCT demo viewer based on captain + fix in dev.h (wrong override signature)
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 02 Apr 2019 15:08:31 +0200
parents
children
comparison
equal deleted inserted replaced
548:d10a295b607a 549:1d9deb4ee84c
1 #!/bin/bash
2 #
3 # usage:
4 # build-wasm BUILD_TYPE
5 # where BUILD_TYPE is Debug, RelWithDebInfo or Release
6
7 set -e
8
9 buildType=${1:-Debug}
10
11 currentDir=$(pwd)
12 currentDirAbs=$(realpath $currentDir)
13
14 mkdir -p build-wasm
15 cd build-wasm
16
17 source ~/apps/emsdk/emsdk_env.sh
18 cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake \
19 -DCMAKE_BUILD_TYPE=$buildType -DSTONE_SOURCES_DIR=$currentDirAbs/../../../../orthanc-stone \
20 -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT=$currentDirAbs/../../../../orthanc \
21 -DALLOW_DOWNLOADS=ON .. -DENABLE_WASM=ON
22
23 ninja $target
24
25 echo "-- building the web application -- "
26 cd $currentDir
27 ./build-web.sh
28
29 echo "Launch start-serving-files.sh to access the web sample application locally"