Mercurial > hg > orthanc-stone
comparison Applications/Samples/build-wasm.sh @ 466:5055031f4a06 bgo-commands-codegen
- Added browserify to build. This allows using require calls for modules that
work with tsc compiler.
- removed older stuff related to Protocol Buffers and Flatbuffers
- changed triple-slash references to import statements
- module prefixes are now added at call sites
- added cmake module for filename handling
- switched to Ninja for sample build
- Added virtual dtor in ICommand
author | bgo-osimis |
---|---|
date | Mon, 11 Feb 2019 16:00:04 +0100 |
parents | ee41b6a017d7 |
children | 7cdb4634846c |
comparison
equal
deleted
inserted
replaced
448:cc47e6eaefb0 | 466:5055031f4a06 |
---|---|
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 \ |
22 make -j 5 $target | 22 -DCMAKE_BUILD_TYPE=Release \ |
23 -DSTONE_SOURCES_DIR=$currentDir/../../../orthanc-stone \ | |
24 -DORTHANC_FRAMEWORK_SOURCE=path \ | |
25 -DORTHANC_FRAMEWORK_ROOT=$currentDir/../../../orthanc \ | |
26 -DALLOW_DOWNLOADS=ON .. \ | |
27 -DENABLE_WASM=ON | |
28 | |
29 ninja $target | |
23 | 30 |
24 echo "-- building the web application -- " | 31 echo "-- building the web application -- " |
25 cd $currentDir | 32 cd $currentDir |
26 ./build-web.sh | 33 ./build-web.sh |