Mercurial > hg > orthanc-python
annotate Resources/Builders/BuildAllWindows.sh @ 219:3678a028f1f6
making the project REUSE-compliant
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 03 Jul 2024 18:05:11 +0200 |
parents | a5162d8bd2d4 |
children |
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 |
219
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
3 # SPDX-FileCopyrightText: 2020-2023 Osimis S.A., 2024-2024 Orthanc Team SRL, 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
4 # SPDX-License-Identifier: AGPL-3.0-or-later |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
5 |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
6 ## |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
7 ## Python plugin for Orthanc |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
8 ## Copyright (C) 2020-2023 Osimis S.A., Belgium |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
9 ## Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
10 ## Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
11 ## |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
12 ## This program is free software: you can redistribute it and/or |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
13 ## modify it under the terms of the GNU Affero General Public License |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
14 ## as published by the Free Software Foundation, either version 3 of |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
15 ## the License, or (at your option) any later version. |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
16 ## |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
17 ## This program is distributed in the hope that it will be useful, but |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
18 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
19 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
20 ## Affero General Public License for more details. |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
21 ## |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
22 ## You should have received a copy of the GNU Affero General Public License |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
23 ## along with this program. If not, see <http://www.gnu.org/licenses/>. |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
24 ## |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
25 |
3678a028f1f6
making the project REUSE-compliant
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
26 |
35
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 set -e |
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 if [ "$#" -ne 1 ]; then |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 echo "Illegal number of parameters: Must provide the target folder" |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 exit -1 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 fi |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 # Determine the absolute path to the directory containing the script |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 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
|
36 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 TARGET=$1 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 echo "Will publish libraries in folder: ${TARGET}" |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
39 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 mkdir -p ${TARGET} |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
42 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
|
43 echo "Version of the Python plugin: ${VERSION}" |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
44 |
111
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
45 set -x |
35
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
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 32 |
35
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
50 bash ${DIR}/MinGW32-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-Win32-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}/MinGW32-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-Win32-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}/MinGW32-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-Win32-Python3.8-${VERSION}.dll |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
58 |
111
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}/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
|
60 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
|
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}/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
|
63 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
|
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}/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
|
66 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
|
67 |
160
a5162d8bd2d4
Added Windows builder for Python 3.12
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
68 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
|
69 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
|
70 |
111
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
71 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
72 ## 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
|
73 |
35
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
74 bash ${DIR}/MinGW64-Python2.7/docker-compile.sh Release |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
75 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
|
76 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
77 bash ${DIR}/MinGW64-Python3.7/docker-compile.sh Release |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
78 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
|
79 |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
80 bash ${DIR}/MinGW64-Python3.8/docker-compile.sh Release |
77f4e165e535
Resources/Builders/BuildAllWindows.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
81 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
|
82 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
83 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
|
84 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
|
85 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
86 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
|
87 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
|
88 |
6ad5da29f260
added Windows builders for Python 3.9, 3.10 and 3.11
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
35
diff
changeset
|
89 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
|
90 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
|
91 |
a5162d8bd2d4
Added Windows builder for Python 3.12
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
111
diff
changeset
|
92 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
|
93 cp ${DIR}/../../docker-build/lib/libOrthancPython.dll ${TARGET}/OrthancPython-Win64-Python3.12-${VERSION}.dll |