comparison Platforms/Wasm/build-wasm.sh @ 237:b4642964c355 am

SimpleViewer demo running both with SDL and Wasm
author am@osimis.io
date Wed, 20 Jun 2018 09:03:48 +0200
parents
children 5470b15f7cf2
comparison
equal deleted inserted replaced
236:f73d722d98c8 237:b4642964c355
1 #!/bin/bash
2
3 currentDir=$(pwd)
4 wasmRootDir=$(pwd)
5
6 mkdir -p $wasmRootDir/build
7 cd $wasmRootDir/build
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 -DSTATIC_BUILD=OFF
11 make -j 5
12
13 echo "-- building the web application -- "
14 cd $currentDir
15 #./build-web.sh