view Platforms/Wasm/build-wasm.sh @ 274:dc1beee33134 am-2

split SdlApplication into NativeApplication and SdlApplication
author am@osimis.io
date Fri, 24 Aug 2018 13:52:55 +0200
parents abc1c6231947
children
line wrap: on
line source

#!/bin/bash

currentDir=$(pwd)
wasmRootDir=$(pwd)

mkdir -p $wasmRootDir/build
cd $wasmRootDir/build

source ~/Downloads/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 ..
make -j 5

echo "-- building the web application -- "
cd $currentDir
./build-web.sh