Mercurial > hg > orthanc-python
view Resources/Builders/DebianStable/docker-internal.sh @ 26:b0d1308280d8
Added the PYTHON_WINDOWS_USE_RELEASE_LIBS CMake option
to allow usage of debug or release Python builds when building
in debug mode under Windows with Visual Studio.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 06 Apr 2020 20:39:49 +0200 |
parents | 8ec973ae8d6c |
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