comparison Applications/Samples/Deprecated/rt-viewer-demo/build-wasm.sh @ 1347:bfd77672d825 broker

Moved Application/Samples/* to Application/Samples/Deprecated/*
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 07 Apr 2020 14:29:01 +0200
parents Applications/Samples/rt-viewer-demo/build-wasm.sh@1d9deb4ee84c
children
comparison
equal deleted inserted replaced
1346:df8bf351c23f 1347:bfd77672d825
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"