Mercurial > hg > orthanc-object-storage
annotate Aws/AwsStaticConfiguration.cmake @ 148:c02a830ae308
try
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 20 Jun 2024 18:52:57 +0200 |
parents | d2ebeaa18db2 |
children | 0c93d5b43e58 |
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 |
107 | 20 # version numbers can be obtained from https://github.com/aws/aws-sdk-cpp/blob/main/prefetch_crt_dependency.sh |
21 | |
22 SET(AWS_C_COMMON_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-common-0.9.3) # source = https://github.com/awslabs/aws-c-common/archive/refs/tags/v0.9.3.tar.gz | |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
23 SET(AWS_C_COMMON_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-common-0.9.3.tar.gz") |
107 | 24 SET(AWS_C_COMMON_MD5 "d872ff682d5beca8ada6b19464235ca0") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 DownloadPackage(${AWS_C_COMMON_MD5} ${AWS_C_COMMON_URL} "${AWS_C_COMMON_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 |
107 | 27 SET(AWS_CHECKSUMS_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-checksums-0.1.17) # source = https://github.com/awslabs/aws-checksums/archive/refs/tags/v0.1.17.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
28 SET(AWS_CHECKSUMS_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-checksums-0.1.17.tar.gz") |
107 | 29 SET(AWS_CHECKSUMS_MD5 "c256144404dc74349a8344662111e353") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 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
|
31 |
107 | 32 SET(AWS_C_AUTH_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-auth-0.7.1) # source = https://github.com/awslabs/aws-c-auth/archive/refs/tags/v0.7.1.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
33 SET(AWS_C_AUTH_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-auth-0.7.1.tar.gz") |
107 | 34 SET(AWS_C_AUTH_MD5 "aa690622a5f697d47ca3095ba2ef3cca") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 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
|
36 |
107 | 37 SET(AWS_C_CAL_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-cal-0.6.1) # source = https://github.com/awslabs/aws-c-cal/archive/refs/tags/v0.6.1.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
38 SET(AWS_C_CAL_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-cal-0.6.1.tar.gz") |
107 | 39 SET(AWS_C_CAL_MD5 "6d7c05e2f1c173b923e77b6021cb660d") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 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
|
41 |
107 | 42 SET(AWS_C_COMPRESSION_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-compression-0.2.17) # source = https://github.com/awslabs/aws-c-compression/archive/refs/tags/v0.2.17.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
43 SET(AWS_C_COMPRESSION_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-compression-0.2.17.tar.gz") |
107 | 44 SET(AWS_C_COMPRESSION_MD5 "b8bc8bc9cf3749eb2d3f36098c9ead27") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
45 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
|
46 |
107 | 47 SET(AWS_C_EVENT_STREAM_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-event-stream-0.3.1) # source = https://github.com/awslabs/aws-c-event-stream/archive/refs/tags/v0.3.1.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
48 SET(AWS_C_EVENT_STREAM_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-event-stream-0.3.1.tar.gz") |
107 | 49 SET(AWS_C_EVENT_STREAM_MD5 "e3261d89598a3331eebcd0476b523c73") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
50 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
|
51 |
107 | 52 SET(AWS_C_HTTP_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-http-0.7.11) # source = https://github.com/awslabs/aws-c-http/archive/refs/tags/v0.7.11.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
53 SET(AWS_C_HTTP_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-http-0.7.11.tar.gz") |
107 | 54 SET(AWS_C_HTTP_MD5 "b8ef3268d4d64b7fabe743b03518d2d7") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
55 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
|
56 |
107 | 57 SET(AWS_C_IO_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-io-0.13.31) # source = https://github.com/awslabs/aws-c-io/archive/refs/tags/v0.13.31.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
58 SET(AWS_C_IO_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-io-0.13.31.tar.gz") |
107 | 59 SET(AWS_C_IO_MD5 "9ae415cb81404e1b76d8e8267e585e34") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
60 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
|
61 |
107 | 62 SET(AWS_C_MQTT_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-mqtt-0.9.5) # source = https://github.com/awslabs/aws-c-mqtt/archive/refs/tags/v0.9.5.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
63 SET(AWS_C_MQTT_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-mqtt-0.9.5.tar.gz") |
107 | 64 SET(AWS_C_MQTT_MD5 "76d59d9f14f3999b0f9618e386e71db6") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
65 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
|
66 |
107 | 67 SET(AWS_C_S3_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-s3-0.3.14) # source = https://github.com/awslabs/aws-c-s3/archive/refs/tags/v0.3.14.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
68 SET(AWS_C_S3_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-s3-0.3.14.tar.gz") |
107 | 69 SET(AWS_C_S3_MD5 "564bb0df1184ebe9ce41c23a0c18cf1a") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
70 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
|
71 |
107 | 72 SET(AWS_C_SDKUTILS_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-c-sdkutils-0.1.11) # source = https://github.com/awslabs/aws-c-sdkutils/archive/refs/tags/v0.1.11.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
73 SET(AWS_C_SDKUTILS_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-c-sdkutils-0.1.11.tar.gz") |
107 | 74 SET(AWS_C_SDKUTILS_MD5 "713cac3392aa20d5dda852cf21ac1957") |
75 DownloadPackage(${AWS_C_SDKUTILS_MD5} ${AWS_C_SDKUTILS_URL} "${AWS_C_SDKUTILS_SOURCES_DIR}") | |
76 | |
77 SET(AWS_CRT_CPP_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-crt-cpp-0.24.1) # source = https://github.com/awslabs/aws-crt-cpp/archive/refs/tags/v0.24.1.tar.gz | |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
78 SET(AWS_CRT_CPP_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-crt-cpp-0.24.1.tar.gz") |
107 | 79 SET(AWS_CRT_CPP_MD5 "fa2cda44386bd56f1d4609c6a54a59f9") |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
80 DownloadPackage(${AWS_CRT_CPP_MD5} ${AWS_CRT_CPP_URL} "${AWS_CRT_CPP_SOURCES_DIR}") |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
81 |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
82 |
107 | 83 SET(AWS_SDK_CPP_SOURCES_DIR ${CMAKE_BINARY_DIR}/aws-sdk-cpp-1.11.178) # source = https://github.com/aws/aws-sdk-cpp/archive/refs/tags/1.11.178.tar.gz |
138
a360eb28089d
third party downloads from uclouvain servers
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
107
diff
changeset
|
84 SET(AWS_SDK_CPP_URL "https://orthanc.uclouvain.be/downloads/third-party-downloads/aws/aws-sdk-cpp-1.11.178.tar.gz") |
107 | 85 SET(AWS_SDK_CPP_MD5 "a3f45888e939bb71506e0f7eaa630e48") |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
86 |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
87 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
|
88 set(FirstRun OFF) |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
89 else() |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
90 set(FirstRun ON) |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
91 endif() |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
92 |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
93 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
|
94 |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
95 if (FirstRun) |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
96 # This is a patch for Microsoft Visual Studio 2015 |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
97 execute_process( |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
98 COMMAND ${PATCH_EXECUTABLE} -p0 -N -i |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
99 ${CMAKE_CURRENT_LIST_DIR}/aws-sdk-cpp-1.11.178.patch |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
100 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
101 RESULT_VARIABLE Failure |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
102 ) |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
103 endif() |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
104 |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
105 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
106 configure_file( |
107 | 107 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/include/aws/core/SDKConfig.h.in |
108 ${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
|
109 ) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
110 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
111 configure_file( |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
112 ${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
|
113 ${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
|
114 ) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
115 |
107 | 116 configure_file( |
117 ${AWS_CRT_CPP_SOURCES_DIR}/include/aws/crt/Config.h.in | |
118 ${AWS_CRT_CPP_SOURCES_DIR}/include/aws/crt/Config.h | |
119 ) | |
120 | |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
121 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
122 include_directories( |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
123 ${AWS_C_COMMON_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
124 ${AWS_C_AUTH_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
125 ${AWS_C_CAL_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
126 ${AWS_C_COMPRESSION_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
127 ${AWS_C_IO_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
128 ${AWS_C_HTTP_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
129 ${AWS_C_MQTT_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
130 ${AWS_C_S3_SOURCES_DIR}/include/ |
107 | 131 ${AWS_C_SDKUTILS_SOURCES_DIR}/include/ |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
132 ${AWS_C_EVENT_STREAM_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
133 ${AWS_CHECKSUMS_SOURCES_DIR}/include/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
134 ${AWS_CRT_CPP_SOURCES_DIR}/include/ |
107 | 135 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/include/ |
136 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-transfer/include/ | |
137 ${AWS_SDK_CPP_SOURCES_DIR}/generated/src/aws-cpp-sdk-s3/include/ | |
138 # ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-s3/include/ | |
139 # ${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
|
140 ) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
141 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
142 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
143 list(APPEND AWS_SOURCES_SUBDIRS |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
144 ${AWS_C_COMMON_SOURCES_DIR}/source/ |
107 | 145 ${AWS_C_COMMON_SOURCES_DIR}/source/external/ |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
146 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
147 ## C libraries |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
148 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
149 ${AWS_CHECKSUMS_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
150 ${AWS_C_AUTH_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
151 ${AWS_C_CAL_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
152 ${AWS_C_COMPRESSION_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
153 ${AWS_C_EVENT_STREAM_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
154 ${AWS_C_HTTP_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
155 ${AWS_C_IO_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
156 ${AWS_C_MQTT_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
157 ${AWS_C_S3_SOURCES_DIR}/source/ |
107 | 158 ${AWS_C_SDKUTILS_SOURCES_DIR}/source/ |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
159 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
160 ## C++ libraries |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
161 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
162 ${AWS_CRT_CPP_SOURCES_DIR}/source/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
163 ${AWS_CRT_CPP_SOURCES_DIR}/source/auth/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
164 ${AWS_CRT_CPP_SOURCES_DIR}/source/crypto/ |
107 | 165 ${AWS_CRT_CPP_SOURCES_DIR}/source/endpoints/ |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
166 ${AWS_CRT_CPP_SOURCES_DIR}/source/http/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
167 ${AWS_CRT_CPP_SOURCES_DIR}/source/io/ |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
168 ${AWS_CRT_CPP_SOURCES_DIR}/source/external/ |
107 | 169 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-connect/source/ |
170 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-connect/source/model/ | |
171 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/ | |
172 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/auth/ | |
173 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/auth/signer/ | |
174 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/auth/signer-provider/ | |
175 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/auth/bearer-token-provider/ | |
176 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/client/ | |
177 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/config/ | |
178 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/config/defaults/ | |
179 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/endpoint/ | |
180 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/endpoint/internal/ | |
181 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/external/cjson/ | |
182 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/external/tinyxml2/ | |
183 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/http/ | |
184 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/http/curl/ | |
185 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/http/standard/ | |
186 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/internal/ | |
187 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/monitoring/ | |
188 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/net/ | |
189 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/smithy/tracing/ | |
190 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/ | |
191 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/base64/ | |
192 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/component-registry/ | |
193 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/crypto/ | |
194 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/crypto/factory/ | |
195 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/crypto/openssl/ | |
196 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/event/ | |
197 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/json/ | |
198 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/logging/ | |
199 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/memory/ | |
200 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/memory/stl/ | |
201 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/stream/ | |
202 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/threading/ | |
203 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/xml/ | |
204 ${AWS_SDK_CPP_SOURCES_DIR}/generated/src/aws-cpp-sdk-s3/source/ | |
205 ${AWS_SDK_CPP_SOURCES_DIR}/generated/src/aws-cpp-sdk-s3/source/model/ | |
206 ${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
|
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 add_definitions( |
57
ba1be668e475
fix initialization of the aws static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
56
diff
changeset
|
211 -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
212 -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
|
213 -DENABLE_OPENSSL_ENCRYPTION=1 |
ba1be668e475
fix initialization of the aws static library
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
56
diff
changeset
|
214 -DENABLE_CURL_CLIENT=1 |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
215 ) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
216 |
142 | 217 if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
218 list(APPEND AWS_SOURCES_SUBDIRS | |
219 ${AWS_C_COMMON_SOURCES_DIR}/source/windows/ | |
220 ${AWS_C_IO_SOURCES_DIR}/source/windows/ | |
148 | 221 # ${AWS_C_IO_SOURCES_DIR}/source/windows/iocp/ # Don't add this one |
142 | 222 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/platform/windows/ |
223 ) | |
146
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
224 |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
225 set(AWSSDK_LINK_LIBRARIES |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
226 ncrypt |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
227 secur32 |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
228 shlwapi |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
229 userenv |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
230 version |
5decdf0f0ef7
trying to build aws for windows
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
145
diff
changeset
|
231 ) |
142 | 232 else() |
233 list(APPEND AWS_SOURCES_SUBDIRS | |
234 #${AWS_C_CAL_SOURCES_DIR}/source/unix/ | |
235 #${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/net/linux-shared/ | |
236 ${AWS_C_COMMON_SOURCES_DIR}/source/posix/ | |
237 ${AWS_C_IO_SOURCES_DIR}/source/linux/ | |
238 ${AWS_C_IO_SOURCES_DIR}/source/posix/ | |
239 ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/platform/linux-shared/ | |
240 ) | |
241 endif() | |
56
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
242 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
243 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
244 foreach(d ${AWS_SOURCES_SUBDIRS}) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
245 aux_source_directory(${d} AWS_SOURCES) |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
246 endforeach() |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
247 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
248 |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
249 list(APPEND AWS_SOURCES |
b922ae86bbe1
full static linking against AWS SDK
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
250 ${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
|
251 ${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
|
252 ) |
148 | 253 |
254 | |
255 if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | |
256 list(REMOVE_ITEM AWS_SOURCES | |
257 # WARNING: "//" *is* important (don't replace it with "/") | |
258 ${AWS_C_IO_SOURCES_DIR}/source/windows//secure_channel_tls_handler.c | |
259 ) | |
260 endif() |