comparison StoneWebViewer/Plugin/docker-internal.sh @ 1496:d450653b46d3

build stone web viewer using docker
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 25 Jun 2020 17:50:36 +0200
parents
children f12b56839496
comparison
equal deleted inserted replaced
1495:fb74ed5d8c22 1496:d450653b46d3
1 #!/bin/bash
2 set -ex
3
4 # Get the Orthanc framework
5 cd /tmp/
6 hg clone https://hg.orthanc-server.com/orthanc/
7
8 # Make a copy of the read-only folder containing the source code into
9 # a writeable folder, because of "DownloadPackage.cmake" that writes
10 # to the "ThirdPartyDownloads" folder next to the "CMakeLists.txt"
11 cd /source
12 hg clone /source /tmp/source-writeable
13
14 mkdir /tmp/build
15 cd /tmp/build
16
17 cmake /tmp/source-writeable/StoneWebViewer/Plugin \
18 -DCMAKE_BUILD_TYPE=$1 \
19 -DCMAKE_INSTALL_PREFIX=/target/ \
20 -DCMAKE_TOOLCHAIN_FILE=/tmp/orthanc/Resources/LinuxStandardBaseToolchain.cmake \
21 -DORTHANC_FRAMEWORK_ROOT=/tmp/orthanc \
22 -DSTATIC_BUILD=ON \
23 -G Ninja
24
25 ninja -j2 install