diff 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
line wrap: on
line diff
--- a/Applications/Samples/build-wasm.sh	Tue Jan 29 18:16:38 2019 +0100
+++ b/Applications/Samples/build-wasm.sh	Mon Feb 04 11:30:24 2019 +0100
@@ -18,8 +18,8 @@
 cd $samplesRootDir/build-wasm
 
 source ~/apps/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 $target
+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
+ninja $target
 
 echo "-- building the web application -- "
 cd $currentDir