view Resources/Builders/Docker/docker-internal.sh @ 0:7ed502b17b8f

initial commit
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Mar 2020 18:47:01 +0100
parents
children
line wrap: on
line source

#!/bin/bash
set -ex

mkdir /tmp/build
cd /tmp/build

cmake /source \
      -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