Mercurial > hg > orthanc-dicomweb
view Resources/holy-build-box-internal.sh @ 398:4a8fcfe2bbc7
removed test printf
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 04 Mar 2020 08:54:51 +0100 |
parents | 746d06183323 |
children | 335cf81270ea |
line wrap: on
line source
#!/bin/bash set -e # Activate Holy Build Box environment. source /hbb_exe/activate set -x # Download Mercurial to use the mainline of Orthanc framework MERCURIAL_VERSION=5.3 curl https://www.mercurial-scm.org/release/mercurial-${MERCURIAL_VERSION}.tar.gz > /tmp/mercurial.tar.gz cd /tmp tar xvf mercurial.tar.gz export PATH=$PATH:/tmp/mercurial-${MERCURIAL_VERSION} mkdir /tmp/build cd /tmp/build # Holy Build Box defines LDFLAGS as "-L/hbb_exe/lib # -static-libstdc++". The "-L/hbb_exe/lib" option results in linking # errors "undefined reference" to `std::__once_callable', # 'std::__once_call' and '__once_proxy'. export LDFLAGS=-static-libstdc++ unset LDPATHFLAGS unset SHLIB_LDFLAGS unset LD_LIBRARY_PATH unset LIBRARY_PATH mkdir /tmp/source-writeable cp -r /source/CMakeLists.txt /tmp/source-writeable/ cp -r /source/Plugin /tmp/source-writeable/ cp -r /source/Resources /tmp/source-writeable/ cp -r /source/UnitTestsSources /tmp/source-writeable/ cp -r /source/WebApplication /tmp/source-writeable/ cmake /tmp/source-writeable \ -DCMAKE_BUILD_TYPE=$1 -DSTATIC_BUILD=ON \ -DORTHANC_SDK_VERSION=1.5.7 \ -DORTHANC_FRAMEWORK_SOURCE=hg \ -DORTHANC_FRAMEWORK_VERSION=mainline \ -DCMAKE_INSTALL_PREFIX=/target make -j`nproc` if [ "$1" == "Release" ]; then strip ./libOrthancDicomWeb.so fi make install