Mercurial > hg > orthanc-python
annotate Resources/Builders/MinGW32-Python2.7/docker-internal.sh @ 41:393d2da0722a
upgrade to Orthanc SDK 1.7.2
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 Jul 2020 14:34:59 +0200 |
parents | fd58eb5749ed |
children | c17cdaf687e3 |
rev | line source |
---|---|
0 | 1 #!/bin/bash |
2 set -ex | |
3 | |
9 | 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 | |
0 | 10 mkdir /tmp/build |
11 cd /tmp/build | |
12 | |
13 wget http://orthanc.osimis.io/ThirdPartyDownloads/Python/python-2.7.17-win32.tar.bz2 | |
18
2ec8e4cb93d3
fix missing python in mingw32 builder
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
9
diff
changeset
|
14 tar xfj python-2.7.17-win32.tar.bz2 |
0 | 15 |
9 | 16 cmake /tmp/source-writeable/ \ |
0 | 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/ \ | |
36
fd58eb5749ed
CMake simplification using DownloadOrthancFramework.cmake
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
18
diff
changeset
|
21 -DCMAKE_TOOLCHAIN_FILE=/source/Resources/Orthanc/Toolchains/MinGW-W64-Toolchain32.cmake \ |
0 | 22 -DCMAKE_INSTALL_PREFIX=/target |
23 | |
9 | 24 make -j`nproc` |
0 | 25 |
26 if [ "$1" == "Release" ]; then | |
27 i686-w64-mingw32-strip ./libOrthancPython.dll | |
28 fi | |
29 | |
30 make install |