Mercurial > hg > orthanc-stone
view Applications/Samples/build-wasm.sh @ 338:b3b3fa0e3689 am-2
BitmapStack
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Oct 2018 12:50:38 +0200 |
parents | be2660b6e40a |
children | e641d3978856 |
line wrap: on
line source
#!/bin/bash set -e currentDir=$(pwd) samplesRootDir=$(pwd) mkdir -p $samplesRootDir/build-wasm cd $samplesRootDir/build-wasm source ~/Downloads/emsdk/emsdk_env.sh 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 make -j 5 echo "-- building the web application -- " cd $currentDir ./build-web.sh