# HG changeset patch # User Alain Mazy # Date 1589366600 -7200 # Node ID 7d6455a306ab7ef9443bfddcfb5fa3c1822664c8 # Parent f5493e5a51a37924bf6c0024ea1312cc8f8fa0cb removed unused files diff -r f5493e5a51a3 -r 7d6455a306ab Samples/build-wasm-RtViewer.sh --- a/Samples/build-wasm-RtViewer.sh Wed May 13 12:42:52 2020 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -#!/bin/bash -# -# usage: -# to build the sample in Debug: -# ./build-wasm-RtViewer.sh -# -# to build the sample in Debug: -# ./build-wasm-RtViewer.sh Release - -set -e - -if [ ! -d "WebAssembly" ]; then - echo "This script must be run from the Samples folder one level below orthanc-stone" - exit 1 -fi - - -currentDir=$(pwd) -samplesRootDir=$(pwd) -devrootDir=$(pwd)/../../ - -buildType=${1:-RelWithDebInfo} -buildFolderName="$devrootDir/out/build-stone-wasm-RtViewer-$buildType" -installFolderName="$devrootDir/out/install-stone-wasm-RtViewer-$buildType" - -mkdir -p $buildFolderName -# change current folder to the build folder -pushd $buildFolderName - -# configure the environment to use Emscripten -source ~/apps/emsdk/emsdk_env.sh - -emcmake cmake -G "Ninja" \ - -DCMAKE_BUILD_TYPE=$buildType \ - -DCMAKE_INSTALL_PREFIX=$installFolderName \ - -DSTATIC_BUILD=ON -DALLOW_DOWNLOADS=ON \ - $samplesRootDir/WebAssembly/RtViewer - -# perform build + installation -ninja install - -# restore the original working folder -popd - -echo "If all went well, the output files can be found in $installFolderName:" - -ls $installFolderName diff -r f5493e5a51a3 -r 7d6455a306ab Samples/build-wasm-SingleFrameViewer.sh --- a/Samples/build-wasm-SingleFrameViewer.sh Wed May 13 12:42:52 2020 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,47 +0,0 @@ -#!/bin/bash -# -# usage: -# to build the sample in Debug: -# ./build-wasm-SingleFrameViewer.sh -# -# to build the sample in Debug: -# ./build-wasm-SingleFrameViewer.sh Release - -set -e - -if [ ! -d "WebAssembly" ]; then - echo "This script must be run from the Samples folder one level below orthanc-stone" - exit 1 -fi - - -currentDir=$(pwd) -samplesRootDir=$(pwd) -devrootDir=$(pwd)/../../ - -buildType=${1:-RelWithDebInfo} -buildFolderName="$devrootDir/out/build-stone-wasm-SingleFrameViewer-$buildType" -installFolderName="$devrootDir/out/install-stone-wasm-SingleFrameViewer-$buildType" - -mkdir -p $buildFolderName -# change current folder to the build folder -pushd $buildFolderName - -# configure the environment to use Emscripten -source ~/apps/emsdk/emsdk_env.sh - -emcmake cmake -G "Ninja" \ - -DCMAKE_BUILD_TYPE=$buildType \ - -DCMAKE_INSTALL_PREFIX=$installFolderName \ - -DSTATIC_BUILD=ON -DALLOW_DOWNLOADS=ON \ - $samplesRootDir/WebAssembly/SingleFrameViewer - -# perform build + installation -ninja install - -# restore the original working folder -popd - -echo "If all went well, the output files can be found in $installFolderName:" - -ls $installFolderName \ No newline at end of file