Mercurial > hg > orthanc-stone
comparison Applications/Samples/Deprecated/build-wasm.sh.old @ 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/build-wasm.sh.old@40bb5eb247a5 |
children |
comparison
equal
deleted
inserted
replaced
1346:df8bf351c23f | 1347:bfd77672d825 |
---|---|
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 |