Mercurial > hg > orthanc-stone
comparison Applications/Samples/build-wasm.sh @ 295:b04b13810540 am-2
unified CMakeLists.txt into a single file for WASM/Native + bootstrap Command (to rework) + doc
author | am@osimis.io |
---|---|
date | Tue, 04 Sep 2018 15:09:42 +0200 |
parents | |
children | be2660b6e40a |
comparison
equal
deleted
inserted
replaced
294:faccc4b07b92 | 295:b04b13810540 |
---|---|
1 #!/bin/bash | |
2 | |
3 currentDir=$(pwd) | |
4 samplesRootDir=$(pwd) | |
5 | |
6 mkdir -p $samplesRootDir/build-wasm | |
7 cd $samplesRootDir/build-wasm | |
8 | |
9 source ~/Downloads/emsdk/emsdk_env.sh | |
10 cmake -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 | |
11 make -j 5 | |
12 | |
13 echo "-- building the web application -- " | |
14 cd $currentDir | |
15 ./build-web.sh |