Mercurial > hg > orthanc-object-storage
annotate Aws/holy-build-box-internal.sh @ 106:c9356e42af99
added TransferMode for S3 (currently affected by https://github.com/aws/aws-sdk-cpp/issues/2319 since we are using version 1.9.45)
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 09 Oct 2023 15:10:26 +0200 |
parents | 5d2e9399bdd8 |
children | 40efe821932a |
rev | line source |
---|---|
58 | 1 #!/bin/bash |
2 | |
3 # Cloud storage plugins for Orthanc | |
4 # Copyright (C) 2020-2021 Osimis S.A., Belgium | |
5 # | |
6 # This program is free software: you can redistribute it and/or | |
7 # modify it under the terms of the GNU Affero General Public License | |
8 # as published by the Free Software Foundation, either version 3 of | |
9 # the License, or (at your option) any later version. | |
10 # | |
11 # This program is distributed in the hope that it will be useful, but | |
12 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 # Affero General Public License for more details. | |
15 # | |
16 # You should have received a copy of the GNU Affero General Public License | |
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
18 | |
19 | |
20 set -e | |
21 | |
22 # Activate Holy Build Box environment. | |
23 source /hbb_exe/activate | |
24 | |
25 set -ex | |
26 | |
27 mkdir /tmp/build | |
28 cd /tmp/build | |
29 | |
30 # Holy Build Box defines LDFLAGS as "-L/hbb_exe/lib | |
31 # -static-libstdc++". The "-L/hbb_exe/lib" option results in linking | |
32 # errors "undefined reference" to `std::__once_callable', | |
33 # 'std::__once_call' and '__once_proxy'. | |
34 export LDFLAGS=-static-libstdc++ | |
35 unset LDPATHFLAGS | |
36 unset SHLIB_LDFLAGS | |
37 unset LD_LIBRARY_PATH | |
38 unset LIBRARY_PATH | |
39 | |
40 mkdir -p /tmp/source-writeable/Aws | |
41 | |
42 cp -r /source/Common /tmp/source-writeable/ | |
43 cp -r /source/UnitTestsSources /tmp/source-writeable/ | |
44 cp /source/Aws/* /tmp/source-writeable/Aws/ || true # Ignore error about omitting directories | |
45 | |
46 cmake /tmp/source-writeable/Aws/ \ | |
63
5d2e9399bdd8
fix holy-build-box-internal.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
58
diff
changeset
|
47 -DORTHANC_FRAMEWORK_VERSION=1.9.3 \ |
58 | 48 -DORTHANC_FRAMEWORK_SOURCE=web \ |
49 -DCMAKE_BUILD_TYPE=$1 -DSTATIC_BUILD=ON | |
50 | |
51 # Use only 2 processes (not `nproc`), as this is a very heavy compilation | |
52 make -j2 | |
53 | |
54 ./UnitTests | |
55 | |
56 if [ "$1" == "Release" ]; then | |
57 strip ./libOrthancAwsS3Storage.so | |
58 fi | |
59 | |
60 cp ./libOrthancAwsS3Storage.so /target/ | |
61 cp ./UnitTests /target/ |