view Resources/Builders/DebianStable/docker-internal.sh @ 9:8ec973ae8d6c

fix docker builds
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 31 Mar 2020 14:03:30 +0200
parents dac0f23f85c2
children
line wrap: on
line source

#!/bin/bash
set -ex

mkdir /tmp/source-writeable

cp -r /source/CMakeLists.txt /tmp/source-writeable/
cp -r /source/Sources /tmp/source-writeable/
cp -r /source/Resources /tmp/source-writeable/

mkdir /tmp/build
cd /tmp/build

cmake /tmp/source-writeable/ \
      -DCMAKE_BUILD_TYPE=$1 \
      -DPYTHON_VERSION=3.7 \
      -DSTATIC_BUILD=ON \
      -DCMAKE_INSTALL_PREFIX=/target 

make -j`nproc`

if [ "$1" == "Release" ]; then
    strip ./libOrthancPython.so
fi

make install