Mercurial > hg > orthanc-python
annotate Resources/Builders/BuildAllWindows.sh @ 187:d08d75fc6d6a java-code-model
synchronization of the code model with orthanc-java project
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Jul 2024 17:02:11 +0200 |
parents | a5162d8bd2d4 |
children | 3678a028f1f6 |
rev | line source |
---|---|
35
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 #!/bin/bash |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 set -e |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 if [ "$#" -ne 1 ]; then |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 echo "Illegal number of parameters: Must provide the target folder" |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 exit -1 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 fi |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 # Determine the absolute path to the directory containing the script |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 TARGET=$1 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 echo "Will publish libraries in folder: ${TARGET}" |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 mkdir -p ${TARGET} |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 VERSION=`grep "set(PLUGIN_VERSION" ${DIR}/../../CMakeLists.txt | cut -d '"' -f 2` |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 echo "Version of the Python plugin: ${VERSION}" |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 |
111
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
21 set -x |
35
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 |
111
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
23 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
24 ## Windows 32 |
35
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 bash ${DIR}/MinGW32-Python2.7/docker-compile.sh Release |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python2.7-${VERSION}.dll |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 bash ${DIR}/MinGW32-Python3.7/docker-compile.sh Release |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python3.7-${VERSION}.dll |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 bash ${DIR}/MinGW32-Python3.8/docker-compile.sh Release |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python3.8-${VERSION}.dll |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 |
111
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
35 bash ${DIR}/MinGW32-Python3.9/docker-compile.sh Release |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
36 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python3.9-${VERSION}.dll |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
37 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
38 bash ${DIR}/MinGW32-Python3.10/docker-compile.sh Release |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
39 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python3.10-${VERSION}.dll |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
40 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
41 bash ${DIR}/MinGW32-Python3.11/docker-compile.sh Release |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
42 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python3.11-${VERSION}.dll |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
43 |
160
a5162d8bd2d4
Added Windows builder for Python 3.12
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
44 bash ${DIR}/MinGW32-Python3.12/docker-compile.sh Release |
a5162d8bd2d4
Added Windows builder for Python 3.12
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
45 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win32-Python3.12-${VERSION}.dll |
a5162d8bd2d4
Added Windows builder for Python 3.12
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
46 |
111
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
47 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
48 ## Windows 64 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
49 |
35
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
50 bash ${DIR}/MinGW64-Python2.7/docker-compile.sh Release |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
51 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python2.7-${VERSION}.dll |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 bash ${DIR}/MinGW64-Python3.7/docker-compile.sh Release |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
54 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.7-${VERSION}.dll |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
55 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
56 bash ${DIR}/MinGW64-Python3.8/docker-compile.sh Release |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
57 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.8-${VERSION}.dll |
111
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
58 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
59 bash ${DIR}/MinGW64-Python3.9/docker-compile.sh Release |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
60 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.9-${VERSION}.dll |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
61 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
62 bash ${DIR}/MinGW64-Python3.10/docker-compile.sh Release |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
63 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.10-${VERSION}.dll |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
64 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
65 bash ${DIR}/MinGW64-Python3.11/docker-compile.sh Release |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
66 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.11-${VERSION}.dll |
160
a5162d8bd2d4
Added Windows builder for Python 3.12
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
67 |
a5162d8bd2d4
Added Windows builder for Python 3.12
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
68 bash ${DIR}/MinGW64-Python3.12/docker-compile.sh Release |
a5162d8bd2d4
Added Windows builder for Python 3.12
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
69 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.12-${VERSION}.dll |