annotate Platforms/Wasm/build-wasm.sh @ 253:8ff70c04c6df am-2

IObservable/IObserver now working in WASM too
author am@osimis.io
date Tue, 03 Jul 2018 10:48:47 +0200
parents 54c7284b0eff
children abc1c6231947
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
237
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
1 #!/bin/bash
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
2
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
3 currentDir=$(pwd)
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
4 wasmRootDir=$(pwd)
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
5
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
6 mkdir -p $wasmRootDir/build
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
7 cd $wasmRootDir/build
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
8
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
9 source ~/Downloads/emsdk/emsdk_env.sh
249
54c7284b0eff merged useful changes from branch am
am@osimis.io
parents: 237
diff changeset
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 ..
237
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
11 make -j 5
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
12
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
13 echo "-- building the web application -- "
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
14 cd $currentDir
b4642964c355 SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
diff changeset
15 #./build-web.sh