view Applications/Samples/build-wasm.sh.old @ 973:38409549db43 toa2019082903

Log with addresses + added fingerprint mechanism to avoid calling zombie objects where: - a message is sent with a receiver - the receiver dies - another receiver with the SAME address is created - the message reply is executed --> execution on the wrong object! (since their "identity" is their address. The fix is to identify them with an UUID stored at creation time)
author Benjamin Golinvaux <bgo@osimis.io>
date Thu, 29 Aug 2019 18:07:55 +0200
parents 40bb5eb247a5
children
line wrap: on
line source

#!/bin/bash
#
# usage:
# to build all targets:
# ./build-wasm.sh
#
# to build a single target:
# ./build-wasm.sh OrthancStoneSingleFrameEditor

set -e

target=${1:-all}

currentDir=$(pwd)
samplesRootDir=$(pwd)

mkdir -p $samplesRootDir/build-wasm
cd $samplesRootDir/build-wasm

source ~/apps/emsdk/emsdk_env.sh
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
./build-web.sh