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