Mercurial > hg > orthanc-object-storage
annotate Aws/AwsStaticConfiguration.cmake @ 161:f7654d481226
created Aws/mingw-compile.sh
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 23 Jun 2024 15:12:06 +0200 |
parents | d3e7c86c3a4e |
children |
rev | line source |
---|---|
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 # Cloud storage plugins for Orthanc |
145
3c7e0374f28e
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
142
diff
changeset
|
2 # Copyright (C) 2020-2023 Osimis S.A., Belgium |
3c7e0374f28e
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
142
diff
changeset
|
3 # Copyright (C) 2024-2024 Orthanc Team SRL, Belgium |
3c7e0374f28e
updated copyright, as Orthanc Team now replaces Osimis
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
142
diff
changeset
|
4 # Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 # |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 # This program is free software: you can redistribute it and/or |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 # modify it under the terms of the GNU Affero General Public License |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 # as published by the Free Software Foundation, either version 3 of |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 # the License, or (at your option) any later version. |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 # |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 # This program is distributed in the hope that it will be useful, but |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 # WITHOUT ANY WARRANTY; without even the implied warranty of |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 # Affero General Public License for more details. |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 # |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 # You should have received a copy of the GNU Affero General Public License |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
20 # The versions below must match those in "./DownloadStaticPackages.sh" |
156
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
21 SET(AWS_CHECKSUMS_VERSION 0.1.18) |
155 | 22 SET(AWS_CRT_CPP_VERSION 0.24.1) |
156
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
23 SET(AWS_C_AUTH_VERSION 0.7.22) |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
24 SET(AWS_C_CAL_VERSION 0.7.0) |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
25 SET(AWS_C_COMMON_VERSION 0.9.23) |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
26 SET(AWS_C_COMPRESSION_VERSION 0.2.18) |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
27 SET(AWS_C_EVENT_STREAM_VERSION 0.4.2) |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
28 SET(AWS_C_HTTP_VERSION 0.8.2) |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
29 SET(AWS_C_IO_VERSION 0.14.9) |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
30 SET(AWS_C_MQTT_VERSION 0.10.4) |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
31 SET(AWS_C_S3_VERSION 0.5.10) |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
32 SET(AWS_C_SDKUTILS_VERSION 0.1.16) |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
33 SET(AWS_SDK_CPP_VERSION 1.11.178) |
107 | 34 |
156
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
35 SET(AWS_CHECKSUMS_MD5 "ab640e05f6e8ffc20d619599b5ff7c92") |
155 | 36 SET(AWS_CRT_CPP_MD5 "fa2cda44386bd56f1d4609c6a54a59f9") |
156
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
37 SET(AWS_C_AUTH_MD5 "d2655feb998f57af8f9e985bf358face") |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
38 SET(AWS_C_CAL_MD5 "522cad001d0b259e792b7468cd4d4c84") |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
39 SET(AWS_C_COMMON_MD5 "a36562c3eb99227cbb131c7c56602b86") |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
40 SET(AWS_C_COMPRESSION_MD5 "f1510a8769637d4997e43d2783807113") |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
41 SET(AWS_C_EVENT_STREAM_MD5 "9d0f9a4f81927fcffccfa989baebf024") |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
42 SET(AWS_C_HTTP_MD5 "20156836ae45b982cc56f2762cc9f27e") |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
43 SET(AWS_C_IO_MD5 "c95a51d07c1eace423205af3a5407121") |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
44 SET(AWS_C_MQTT_MD5 "43de8c035d383ac33652e0de0e4b2b7a") |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
45 SET(AWS_C_S3_MD5 "5db9d3ec2caa4ebe1b4b3bf27a45c513") |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
46 SET(AWS_C_SDKUTILS_MD5 "a215ee5a0d082df1bff812b24456c0a2") |
155 | 47 SET(AWS_SDK_CPP_MD5 "a3f45888e939bb71506e0f7eaa630e48") |
48 | |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
49 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
50 SET(AWS_CHECKSUMS_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-checksums-${AWS_CHECKSUMS_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
51 SET(AWS_CHECKSUMS_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-checksums-${AWS_CHECKSUMS_VERSION}.tar.gz") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
52 DownloadPackage(${AWS_CHECKSUMS_MD5} ${AWS_CHECKSUMS_URL} "${AWS_CHECKSUMS_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
53 |
155 | 54 SET(AWS_CRT_CPP_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-crt-cpp-${AWS_CRT_CPP_VERSION}) |
55 SET(AWS_CRT_CPP_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-crt-cpp-${AWS_CRT_CPP_VERSION}.tar.gz") | |
56 DownloadPackage(${AWS_CRT_CPP_MD5} ${AWS_CRT_CPP_URL} "${AWS_CRT_CPP_SOURCES_DIR}") | |
57 | |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
58 SET(AWS_C_AUTH_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-auth-${AWS_C_AUTH_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
59 SET(AWS_C_AUTH_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-auth-${AWS_C_AUTH_VERSION}.tar.gz") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
60 DownloadPackage(${AWS_C_AUTH_MD5} ${AWS_C_AUTH_URL} "${AWS_C_AUTH_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
61 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
62 SET(AWS_C_CAL_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-cal-${AWS_C_CAL_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
63 SET(AWS_C_CAL_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-cal-${AWS_C_CAL_VERSION}.tar.gz") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
64 DownloadPackage(${AWS_C_CAL_MD5} ${AWS_C_CAL_URL} "${AWS_C_CAL_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
65 |
161
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
66 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
67 SET(AWS_C_COMMON_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-common-${AWS_C_COMMON_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
68 SET(AWS_C_COMMON_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-common-${AWS_C_COMMON_VERSION}.tar.gz") |
161
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
69 |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
70 if (IS_DIRECTORY "${AWS_C_COMMON_SOURCES_DIR}") |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
71 set(FirstRun OFF) |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
72 else() |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
73 set(FirstRun ON) |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
74 endif() |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
75 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
76 DownloadPackage(${AWS_C_COMMON_MD5} ${AWS_C_COMMON_URL} "${AWS_C_COMMON_SOURCES_DIR}") |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
77 |
161
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
78 if (FirstRun) |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
79 # This is a patch for MinGW |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
80 execute_process( |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
81 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
82 ${CMAKE_CURRENT_LIST_DIR}/aws-c-common-${AWS_C_COMMON_VERSION}.patch |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
83 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
84 RESULT_VARIABLE Failure |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
85 ) |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
86 |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
87 if (Failure) |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
88 message(FATAL_ERROR "Error while patching a file") |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
89 endif() |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
90 endif() |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
91 |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
92 |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
93 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
94 SET(AWS_C_COMPRESSION_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-compression-${AWS_C_COMPRESSION_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
95 SET(AWS_C_COMPRESSION_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-compression-${AWS_C_COMPRESSION_VERSION}.tar.gz") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
96 DownloadPackage(${AWS_C_COMPRESSION_MD5} ${AWS_C_COMPRESSION_URL} "${AWS_C_COMPRESSION_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
97 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
98 SET(AWS_C_EVENT_STREAM_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-event-stream-${AWS_C_EVENT_STREAM_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
99 SET(AWS_C_EVENT_STREAM_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-event-stream-${AWS_C_EVENT_STREAM_VERSION}.tar.gz") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
100 DownloadPackage(${AWS_C_EVENT_STREAM_MD5} ${AWS_C_EVENT_STREAM_URL} "${AWS_C_EVENT_STREAM_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
101 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
102 SET(AWS_C_HTTP_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-http-${AWS_C_HTTP_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
103 SET(AWS_C_HTTP_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-http-${AWS_C_HTTP_VERSION}.tar.gz") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
104 DownloadPackage(${AWS_C_HTTP_MD5} ${AWS_C_HTTP_URL} "${AWS_C_HTTP_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
105 |
160
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
106 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
107 SET(AWS_C_IO_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-io-${AWS_C_IO_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
108 SET(AWS_C_IO_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-io-${AWS_C_IO_VERSION}.tar.gz") |
160
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
109 |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
110 if (IS_DIRECTORY "${AWS_C_IO_SOURCES_DIR}") |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
111 set(FirstRun OFF) |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
112 else() |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
113 set(FirstRun ON) |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
114 endif() |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
115 |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
116 DownloadPackage(${AWS_C_IO_MD5} ${AWS_C_IO_URL} "${AWS_C_IO_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
117 |
160
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
118 if (FirstRun) |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
119 # This is a patch for MinGW |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
120 execute_process( |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
121 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
122 ${CMAKE_CURRENT_LIST_DIR}/aws-c-io-${AWS_C_IO_VERSION}.patch |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
123 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
124 RESULT_VARIABLE Failure |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
125 ) |
161
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
126 |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
127 if (Failure) |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
128 message(FATAL_ERROR "Error while patching a file") |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
129 endif() |
160
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
130 endif() |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
131 |
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
132 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
133 SET(AWS_C_MQTT_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-mqtt-${AWS_C_MQTT_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
134 SET(AWS_C_MQTT_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-mqtt-${AWS_C_MQTT_VERSION}.tar.gz") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
135 DownloadPackage(${AWS_C_MQTT_MD5} ${AWS_C_MQTT_URL} "${AWS_C_MQTT_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
136 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
137 SET(AWS_C_S3_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-s3-${AWS_C_S3_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
138 SET(AWS_C_S3_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-s3-${AWS_C_S3_VERSION}.tar.gz") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
139 DownloadPackage(${AWS_C_S3_MD5} ${AWS_C_S3_URL} "${AWS_C_S3_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
140 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
141 SET(AWS_C_SDKUTILS_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-sdkutils-${AWS_C_SDKUTILS_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
142 SET(AWS_C_SDKUTILS_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-sdkutils-${AWS_C_SDKUTILS_VERSION}.tar.gz") |
107 | 143 DownloadPackage(${AWS_C_SDKUTILS_MD5} ${AWS_C_SDKUTILS_URL} "${AWS_C_SDKUTILS_SOURCES_DIR}") |
144 | |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
145 |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
146 SET(AWS_SDK_CPP_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-sdk-cpp-${AWS_SDK_CPP_VERSION}) |
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
147 SET(AWS_SDK_CPP_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-sdk-cpp-${AWS_SDK_CPP_VERSION}.tar.gz") |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
148 |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
149 if (IS_DIRECTORY "${AWS_SDK_CPP_SOURCES_DIR}") |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
150 set(FirstRun OFF) |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
151 else() |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
152 set(FirstRun ON) |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
153 endif() |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
154 |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
155 DownloadPackage(${AWS_SDK_CPP_MD5} ${AWS_SDK_CPP_URL} "${AWS_SDK_CPP_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
156 |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
157 if (FirstRun) |
160
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
158 # This is a patch for Microsoft Visual Studio 2015 and MinGW |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
159 execute_process( |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
160 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i |
154
e8ac39175eaf
added DownloadStaticPackages.sh for AWS
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
150
diff
changeset
|
161 ${CMAKE_CURRENT_LIST_DIR}/aws-sdk-cpp-${AWS_SDK_CPP_VERSION}.patch |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
162 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
163 RESULT_VARIABLE Failure |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
164 ) |
161
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
165 |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
166 if (Failure) |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
167 message(FATAL_ERROR "Error while patching a file") |
f7654d481226
created Aws/mingw-compile.sh
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
160
diff
changeset
|
168 endif() |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
169 endif() |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
170 |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
171 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
172 configure_file( |
107 | 173 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/include/aws/core/SDKConfig.h.in |
174 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/include/aws/core/SDKConfig.h | |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
175 ) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
176 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
177 configure_file( |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
178 ${AWS_C_COMMON_SOURCES_DIR}/include/aws/common/config.h.in |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
179 ${AWS_C_COMMON_SOURCES_DIR}/include/aws/common/config.h |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
180 ) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
181 |
107 | 182 configure_file( |
183 ${AWS_CRT_CPP_SOURCES_DIR}/include/aws/crt/Config.h.in | |
184 ${AWS_CRT_CPP_SOURCES_DIR}/include/aws/crt/Config.h | |
185 ) | |
186 | |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
187 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
188 include_directories( |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
189 ${AWS_C_COMMON_SOURCES_DIR}/include/ |
156
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
190 ${AWS_C_COMMON_SOURCES_DIR}/source/external/libcbor |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
191 ${AWS_C_AUTH_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
192 ${AWS_C_CAL_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
193 ${AWS_C_COMPRESSION_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
194 ${AWS_C_IO_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
195 ${AWS_C_HTTP_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
196 ${AWS_C_MQTT_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
197 ${AWS_C_S3_SOURCES_DIR}/include/ |
107 | 198 ${AWS_C_SDKUTILS_SOURCES_DIR}/include/ |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
199 ${AWS_C_EVENT_STREAM_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
200 ${AWS_CHECKSUMS_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
201 ${AWS_CRT_CPP_SOURCES_DIR}/include/ |
107 | 202 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/include/ |
203 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-transfer/include/ | |
204 ${AWS_SDK_CPP_SOURCES_DIR}/generated/src/aws-cpp-sdk-s3/include/ | |
205 # ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-s3/include/ | |
206 # ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-connect/include/ | |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
207 ) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
208 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
209 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
210 list(APPEND AWS_SOURCES_SUBDIRS |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
211 ${AWS_C_COMMON_SOURCES_DIR}/source/ |
107 | 212 ${AWS_C_COMMON_SOURCES_DIR}/source/external/ |
156
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
213 ${AWS_C_COMMON_SOURCES_DIR}/source/external/libcbor/ |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
214 ${AWS_C_COMMON_SOURCES_DIR}/source/external/libcbor/cbor/ |
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
215 ${AWS_C_COMMON_SOURCES_DIR}/source/external/libcbor/cbor/internal/ |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
216 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
217 ## C libraries |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
218 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
219 ${AWS_CHECKSUMS_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
220 ${AWS_C_AUTH_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
221 ${AWS_C_CAL_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
222 ${AWS_C_COMPRESSION_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
223 ${AWS_C_EVENT_STREAM_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
224 ${AWS_C_HTTP_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
225 ${AWS_C_IO_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
226 ${AWS_C_MQTT_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
227 ${AWS_C_S3_SOURCES_DIR}/source/ |
107 | 228 ${AWS_C_SDKUTILS_SOURCES_DIR}/source/ |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
229 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
230 ## C++ libraries |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
231 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
232 ${AWS_CRT_CPP_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
233 ${AWS_CRT_CPP_SOURCES_DIR}/source/auth/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
234 ${AWS_CRT_CPP_SOURCES_DIR}/source/crypto/ |
107 | 235 ${AWS_CRT_CPP_SOURCES_DIR}/source/endpoints/ |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
236 ${AWS_CRT_CPP_SOURCES_DIR}/source/http/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
237 ${AWS_CRT_CPP_SOURCES_DIR}/source/io/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
238 ${AWS_CRT_CPP_SOURCES_DIR}/source/external/ |
107 | 239 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-connect/source/ |
240 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-connect/source/model/ | |
241 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/ | |
242 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/auth/ | |
243 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/auth/signer/ | |
244 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/auth/signer-provider/ | |
245 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/auth/bearer-token-provider/ | |
246 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/client/ | |
247 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/config/ | |
248 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/config/defaults/ | |
249 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/endpoint/ | |
250 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/endpoint/internal/ | |
251 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/external/cjson/ | |
252 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/external/tinyxml2/ | |
253 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/http/ | |
254 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/http/curl/ | |
255 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/http/standard/ | |
256 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/internal/ | |
257 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/monitoring/ | |
258 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/net/ | |
259 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/smithy/tracing/ | |
260 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/ | |
261 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/base64/ | |
262 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/component-registry/ | |
263 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/crypto/ | |
264 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/crypto/factory/ | |
265 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/crypto/openssl/ | |
266 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/event/ | |
267 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/json/ | |
268 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/logging/ | |
269 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/memory/ | |
270 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/memory/stl/ | |
271 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/stream/ | |
272 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/threading/ | |
273 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/xml/ | |
274 ${AWS_SDK_CPP_SOURCES_DIR}/generated/src/aws-cpp-sdk-s3/source/ | |
275 ${AWS_SDK_CPP_SOURCES_DIR}/generated/src/aws-cpp-sdk-s3/source/model/ | |
276 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-transfer/source/transfer/ | |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
277 ) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
278 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
279 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
280 add_definitions( |
57
ba1be668e475
fix initialization of the aws static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
56
diff
changeset
|
281 -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
282 -DBYO_CRYPTO # To have "aws_tls_server_ctx_new()" defined |
57
ba1be668e475
fix initialization of the aws static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
56
diff
changeset
|
283 -DENABLE_OPENSSL_ENCRYPTION=1 |
ba1be668e475
fix initialization of the aws static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
56
diff
changeset
|
284 -DENABLE_CURL_CLIENT=1 |
156
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
285 -DINTEL_NO_ITTNOTIFY_API=1 |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
286 ) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
287 |
159
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
288 if (CMAKE_SYSTEM_NAME STREQUAL "Windows") |
142 | 289 list(APPEND AWS_SOURCES_SUBDIRS |
290 ${AWS_C_COMMON_SOURCES_DIR}/source/windows/ | |
291 ${AWS_C_IO_SOURCES_DIR}/source/windows/ | |
149 | 292 ${AWS_C_IO_SOURCES_DIR}/source/windows/iocp/ |
142 | 293 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/platform/windows/ |
294 ) | |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
295 |
149 | 296 add_definitions( |
297 -DAWS_USE_IO_COMPLETION_PORTS=1 | |
158
4a8bedae63b1
trying to force windows version above 7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
157
diff
changeset
|
298 # -DCJSON_AS4CPP_HIDE_SYMBOLS=1 # Disable "dllexport" in cJSON => doesn't seem to work |
4a8bedae63b1
trying to force windows version above 7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
157
diff
changeset
|
299 -DCJSON_HIDE_SYMBOLS=1 |
149 | 300 ) |
301 | |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
302 set(AWSSDK_LINK_LIBRARIES |
149 | 303 # secur32 |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
304 ncrypt |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
305 shlwapi |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
306 userenv |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
307 version |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
308 ) |
158
4a8bedae63b1
trying to force windows version above 7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
157
diff
changeset
|
309 |
4a8bedae63b1
trying to force windows version above 7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
157
diff
changeset
|
310 # Target Windows 7, as "PPROCESSOR_NUMBER" is needed by AWS |
4a8bedae63b1
trying to force windows version above 7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
157
diff
changeset
|
311 remove_definitions(-DWINVER=0x0501 -D_WIN32_WINNT=0x0501) |
4a8bedae63b1
trying to force windows version above 7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
157
diff
changeset
|
312 add_definitions(-DWINVER=0x0601 -D_WIN32_WINNT=0x0601) |
4a8bedae63b1
trying to force windows version above 7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
157
diff
changeset
|
313 |
142 | 314 else() |
315 list(APPEND AWS_SOURCES_SUBDIRS | |
316 #${AWS_C_CAL_SOURCES_DIR}/source/unix/ | |
317 #${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/net/linux-shared/ | |
156
cb9b4d8c75a2
upgraded aws c libraries
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
155
diff
changeset
|
318 ${AWS_C_COMMON_SOURCES_DIR}/source/linux/ |
142 | 319 ${AWS_C_COMMON_SOURCES_DIR}/source/posix/ |
320 ${AWS_C_IO_SOURCES_DIR}/source/linux/ | |
321 ${AWS_C_IO_SOURCES_DIR}/source/posix/ | |
322 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/platform/linux-shared/ | |
323 ) | |
324 endif() | |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
325 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
326 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
327 foreach(d ${AWS_SOURCES_SUBDIRS}) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
328 aux_source_directory(${d} AWS_SOURCES) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
329 endforeach() |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
330 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
331 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
332 list(APPEND AWS_SOURCES |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
333 ${AWS_C_COMMON_SOURCES_DIR}/source/arch/generic/cpuid.c |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
334 ${AWS_CHECKSUMS_SOURCES_DIR}/source/generic/crc32c_null.c |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
335 ) |
148 | 336 |
337 | |
159
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
338 if (CMAKE_SYSTEM_NAME STREQUAL "Windows") |
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
339 # WARNING: "//" *are* important below (don't replace them with "/") |
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
340 if (MINGW) |
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
341 list(REMOVE_ITEM AWS_SOURCES |
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
342 ${AWS_C_COMMON_SOURCES_DIR}/source/windows//system_info.c |
160
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
343 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/platform/windows//Environment.cpp |
159
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
344 ) |
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
345 list(APPEND AWS_SOURCES |
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
346 ${AWS_C_COMMON_SOURCES_DIR}/source/posix/system_info.c |
160
d3e7c86c3a4e
added patch to build using mingw
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
159
diff
changeset
|
347 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/platform/linux-shared/Environment.cpp |
159
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
348 ) |
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
349 endif() |
99c14487f96b
fix mingw compilation
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
158
diff
changeset
|
350 |
157 | 351 list(APPEND AWS_SOURCES |
352 ${AWS_C_COMMON_SOURCES_DIR}/source/platform_fallback_stubs/system_info.c | |
353 ) | |
354 | |
148 | 355 list(REMOVE_ITEM AWS_SOURCES |
356 ${AWS_C_IO_SOURCES_DIR}/source/windows//secure_channel_tls_handler.c | |
357 ) | |
358 endif() |