Mercurial > hg > orthanc-stone
comparison Applications/Samples/build-wasm.sh.old @ 518:40bb5eb247a5 bgo-commands-codegen
Reverted a couple of files to AM version (wrong changes on my end)
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 12 Mar 2019 09:19:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
517:64ee3033e1ca | 518:40bb5eb247a5 |
---|---|
1 #!/bin/bash | |
2 # | |
3 # usage: | |
4 # to build all targets: | |
5 # ./build-wasm.sh | |
6 # | |
7 # to build a single target: | |
8 # ./build-wasm.sh OrthancStoneSingleFrameEditor | |
9 | |
10 set -e | |
11 | |
12 target=${1:-all} | |
13 | |
14 currentDir=$(pwd) | |
15 samplesRootDir=$(pwd) | |
16 | |
17 mkdir -p $samplesRootDir/build-wasm | |
18 cd $samplesRootDir/build-wasm | |
19 | |
20 source ~/apps/emsdk/emsdk_env.sh | |
21 cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN}/cmake/Modules/Platform/Emscripten.cmake \ | |
22 -DCMAKE_BUILD_TYPE=Release \ | |
23 -DSTONE_SOURCES_DIR=$currentDir/../../../orthanc-stone \ | |
24 -DORTHANC_FRAMEWORK_SOURCE=path \ | |
25 -DORTHANC_FRAMEWORK_ROOT=$currentDir/../../../orthanc \ | |
26 -DALLOW_DOWNLOADS=ON .. \ | |
27 -DENABLE_WASM=ON | |
28 | |
29 ninja $target | |
30 | |
31 echo "-- building the web application -- " | |
32 cd $currentDir | |
33 ./build-web.sh |