diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Resources/Builders/Docker/docker-internal.sh	Thu Mar 26 18:47:01 2020 +0100
@@ -0,0 +1,19 @@
+#!/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