Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/WebAssembly/docker-internal.sh @ 1827:21ccc00839f7 StoneWebViewer-2.0
upgrade to Emscripten 2.0.23
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 May 2021 11:05:59 +0200 |
parents | 9ac2a65d4172 |
children | 3889ae96d2e9 |
comparison
equal
deleted
inserted
replaced
1825:d6b83b4cedcd | 1827:21ccc00839f7 |
---|---|
24 source /opt/emsdk/emsdk_env.sh | 24 source /opt/emsdk/emsdk_env.sh |
25 | 25 |
26 # Use a folder that is writeable by non-root users for the Emscripten cache | 26 # Use a folder that is writeable by non-root users for the Emscripten cache |
27 export EM_CACHE=/tmp/emscripten-cache | 27 export EM_CACHE=/tmp/emscripten-cache |
28 | 28 |
29 # Get the Orthanc framework | |
30 cd /tmp/ | |
31 hg clone https://hg.orthanc-server.com/orthanc/ | |
32 | |
33 # Make a copy of the read-only folder containing the source code into | 29 # Make a copy of the read-only folder containing the source code into |
34 # a writeable folder, because of "DownloadPackage.cmake" that writes | 30 # a writeable folder, because of "DownloadPackage.cmake" that writes |
35 # to the "ThirdPartyDownloads" folder next to the "CMakeLists.txt" | 31 # to the "ThirdPartyDownloads" folder next to the "CMakeLists.txt" |
36 cd /source | 32 cd /source |
37 hg clone /source /tmp/source-writeable | 33 hg clone /source /tmp/source-writeable |
34 | |
35 cd /tmp/source-writeable | |
36 hg up -c ${STONE_BRANCH} | |
38 | 37 |
39 mkdir /tmp/build | 38 mkdir /tmp/build |
40 cd /tmp/build | 39 cd /tmp/build |
41 | 40 |
42 cmake /tmp/source-writeable/Applications/StoneWebViewer/WebAssembly \ | 41 cmake /tmp/source-writeable/Applications/StoneWebViewer/WebAssembly \ |
43 -DCMAKE_BUILD_TYPE=$1 \ | 42 -DCMAKE_BUILD_TYPE=$1 \ |
44 -DORTHANC_STONE_INSTALL_PREFIX=/target/StoneWebViewer \ | 43 -DORTHANC_STONE_INSTALL_PREFIX=/target/StoneWebViewer \ |
45 -DCMAKE_TOOLCHAIN_FILE=${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake \ | 44 -DCMAKE_TOOLCHAIN_FILE=${EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake \ |
46 -DORTHANC_FRAMEWORK_ROOT=/tmp/orthanc/OrthancFramework/Sources \ | |
47 -DSTATIC_BUILD=ON \ | 45 -DSTATIC_BUILD=ON \ |
48 -G Ninja | 46 -G Ninja |
49 | 47 |
50 ninja -j2 install | 48 ninja -j2 install |