Mercurial > hg > orthanc-stone
comparison Applications/Samples/build-wasm.sh @ 463:1155d0b4f557 am-touch-events
debug build by default to have access to the C++ call stack when assertion fails
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 07 Feb 2019 09:26:57 +0100 |
parents | 593b8c3c02fb |
children | 33983c2178ba |
comparison
equal
deleted
inserted
replaced
462:d93aff4e602a | 463:1155d0b4f557 |
---|---|
8 # ./build-wasm.sh OrthancStoneSingleFrameEditor | 8 # ./build-wasm.sh OrthancStoneSingleFrameEditor |
9 | 9 |
10 set -e | 10 set -e |
11 | 11 |
12 target=${1:-all} | 12 target=${1:-all} |
13 buildType=${2:-Debug} | |
13 | 14 |
14 currentDir=$(pwd) | 15 currentDir=$(pwd) |
15 samplesRootDir=$(pwd) | 16 samplesRootDir=$(pwd) |
16 | 17 |
17 mkdir -p $samplesRootDir/build-wasm | 18 mkdir -p $samplesRootDir/build-wasm |
18 cd $samplesRootDir/build-wasm | 19 cd $samplesRootDir/build-wasm |
19 | 20 |
20 source ~/apps/emsdk/emsdk_env.sh | 21 source ~/apps/emsdk/emsdk_env.sh |
21 cmake -G Ninja -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 cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_BUILD_TYPE=$buildType -DSTONE_SOURCES_DIR=$currentDir/../../../orthanc-stone -DORTHANC_FRAMEWORK_SOURCE=path -DORTHANC_FRAMEWORK_ROOT=$currentDir/../../../orthanc -DALLOW_DOWNLOADS=ON .. -DENABLE_WASM=ON |
22 ninja $target | 23 ninja $target |
23 | 24 |
24 echo "-- building the web application -- " | 25 echo "-- building the web application -- " |
25 cd $currentDir | 26 cd $currentDir |
26 ./build-web.sh | 27 ./build-web.sh |