Mercurial > hg > orthanc-stone
comparison Applications/Samples/build-wasm.sh @ 461:593b8c3c02fb am-touch-events
fix build setting + build with ninja
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 04 Feb 2019 11:30:24 +0100 |
parents | 3fd8e4e5f93e |
children | 1155d0b4f557 |
comparison
equal
deleted
inserted
replaced
459:dc091ca6fd5f | 461:593b8c3c02fb |
---|---|
16 | 16 |
17 mkdir -p $samplesRootDir/build-wasm | 17 mkdir -p $samplesRootDir/build-wasm |
18 cd $samplesRootDir/build-wasm | 18 cd $samplesRootDir/build-wasm |
19 | 19 |
20 source ~/apps/emsdk/emsdk_env.sh | 20 source ~/apps/emsdk/emsdk_env.sh |
21 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 | 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 make -j 5 $target | 22 ninja $target |
23 | 23 |
24 echo "-- building the web application -- " | 24 echo "-- building the web application -- " |
25 cd $currentDir | 25 cd $currentDir |
26 ./build-web.sh | 26 ./build-web.sh |