comparison Resources/Builders/BuildAllWindows.sh @ 35:77f4e165e535

Resources/Builders/BuildAllWindows.sh
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 28 May 2020 21:02:23 +0200
parents
children 6ad5da29f260
comparison
equal deleted inserted replaced
34:af63e0fe7a73 35:77f4e165e535
1 #!/bin/bash
2
3 set -e
4
5 if [ "$#" -ne 1 ]; then
6 echo "Illegal number of parameters: Must provide the target folder"
7 exit -1
8 fi
9
10 # Determine the absolute path to the directory containing the script
11 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12
13 TARGET=$1
14 echo "Will publish libraries in folder: ${TARGET}"
15
16 mkdir -p ${TARGET}
17
18 VERSION=`grep "set(PLUGIN_VERSION" ${DIR}/../../CMakeLists.txt | cut -d '"' -f 2`
19 echo "Version of the Python plugin: ${VERSION}"
20
21
22 set -x
23
24 bash ${DIR}/MinGW32-Python2.7/docker-compile.sh Release
25 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python2.7-${VERSION}.dll
26
27 bash ${DIR}/MinGW32-Python3.7/docker-compile.sh Release
28 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python3.7-${VERSION}.dll
29
30 bash ${DIR}/MinGW32-Python3.8/docker-compile.sh Release
31 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python3.8-${VERSION}.dll
32
33 bash ${DIR}/MinGW64-Python2.7/docker-compile.sh Release
34 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python2.7-${VERSION}.dll
35
36 bash ${DIR}/MinGW64-Python3.7/docker-compile.sh Release
37 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.7-${VERSION}.dll
38
39 bash ${DIR}/MinGW64-Python3.8/docker-compile.sh Release
40 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.8-${VERSION}.dll