Mercurial > hg > orthanc-stone
comparison OrthancStone/Samples/RtViewerPlugin/docker-internal.sh @ 1527:4c4b267e4004
RtViewerPlugin : similar to the StoneWebPlugin, but for the sole RtViewer sample
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Sun, 02 Aug 2020 15:13:58 +0200 |
parents | |
children | 3eca4f9c2827 |
comparison
equal
deleted
inserted
replaced
1526:61023b0d39c8 | 1527:4c4b267e4004 |
---|---|
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 | |
15 mkdir /tmp/build | |
16 cd /tmp/build | |
17 | |
18 LSB_CC=gcc-4.8 LSB_CXX=g++-4.8 cmake /tmp/source-writeable/OrthancStone/Samples/RtViewerPlugin \ | |
19 -DCMAKE_BUILD_TYPE=$1 \ | |
20 -DCMAKE_INSTALL_PREFIX=/target/ \ | |
21 -DCMAKE_TOOLCHAIN_FILE=/tmp/orthanc/OrthancFramework/Resources/Toolchains/LinuxStandardBaseToolchain.cmake \ | |
22 -DORTHANC_FRAMEWORK_ROOT=/tmp/orthanc/OrthancFramework \ | |
23 -DSTATIC_BUILD=ON \ | |
24 -DSTONE_BINARIES_RT_VIEWER=/target/RtViewer/ \ | |
25 -DUSE_LEGACY_JSONCPP=ON \ | |
26 -G Ninja | |
27 | |
28 ninja -j2 install | |
29 |