Mercurial > hg > orthanc-python
comparison Resources/Builders/MinGW32-Python2.7/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 | Resources/Builders/Windows32-Python2.7/docker-internal.sh@7ed502b17b8f |
children | 2ec8e4cb93d3 |
comparison
equal
deleted
inserted
replaced
8:dac0f23f85c2 | 9:8ec973ae8d6c |
---|---|
1 #!/bin/bash | |
2 set -ex | |
3 | |
4 mkdir /tmp/source-writeable | |
5 | |
6 cp -r /source/CMakeLists.txt /tmp/source-writeable/ | |
7 cp -r /source/Sources /tmp/source-writeable/ | |
8 cp -r /source/Resources /tmp/source-writeable/ | |
9 | |
10 mkdir /tmp/build | |
11 cd /tmp/build | |
12 | |
13 wget http://orthanc.osimis.io/ThirdPartyDownloads/Python/python-2.7.17-win32.tar.bz2 | |
14 tar xvfj python-2.7.17-win32.tar.bz2 | |
15 | |
16 cmake /tmp/source-writeable/ \ | |
17 -DCMAKE_BUILD_TYPE=$1 \ | |
18 -DSTATIC_BUILD=ON \ | |
19 -DPYTHON_VERSION=2.7 \ | |
20 -DPYTHON_WINDOWS_ROOT=/tmp/build/python-2.7.17-win32/ \ | |
21 -DCMAKE_TOOLCHAIN_FILE=/source/Resources/Orthanc/Resources/MinGW-W64-Toolchain32.cmake \ | |
22 -DCMAKE_INSTALL_PREFIX=/target | |
23 | |
24 make -j`nproc` | |
25 | |
26 if [ "$1" == "Release" ]; then | |
27 i686-w64-mingw32-strip ./libOrthancPython.dll | |
28 fi | |
29 | |
30 make install |