diff --git a/cmake/Modules/FindAWSSDK_EP.cmake b/cmake/Modules/FindAWSSDK_EP.cmake index 0682e959c6d..643f93676c4 100644 --- a/cmake/Modules/FindAWSSDK_EP.cmake +++ b/cmake/Modules/FindAWSSDK_EP.cmake @@ -89,10 +89,10 @@ if (NOT AWSSDK_FOUND) message(STATUS "Adding AWSSDK as an external project") set(DEPENDS) - if (NOT WIN32 AND TARGET ep_curl) + if (TARGET ep_curl) list(APPEND DEPENDS ep_curl) endif() - if (NOT WIN32 AND TARGET ep_openssl) + if (TARGET ep_openssl) list(APPEND DEPENDS ep_openssl) endif() if (TARGET ep_zlib) @@ -121,6 +121,16 @@ if (NOT AWSSDK_FOUND) set(CMAKE_GENERATOR_PLATFORM "") endif() + if (WIN32) + find_package(Git REQUIRED) + set(CONDITIONAL_PATCH cd ${CMAKE_SOURCE_DIR} && ${GIT_EXECUTABLE} apply --ignore-whitespace -p1 --unsafe-paths --verbose --directory=${TILEDB_EP_SOURCE_DIR}/ep_awssdk < ${TILEDB_CMAKE_INPUTS_DIR}/patches/ep_awssdk/awsccommon.patch && + ${GIT_EXECUTABLE} apply --ignore-whitespace -p1 --unsafe-paths --verbose --directory=${TILEDB_EP_SOURCE_DIR}/ep_awssdk < ${TILEDB_CMAKE_INPUTS_DIR}/patches/ep_awssdk/awsconfig_cmake_3.22.patch && + ${GIT_EXECUTABLE} apply --ignore-whitespace -p1 --unsafe-paths --verbose --directory=${TILEDB_EP_SOURCE_DIR}/ep_awssdk < ${TILEDB_CMAKE_INPUTS_DIR}/patches/ep_awssdk/disable-werror.patch) + else() + set(CONDITIONAL_PATCH patch -N -p1 < ${TILEDB_CMAKE_INPUTS_DIR}/patches/ep_awssdk/awsccommon.patch && + patch -N -p1 < ${TILEDB_CMAKE_INPUTS_DIR}/patches/ep_awssdk/awsconfig_cmake_3.22.patch && + patch -N -p1 < ${TILEDB_CMAKE_INPUTS_DIR}/patches/ep_awssdk/disable-werror.patch) + endif() if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR NOT WIN32) set(CONDITIONAL_CXX_FLAGS "-DCMAKE_CXX_FLAGS=-Wno-nonnull -Wno-error=deprecated-declarations") endif() @@ -129,13 +139,13 @@ if (NOT AWSSDK_FOUND) PREFIX "externals" # Set download name to avoid collisions with only the version number in the filename DOWNLOAD_NAME ep_awssdk.zip - # We download with git clone because the repository has submodules - GIT_REPOSITORY "https://github.com/aws/aws-sdk-cpp.git" - GIT_TAG "1.11.160" + URL "https://github.com/aws/aws-sdk-cpp/archive/1.8.84.zip" + URL_HASH SHA1=e32a53a01c75ca7fdfe9feed9c5bbcedd98708e3 + PATCH_COMMAND + ${CONDITIONAL_PATCH} CMAKE_ARGS -DCMAKE_BUILD_TYPE=${AWS_CMAKE_BUILD_TYPE} -DENABLE_TESTING=OFF - -DAWS_SDK_WARNINGS_ARE_ERRORS=OFF -DBUILD_ONLY=s3\\$core\\$identity-management\\$sts -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_BINDIR=lib diff --git a/cmake/inputs/patches/ep_awssdk/awsccommon.patch b/cmake/inputs/patches/ep_awssdk/awsccommon.patch new file mode 100644 index 00000000000..0690361b3b6 --- /dev/null +++ b/cmake/inputs/patches/ep_awssdk/awsccommon.patch @@ -0,0 +1,13 @@ +diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt +index b4cf1be2..64f10d43 100644 +--- a/third-party/CMakeLists.txt ++++ b/third-party/CMakeLists.txt +@@ -15,7 +15,7 @@ set(AWS_DEPS_BUILD_DIR "${CMAKE_BINARY_DIR}/build" CACHE PATH "Dependencies buil + set(AWS_DEPS_DOWNLOAD_DIR "${AWS_DEPS_BUILD_DIR}/downloads" CACHE PATH "Dependencies download directory.") + + set(AWS_C_COMMON_URL "https://github.com/awslabs/aws-c-common.git") +-set(AWS_C_COMMON_TAG "v0.4.42") ++set(AWS_C_COMMON_TAG "v0.6.2") + include(BuildAwsCCommon) + + set(AWS_CHECKSUMS_URL "https://github.com/awslabs/aws-checksums.git") diff --git a/cmake/inputs/patches/ep_awssdk/awsconfig_cmake_3.22.patch b/cmake/inputs/patches/ep_awssdk/awsconfig_cmake_3.22.patch new file mode 100644 index 00000000000..9a7d6c4dfe0 --- /dev/null +++ b/cmake/inputs/patches/ep_awssdk/awsconfig_cmake_3.22.patch @@ -0,0 +1,23 @@ +diff --git a/cmake/AWSSDKConfig.cmake b/cmake/AWSSDKConfig.cmake +index 83eac0b3b4..c1bf32066d 100644 +--- a/cmake/AWSSDKConfig.cmake ++++ b/cmake/AWSSDKConfig.cmake +@@ -129,11 +129,13 @@ endif() + get_filename_component(TEMP_PATH "${AWSSDK_CORE_LIB_FILE}" PATH) + get_filename_component(TEMP_NAME "${TEMP_PATH}" NAME) + +-while (NOT TEMP_NAME STREQUAL ${LIB_SEARCH_PREFIX}) +- set(TEMP_PLATFORM_PREFIX "${TEMP_NAME}/${TEMP_PLATFORM_PREFIX}") +- get_filename_component(TEMP_PATH "${TEMP_PATH}" PATH) +- get_filename_component(TEMP_NAME "${TEMP_PATH}" NAME) +-endwhile() ++if(LIB_SEARCH_PREFIX) ++ while (NOT TEMP_NAME STREQUAL "${LIB_SEARCH_PREFIX}") ++ set(TEMP_PLATFORM_PREFIX "${TEMP_NAME}/${TEMP_PLATFORM_PREFIX}") ++ get_filename_component(TEMP_PATH "${TEMP_PATH}" PATH) ++ get_filename_component(TEMP_NAME "${TEMP_PATH}" NAME) ++ endwhile() ++endif() + + set(AWSSDK_PLATFORM_PREFIX "${TEMP_PLATFORM_PREFIX}") + diff --git a/cmake/inputs/patches/ep_awssdk/disable-werror.patch b/cmake/inputs/patches/ep_awssdk/disable-werror.patch new file mode 100644 index 00000000000..9733fe6adaf --- /dev/null +++ b/cmake/inputs/patches/ep_awssdk/disable-werror.patch @@ -0,0 +1,14 @@ +diff --git a/cmake/compiler_settings.cmake b/cmake/compiler_settings.cmake +index c92652cc5..e2fa5e27a 100644 +--- a/cmake/compiler_settings.cmake ++++ b/cmake/compiler_settings.cmake +@@ -53,7 +53,7 @@ macro(set_gcc_flags) + endmacro() + + macro(set_gcc_warnings) +- list(APPEND AWS_COMPILER_WARNINGS "-Wall" "-Werror" "-pedantic" "-Wextra") ++ list(APPEND AWS_COMPILER_WARNINGS "-Wall" "-pedantic" "-Wextra") + if(COMPILER_CLANG) + if(PLATFORM_ANDROID) + # when using clang with libc and API lower than 21 we need to include Android support headers and ignore the gnu-include-next warning. + diff --git a/ports/aws-c-auth/portfile.cmake b/ports/aws-c-auth/portfile.cmake deleted file mode 100644 index 00ae5a4f017..00000000000 --- a/ports/aws-c-auth/portfile.cmake +++ /dev/null @@ -1,32 +0,0 @@ -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO awslabs/aws-c-auth - REF "v${VERSION}" - SHA512 e247b145132818bb1adf03689fdc98984e6ac50e6d81d0d7caf60d53ba3d3a95bbb4e76f48ac4582365f9038d0d8b29e57947190ec5c34f68e816dd7efcc117d - HEAD_REF master -) - -vcpkg_cmake_configure( - SOURCE_PATH "${SOURCE_PATH}" - OPTIONS - "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files - -DBUILD_TESTING=FALSE -) - -vcpkg_cmake_install() - -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") - -file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) - -vcpkg_copy_pdbs() - -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/aws-c-auth/vcpkg.json b/ports/aws-c-auth/vcpkg.json deleted file mode 100644 index 091f5047896..00000000000 --- a/ports/aws-c-auth/vcpkg.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "aws-c-auth", - "version": "0.7.8", - "description": "C99 library implementation of AWS client-side authentication: standard credentials providers and signing.", - "homepage": "https://github.com/awslabs/aws-c-auth", - "license": "Apache-2.0", - "supports": "!(windows & arm) & !uwp", - "dependencies": [ - "aws-c-cal", - "aws-c-http", - "aws-c-sdkutils", - { - "name": "s2n", - "platform": "!uwp & !windows" - }, - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - } - ] -} diff --git a/ports/aws-c-cal/fix-cmake-target-path.patch b/ports/aws-c-cal/fix-cmake-target-path.patch new file mode 100644 index 00000000000..25d6749b873 --- /dev/null +++ b/ports/aws-c-cal/fix-cmake-target-path.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6039819..b74b65c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -158,7 +158,7 @@ else() + endif() + + install(EXPORT "${PROJECT_NAME}-targets" +- DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}/" ++ DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/" + NAMESPACE AWS:: + COMPONENT Development) + +diff --git a/cmake/aws-c-cal-config.cmake b/cmake/aws-c-cal-config.cmake +index 73e7311..e87c43a 100644 +--- a/cmake/aws-c-cal-config.cmake ++++ b/cmake/aws-c-cal-config.cmake +@@ -7,9 +7,5 @@ if (NOT BYO_CRYPTO AND NOT WIN32 AND NOT APPLE) + find_dependency(LibCrypto) + endif() + +-if (BUILD_SHARED_LIBS) +- include(${CMAKE_CURRENT_LIST_DIR}/shared/@PROJECT_NAME@-targets.cmake) +-else() +- include(${CMAKE_CURRENT_LIST_DIR}/static/@PROJECT_NAME@-targets.cmake) +-endif() ++include(${CMAKE_CURRENT_LIST_DIR}/@CMAKE_PROJECT_NAME@-targets.cmake) + diff --git a/ports/aws-c-cal/portfile.cmake b/ports/aws-c-cal/portfile.cmake index 3cef1fbb282..e9c8e4f7e24 100644 --- a/ports/aws-c-cal/portfile.cmake +++ b/ports/aws-c-cal/portfile.cmake @@ -1,10 +1,11 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO awslabs/aws-c-cal - REF "v${VERSION}" - SHA512 deee106b366522e6781974c92b1aa06542b7857b91a8d4cb59eb0e17247ce7fc3ffacb044c032ff7f2a0f9baca807d4c2d9a14934d4576966f48bfc0661e5edb + REF c4c5b175e05f2affe5e3f0203ca6c8bc5cdd8f51 # v0.5.12 + SHA512 25dd1d7f207f1324aed418555dda1c3d4ec64baf76431c9efd88fd3c34b163a2e5a6778192d2c0caf937f3efd31b2f21e6a0d0f7230684d176164da0e8bcc92e HEAD_REF master - PATCHES remove-libcrypto-messages.patch + PATCHES fix-cmake-target-path.patch + remove-libcrypto-messages.patch ) vcpkg_cmake_configure( @@ -16,18 +17,24 @@ vcpkg_cmake_configure( vcpkg_cmake_install() -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") +vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-cal/cmake) + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/bin" + "${CURRENT_PACKAGES_DIR}/debug/bin" + ) +endif() file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) + "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-cal" + "${CURRENT_PACKAGES_DIR}/lib/aws-c-cal" + ) vcpkg_copy_pdbs() -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/aws-c-cal/remove-libcrypto-messages.patch b/ports/aws-c-cal/remove-libcrypto-messages.patch index 5a1d5dc35d0..6115bb1d336 100644 --- a/ports/aws-c-cal/remove-libcrypto-messages.patch +++ b/ports/aws-c-cal/remove-libcrypto-messages.patch @@ -1,14 +1,14 @@ -diff --git a/cmake/modules/Findcrypto.cmake b/cmake/modules/Findcrypto.cmake -index fed83bb..9c1ae28 100644 ---- a/cmake/modules/Findcrypto.cmake -+++ b/cmake/modules/Findcrypto.cmake -@@ -105,9 +105,6 @@ else() - set(CRYPTO_FOUND true) - set(crypto_FOUND true) +diff --git a/cmake/modules/FindLibCrypto.cmake b/cmake/modules/FindLibCrypto.cmake +index 564ba97..f748212 100644 +--- a/cmake/modules/FindLibCrypto.cmake ++++ b/cmake/modules/FindLibCrypto.cmake +@@ -89,9 +89,6 @@ else() + set(LIBCRYPTO_FOUND true) + set(LibCrypto_FOUND true) -- message(STATUS "LibCrypto Include Dir: ${crypto_INCLUDE_DIR}") -- message(STATUS "LibCrypto Shared Lib: ${crypto_SHARED_LIBRARY}") -- message(STATUS "LibCrypto Static Lib: ${crypto_STATIC_LIBRARY}") - if (NOT TARGET AWS::crypto AND - (EXISTS "${crypto_LIBRARY}") +- message(STATUS "LibCrypto Include Dir: ${LibCrypto_INCLUDE_DIR}") +- message(STATUS "LibCrypto Shared Lib: ${LibCrypto_SHARED_LIBRARY}") +- message(STATUS "LibCrypto Static Lib: ${LibCrypto_STATIC_LIBRARY}") + if (NOT TARGET crypto AND + (EXISTS "${LibCrypto_LIBRARY}") ) diff --git a/ports/aws-c-cal/vcpkg.json b/ports/aws-c-cal/vcpkg.json index b1d22ed8ead..8750273d7e0 100644 --- a/ports/aws-c-cal/vcpkg.json +++ b/ports/aws-c-cal/vcpkg.json @@ -1,9 +1,9 @@ { "name": "aws-c-cal", - "version": "0.6.9", + "version": "0.5.12", + "port-version": 2, "description": "C99 wrapper for cryptography primitives.", "homepage": "https://github.com/awslabs/aws-c-cal", - "license": "Apache-2.0", "supports": "!(windows & arm) & !uwp", "dependencies": [ "aws-c-common", diff --git a/ports/aws-c-common/disable-internal-crt-option.patch b/ports/aws-c-common/disable-internal-crt-option.patch index 1a0fabd4f2b..6fec4b214d1 100644 --- a/ports/aws-c-common/disable-internal-crt-option.patch +++ b/ports/aws-c-common/disable-internal-crt-option.patch @@ -1,19 +1,19 @@ diff --git a/cmake/AwsCFlags.cmake b/cmake/AwsCFlags.cmake -index 470f6db..537536b 100644 +index 249b7d5..41a31e2 100644 --- a/cmake/AwsCFlags.cmake +++ b/cmake/AwsCFlags.cmake -@@ -82,15 +82,6 @@ function(aws_set_common_properties target) +@@ -38,15 +38,6 @@ function(aws_set_common_properties target) list(APPEND AWS_C_FLAGS /DAWS_SUPPORT_WIN7=1) endif() -- # Set MSVC runtime libary. -- # Note: there are other ways of doing this if we bump our CMake minimum to 3.14+ -- # See: https://cmake.org/cmake/help/latest/policy/CMP0091.html -- if (AWS_STATIC_MSVC_RUNTIME_LIBRARY OR STATIC_CRT) -- list(APPEND AWS_C_FLAGS "/MT$<$:d>") +- string(TOUPPER "${CMAKE_BUILD_TYPE}" _CMAKE_BUILD_TYPE) +- if(STATIC_CRT) +- string(REPLACE "/MD" "/MT" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}") - else() -- list(APPEND AWS_C_FLAGS "/MD$<$:d>") +- string(REPLACE "/MT" "/MD" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}") - endif() +- string(REPLACE " " ";" _FLAGS "${_FLAGS}") +- list(APPEND AWS_C_FLAGS "${_FLAGS}") - else() list(APPEND AWS_C_FLAGS -Wall -Wstrict-prototypes) diff --git a/ports/aws-c-common/fix-cmake-target-path.patch b/ports/aws-c-common/fix-cmake-target-path.patch new file mode 100644 index 00000000000..9ab97f6798d --- /dev/null +++ b/ports/aws-c-common/fix-cmake-target-path.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9b01f56..3cc541d 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -239,7 +239,7 @@ else() + endif() + + install(EXPORT "${PROJECT_NAME}-targets" +- DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}" ++ DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake" + NAMESPACE AWS:: + COMPONENT Development) + +diff --git a/cmake/aws-c-common-config.cmake b/cmake/aws-c-common-config.cmake +index e495210..b7676c2 100644 +--- a/cmake/aws-c-common-config.cmake ++++ b/cmake/aws-c-common-config.cmake +@@ -4,9 +4,5 @@ if(WIN32 OR UNIX OR APPLE) + find_package(Threads REQUIRED) + endif() + +-if (BUILD_SHARED_LIBS) +- include(${CMAKE_CURRENT_LIST_DIR}/shared/@PROJECT_NAME@-targets.cmake) +-else() +- include(${CMAKE_CURRENT_LIST_DIR}/static/@PROJECT_NAME@-targets.cmake) +-endif() ++include(${CMAKE_CURRENT_LIST_DIR}/@CMAKE_PROJECT_NAME@-targets.cmake) + diff --git a/ports/aws-c-common/portfile.cmake b/ports/aws-c-common/portfile.cmake index e96d1a82844..d8672c140f9 100644 --- a/ports/aws-c-common/portfile.cmake +++ b/ports/aws-c-common/portfile.cmake @@ -1,11 +1,12 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO awslabs/aws-c-common - REF "v${VERSION}" - SHA512 f04bdc01d52b5ad191d320d352a13dd4cb9675127596c2c2229657211bc5fa3cddf05a3b395a0dc0ac5ce2f09cecf54c04b9cfacb08299e24a16a47684560f11 + REF 68f28f8df258390744f3c5b460250f8809161041 # v0.6.20 + SHA512 a8be405e0e1586a06db038a0068df2c9277772ff7b8df2c542d18d2aae4b2bc0fd89de668ab10d84476446834390e4e27383b68d86c7d9f0d0749b57802866f1 HEAD_REF master PATCHES disable-internal-crt-option.patch # Disable internal crt option because vcpkg contains crt processing flow + fix-cmake-target-path.patch # Shared libraries and static libraries are not built at the same time ) vcpkg_cmake_configure( @@ -16,20 +17,18 @@ vcpkg_cmake_configure( vcpkg_cmake_install() -vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake) # central macros -file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") - -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") +vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-common/cmake) +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) + "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-common" + "${CURRENT_PACKAGES_DIR}/lib/aws-c-common" + ) vcpkg_copy_pdbs() -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/aws-c-common/vcpkg.json b/ports/aws-c-common/vcpkg.json index 9d7a14ce9cf..736f8127248 100644 --- a/ports/aws-c-common/vcpkg.json +++ b/ports/aws-c-common/vcpkg.json @@ -1,9 +1,8 @@ { "name": "aws-c-common", - "version": "0.9.10", + "version": "0.6.20", "description": "AWS common library for C", "homepage": "https://github.com/awslabs/aws-c-common", - "license": "Apache-2.0", "supports": "!(windows & arm) & !uwp", "dependencies": [ { diff --git a/ports/aws-c-compression/portfile.cmake b/ports/aws-c-compression/portfile.cmake deleted file mode 100644 index 3104c34f4b1..00000000000 --- a/ports/aws-c-compression/portfile.cmake +++ /dev/null @@ -1,32 +0,0 @@ -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO awslabs/aws-c-compression - REF "v${VERSION}" - SHA512 7813ae3d19336a187dd218d22748a09b397aea68f344e44ce0472490babdd7c7a4bb94d586a38d7f0c7d3b6f29502ec9ccf080b020e15fd24891ec1b3cdb4663 - HEAD_REF master -) - -vcpkg_cmake_configure( - SOURCE_PATH "${SOURCE_PATH}" - OPTIONS - "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files - -DBUILD_TESTING=FALSE -) - -vcpkg_cmake_install() - -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") - -file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) - -vcpkg_copy_pdbs() - -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/aws-c-compression/vcpkg.json b/ports/aws-c-compression/vcpkg.json deleted file mode 100644 index 351ad87cea1..00000000000 --- a/ports/aws-c-compression/vcpkg.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "aws-c-compression", - "version": "0.2.17", - "description": "C99 implementation of huffman encoding/decoding", - "homepage": "https://github.com/awslabs/aws-c-compression", - "license": "Apache-2.0", - "supports": "!(windows & arm) & !uwp", - "dependencies": [ - "aws-c-common", - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - } - ] -} diff --git a/ports/aws-c-event-stream/fix-cmake-target-path.patch b/ports/aws-c-event-stream/fix-cmake-target-path.patch new file mode 100644 index 00000000000..37d28ca9bc5 --- /dev/null +++ b/ports/aws-c-event-stream/fix-cmake-target-path.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index daf434c..32d7851 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -91,7 +91,7 @@ else() + endif() + + install(EXPORT "${PROJECT_NAME}-targets" +- DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}/" ++ DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/" + NAMESPACE AWS:: + COMPONENT Development) + +diff --git a/cmake/aws-c-event-stream-config.cmake b/cmake/aws-c-event-stream-config.cmake +index 76adb84..7884368 100644 +--- a/cmake/aws-c-event-stream-config.cmake ++++ b/cmake/aws-c-event-stream-config.cmake +@@ -2,9 +2,5 @@ include(CMakeFindDependencyMacro) + find_dependency(aws-c-io) + find_dependency(aws-checksums) + +-if (BUILD_SHARED_LIBS) +- include(${CMAKE_CURRENT_LIST_DIR}/shared/@PROJECT_NAME@-targets.cmake) +-else() +- include(${CMAKE_CURRENT_LIST_DIR}/static/@PROJECT_NAME@-targets.cmake) +-endif() ++include(${CMAKE_CURRENT_LIST_DIR}/@CMAKE_PROJECT_NAME@-targets.cmake) + diff --git a/ports/aws-c-event-stream/portfile.cmake b/ports/aws-c-event-stream/portfile.cmake index e725a88532b..be821d66bd2 100644 --- a/ports/aws-c-event-stream/portfile.cmake +++ b/ports/aws-c-event-stream/portfile.cmake @@ -1,9 +1,10 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO awslabs/aws-c-event-stream - REF "v${VERSION}" - SHA512 295ee4b1f647f5b15790e000cd5f0102e64ef03912c1c7378739f52229b82090384c66367c4caf8fa7f34f3275b3da71bc031cf6000053ad31d53ce075721da2 + REF e87537be561d753ec82e783bc0929b1979c585f8 # v0.2.7 + SHA512 651b05ba6d87ad8f65f6cf7e8940b7ea500722848f3e65c2de0bf84d2e6321d0aa1631d4f64a78cf5ed5ed5adac6805a4e91e5c31b3ae86e8c37afb38da4c786 HEAD_REF master + PATCHES fix-cmake-target-path.patch ) vcpkg_cmake_configure( @@ -15,18 +16,17 @@ vcpkg_cmake_configure( vcpkg_cmake_install() -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") +vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-event-stream/cmake) file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-event-stream" + "${CURRENT_PACKAGES_DIR}/lib/aws-c-event-stream" + ) vcpkg_copy_pdbs() -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/aws-c-event-stream/vcpkg.json b/ports/aws-c-event-stream/vcpkg.json index 1c3135a5ed5..ebabcab6a4d 100644 --- a/ports/aws-c-event-stream/vcpkg.json +++ b/ports/aws-c-event-stream/vcpkg.json @@ -1,11 +1,12 @@ { "name": "aws-c-event-stream", - "version": "0.3.2", + "version": "0.2.7", + "port-version": 2, "description": "C99 implementation of the vnd.amazon.event-stream content-type.", "homepage": "https://github.com/awslabs/aws-c-event-stream", - "license": "Apache-2.0", "supports": "!(windows & arm) & !uwp", "dependencies": [ + "aws-c-cal", "aws-c-common", "aws-c-io", "aws-checksums", diff --git a/ports/aws-c-http/portfile.cmake b/ports/aws-c-http/portfile.cmake deleted file mode 100644 index a0cf2430398..00000000000 --- a/ports/aws-c-http/portfile.cmake +++ /dev/null @@ -1,32 +0,0 @@ -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO awslabs/aws-c-http - REF "v${VERSION}" - SHA512 205cf1cc4b766fd42cfca6ab84974e0797f2a52f8cdf64fed0c4327a2b70c251e5c9561b1cf714cbe4b7ef87092a094830071e6621bd0e0e1684b2e66ea718e2 - HEAD_REF master -) - -vcpkg_cmake_configure( - SOURCE_PATH "${SOURCE_PATH}" - OPTIONS - "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files - -DBUILD_TESTING=FALSE -) - -vcpkg_cmake_install() - -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") - -file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) - -vcpkg_copy_pdbs() - -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/aws-c-http/vcpkg.json b/ports/aws-c-http/vcpkg.json deleted file mode 100644 index dcbb887aa9e..00000000000 --- a/ports/aws-c-http/vcpkg.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "aws-c-http", - "version": "0.7.14", - "description": "C99 implementation of the HTTP/1.1 and HTTP/2 specifications", - "homepage": "https://github.com/awslabs/aws-c-http", - "license": "Apache-2.0", - "supports": "!(windows & arm) & !uwp", - "dependencies": [ - "aws-c-cal", - "aws-c-common", - "aws-c-compression", - "aws-c-io", - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - } - ] -} diff --git a/ports/aws-c-io/fix-cmake-target-path.patch b/ports/aws-c-io/fix-cmake-target-path.patch new file mode 100644 index 00000000000..ca5d575e443 --- /dev/null +++ b/ports/aws-c-io/fix-cmake-target-path.patch @@ -0,0 +1,27 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a8a9099..a657782 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -215,7 +215,7 @@ else() + endif() + + install(EXPORT "${PROJECT_NAME}-targets" +- DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}" ++ DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/" + NAMESPACE AWS:: + COMPONENT Development) + +diff --git a/cmake/aws-c-io-config.cmake b/cmake/aws-c-io-config.cmake +index d4bc525..72a78ec 100644 +--- a/cmake/aws-c-io-config.cmake ++++ b/cmake/aws-c-io-config.cmake +@@ -7,8 +7,4 @@ endif() + find_dependency(aws-c-common) + find_dependency(aws-c-cal) + +-if (BUILD_SHARED_LIBS) +- include(${CMAKE_CURRENT_LIST_DIR}/shared/@PROJECT_NAME@-targets.cmake) +-else() +- include(${CMAKE_CURRENT_LIST_DIR}/static/@PROJECT_NAME@-targets.cmake) +-endif() ++include(${CMAKE_CURRENT_LIST_DIR}/@CMAKE_PROJECT_NAME@-targets.cmake) diff --git a/ports/aws-c-io/portfile.cmake b/ports/aws-c-io/portfile.cmake index bf331bfbaa2..d72cdaed69a 100644 --- a/ports/aws-c-io/portfile.cmake +++ b/ports/aws-c-io/portfile.cmake @@ -1,9 +1,10 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO awslabs/aws-c-io - REF "v${VERSION}" - SHA512 cb76ddf7d43c440443c6e5fb33a022f540d8ca95572f36b263836fe6bebfd0790370c84fec37b45475645167ab71bb14de320b9988803ac01f6bbb0d7436949a + REF cfe553a770e9c2d1c93b8cdfb870b9f2a46b436e # v0.10.22 + SHA512 7a741f5b1c895ceb11f73b67828fd3623c180cb8a3863f3b63a67ac1437d2c47911d50510777b13ee66fd0a009ab09a8c83fd036a0fca2f25a0835f48f023de7 HEAD_REF master + PATCHES fix-cmake-target-path.patch ) vcpkg_cmake_configure( @@ -15,18 +16,17 @@ vcpkg_cmake_configure( vcpkg_cmake_install() -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") +vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-io/cmake) file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-io" + "${CURRENT_PACKAGES_DIR}/lib/aws-c-io" + ) vcpkg_copy_pdbs() -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/aws-c-io/vcpkg.json b/ports/aws-c-io/vcpkg.json index e6fc427362c..203f3649fd7 100644 --- a/ports/aws-c-io/vcpkg.json +++ b/ports/aws-c-io/vcpkg.json @@ -1,9 +1,8 @@ { "name": "aws-c-io", - "version": "0.13.36", + "version": "0.10.22", "description": "Handles all IO and TLS work for application protocols.", "homepage": "https://github.com/awslabs/aws-c-io", - "license": "Apache-2.0", "supports": "!(windows & arm) & !uwp", "dependencies": [ "aws-c-cal", diff --git a/ports/aws-c-mqtt/portfile.cmake b/ports/aws-c-mqtt/portfile.cmake deleted file mode 100644 index fd41c8328a8..00000000000 --- a/ports/aws-c-mqtt/portfile.cmake +++ /dev/null @@ -1,32 +0,0 @@ -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO awslabs/aws-c-mqtt - REF "v${VERSION}" - SHA512 9664596de78a8778349cf32d5dd207ed8e5a28e1d13505f942c8486c3fbf516ec49121af312d85182ebdc66b464d430fcd2d28606b1c2652a8dfb9c173334681 - HEAD_REF master -) - -vcpkg_cmake_configure( - SOURCE_PATH "${SOURCE_PATH}" - OPTIONS - "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files - -DBUILD_TESTING=FALSE -) - -vcpkg_cmake_install() - -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") - -file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) - -vcpkg_copy_pdbs() - -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/aws-c-mqtt/vcpkg.json b/ports/aws-c-mqtt/vcpkg.json deleted file mode 100644 index 1bec811c346..00000000000 --- a/ports/aws-c-mqtt/vcpkg.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "aws-c-mqtt", - "version": "0.9.10", - "description": "C99 implementation of the MQTT 3.1.1 specification.", - "homepage": "https://github.com/awslabs/aws-c-mqtt", - "license": "Apache-2.0", - "supports": "!(windows & arm) & !uwp", - "dependencies": [ - "aws-c-http", - "aws-c-io", - { - "name": "s2n", - "platform": "!uwp & !windows" - }, - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - } - ] -} diff --git a/ports/aws-c-s3/portfile.cmake b/ports/aws-c-s3/portfile.cmake deleted file mode 100644 index 4b65d399949..00000000000 --- a/ports/aws-c-s3/portfile.cmake +++ /dev/null @@ -1,32 +0,0 @@ -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO awslabs/aws-c-s3 - REF "v${VERSION}" - SHA512 62dca71a857f7c55cb824cf1a81f3dbefa7cf7d50e5fadec5f2e67d4c2e33c2902a483145b4e9390aa5adf68ab65588c7c71e91717b74733db2a15e7a1cc5794 - HEAD_REF master -) - -vcpkg_cmake_configure( - SOURCE_PATH "${SOURCE_PATH}" - OPTIONS - "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files - -DBUILD_TESTING=FALSE -) - -vcpkg_cmake_install() - -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") - -file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) - -vcpkg_copy_pdbs() - -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/aws-c-s3/vcpkg.json b/ports/aws-c-s3/vcpkg.json deleted file mode 100644 index 362b597c81b..00000000000 --- a/ports/aws-c-s3/vcpkg.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "aws-c-s3", - "version": "0.4.3", - "description": "C99 library implementation for communicating with the S3 service, designed for maximizing throughput on high bandwidth EC2 instances.", - "homepage": "https://github.com/awslabs/aws-c-s3", - "license": "Apache-2.0", - "supports": "!(windows & arm) & !uwp", - "dependencies": [ - "aws-c-auth", - "aws-c-http", - "aws-c-sdkutils", - "aws-checksums", - { - "name": "s2n", - "platform": "!uwp & !windows" - }, - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - } - ] -} diff --git a/ports/aws-c-sdkutils/portfile.cmake b/ports/aws-c-sdkutils/portfile.cmake deleted file mode 100644 index 53ed5fdc8a0..00000000000 --- a/ports/aws-c-sdkutils/portfile.cmake +++ /dev/null @@ -1,32 +0,0 @@ -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO awslabs/aws-c-sdkutils - REF "v${VERSION}" - SHA512 34d5bc5190fc6890533247d304b791625f59b0f60aca972b03e00f684b37dd3b806b7c371f1f8b048a30cb9960326d1534c53874621c9630215e597ba8700685 - HEAD_REF master -) - -vcpkg_cmake_configure( - SOURCE_PATH "${SOURCE_PATH}" - OPTIONS - "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files - -DBUILD_TESTING=FALSE -) - -vcpkg_cmake_install() - -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") - -file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) - -vcpkg_copy_pdbs() - -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/aws-c-sdkutils/vcpkg.json b/ports/aws-c-sdkutils/vcpkg.json deleted file mode 100644 index bb91dda4e0d..00000000000 --- a/ports/aws-c-sdkutils/vcpkg.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "aws-c-sdkutils", - "version": "0.1.12", - "description": "C99 library implementing AWS SDK specific utilities. Includes utilities for ARN parsing, reading AWS profiles, etc...", - "homepage": "https://github.com/awslabs/aws-c-sdkutils", - "license": "Apache-2.0", - "supports": "!(windows & arm) & !uwp", - "dependencies": [ - "aws-c-common", - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - } - ] -} diff --git a/ports/aws-checksums/fix-cmake-target-path.patch b/ports/aws-checksums/fix-cmake-target-path.patch new file mode 100644 index 00000000000..101a5379f28 --- /dev/null +++ b/ports/aws-checksums/fix-cmake-target-path.patch @@ -0,0 +1,25 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 888742b..efdd817 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -140,7 +140,7 @@ else() + endif() + + install(EXPORT "${PROJECT_NAME}-targets" +- DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}" ++ DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/" + NAMESPACE AWS:: + COMPONENT Development) + +diff --git a/cmake/aws-checksums-config.cmake b/cmake/aws-checksums-config.cmake +index 6de2e44..84d55d1 100644 +--- a/cmake/aws-checksums-config.cmake ++++ b/cmake/aws-checksums-config.cmake +@@ -1,6 +1,2 @@ +-if (BUILD_SHARED_LIBS) +- include(${CMAKE_CURRENT_LIST_DIR}/shared/@PROJECT_NAME@-targets.cmake) +-else() +- include(${CMAKE_CURRENT_LIST_DIR}/static/@PROJECT_NAME@-targets.cmake) +-endif() ++include(${CMAKE_CURRENT_LIST_DIR}/@CMAKE_PROJECT_NAME@-targets.cmake) + diff --git a/ports/aws-checksums/portfile.cmake b/ports/aws-checksums/portfile.cmake index 07234e6ca53..55f05f78471 100644 --- a/ports/aws-checksums/portfile.cmake +++ b/ports/aws-checksums/portfile.cmake @@ -1,9 +1,10 @@ vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO awslabs/aws-checksums - REF "v${VERSION}" - SHA512 b75f5442db9a61f8856756c4a784339fd446effca0cdb02c67e51ce9f14ea76f5ca94d29a69f2a452c63c868598489343ec1d097432a8a0159868731422cfbf4 + REF 99bb0ad4b89d335d638536694352c45e0d2188f5 # v0.1.11 + SHA512 cb9c249496fd41fda1efb9330e823d8b965adca6c8f372a50fe97eda821e277780bf9af8f5977102c44121568993cca55edbb750967b41f323e07e06a93c50a8 HEAD_REF master + PATCHES fix-cmake-target-path.patch ) if (VCPKG_CRT_LINKAGE STREQUAL static) @@ -22,18 +23,17 @@ vcpkg_cmake_configure( vcpkg_cmake_install() -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") +vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-checksums/cmake) file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" + "${CURRENT_PACKAGES_DIR}/debug/include" + "${CURRENT_PACKAGES_DIR}/debug/lib/aws-checksums" + "${CURRENT_PACKAGES_DIR}/lib/aws-checksums" ) vcpkg_copy_pdbs() -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +# Handle copyright +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/aws-checksums/vcpkg.json b/ports/aws-checksums/vcpkg.json index c915c21576c..c31742e6a88 100644 --- a/ports/aws-checksums/vcpkg.json +++ b/ports/aws-checksums/vcpkg.json @@ -1,9 +1,9 @@ { "name": "aws-checksums", - "version": "0.1.17", + "version": "0.1.11", + "port-version": 3, "description": "Cross-Platform HW accelerated CRC32c and CRC32 with fallback to efficient SW implementations.", "homepage": "https://github.com/awslabs/aws-checksums", - "license": "Apache-2.0", "supports": "!(windows & arm)", "dependencies": [ "aws-c-common", diff --git a/ports/aws-crt-cpp/no-werror.patch b/ports/aws-crt-cpp/no-werror.patch deleted file mode 100644 index 27b7c8f8ab6..00000000000 --- a/ports/aws-crt-cpp/no-werror.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt ---- a/CMakeLists.txt (revision f2adef31d778cfe90b8a5bb377425f825ebf92f0) -+++ b/CMakeLists.txt (date 1675009099302) -@@ -337,9 +337,9 @@ - # set extra warning flags - if(AWS_WARNINGS_ARE_ERRORS) - if(MSVC) -- target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX /wd4068) -+ target_compile_options(${PROJECT_NAME} PRIVATE /W4 /wd4068) - else() -- target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic -Werror) -+ target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic) - endif() - endif() - diff --git a/ports/aws-crt-cpp/portfile.cmake b/ports/aws-crt-cpp/portfile.cmake deleted file mode 100644 index 553fc30c902..00000000000 --- a/ports/aws-crt-cpp/portfile.cmake +++ /dev/null @@ -1,38 +0,0 @@ -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO awslabs/aws-crt-cpp - REF "v${VERSION}" - SHA512 4160aae9aaf98556d9fd26a13feb09f7fce2a20e073740d13ab9890fdab158de63918c8fd2f4a2d07e92798e2df47b6696b38e614c9631ebcdddf7ea1c44a126 - PATCHES - no-werror.patch -) - -string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT) - -vcpkg_cmake_configure( - SOURCE_PATH "${SOURCE_PATH}" - DISABLE_PARALLEL_CONFIGURE - OPTIONS - "-DSTATIC_CRT=${STATIC_CRT}" - -DBUILD_DEPS=OFF - "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files - -DBUILD_TESTING=FALSE -) - -vcpkg_cmake_install() - -string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}") -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake") -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/") - -file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/${PORT}" -) - -vcpkg_copy_pdbs() - -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/aws-crt-cpp/vcpkg.json b/ports/aws-crt-cpp/vcpkg.json deleted file mode 100644 index a211574cd57..00000000000 --- a/ports/aws-crt-cpp/vcpkg.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "aws-crt-cpp", - "version": "0.24.8", - "description": "C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.", - "homepage": "https://github.com/awslabs/aws-crt-cpp", - "license": "Apache-2.0", - "supports": "!(windows & arm) & !uwp", - "dependencies": [ - "aws-c-auth", - "aws-c-cal", - "aws-c-common", - "aws-c-compression", - "aws-c-event-stream", - "aws-c-http", - "aws-c-io", - "aws-c-mqtt", - "aws-c-s3", - "aws-checksums", - { - "name": "s2n", - "platform": "!uwp & !windows" - }, - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - } - ] -} diff --git a/ports/aws-sdk-cpp/001-patch-relocatable-rpath.patch b/ports/aws-sdk-cpp/001-patch-relocatable-rpath.patch new file mode 100644 index 00000000000..9c5a5a2c5d0 --- /dev/null +++ b/ports/aws-sdk-cpp/001-patch-relocatable-rpath.patch @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a653e38628..76d6067646 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -142,7 +142,6 @@ else() + endif() + + # Add Linker search paths to RPATH so as to fix the problem where some linkers can't find cross-compiled dependent libraries in customer paths when linking executables. +-set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true) + + # build third-party targets + if (BUILD_DEPS) diff --git a/ports/aws-sdk-cpp/002-aws-c-common.patch b/ports/aws-sdk-cpp/002-aws-c-common.patch new file mode 100644 index 00000000000..0690361b3b6 --- /dev/null +++ b/ports/aws-sdk-cpp/002-aws-c-common.patch @@ -0,0 +1,13 @@ +diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt +index b4cf1be2..64f10d43 100644 +--- a/third-party/CMakeLists.txt ++++ b/third-party/CMakeLists.txt +@@ -15,7 +15,7 @@ set(AWS_DEPS_BUILD_DIR "${CMAKE_BINARY_DIR}/build" CACHE PATH "Dependencies buil + set(AWS_DEPS_DOWNLOAD_DIR "${AWS_DEPS_BUILD_DIR}/downloads" CACHE PATH "Dependencies download directory.") + + set(AWS_C_COMMON_URL "https://github.com/awslabs/aws-c-common.git") +-set(AWS_C_COMMON_TAG "v0.4.42") ++set(AWS_C_COMMON_TAG "v0.6.2") + include(BuildAwsCCommon) + + set(AWS_CHECKSUMS_URL "https://github.com/awslabs/aws-checksums.git") diff --git a/ports/aws-sdk-cpp/fix-aws-root.patch b/ports/aws-sdk-cpp/003-fix-AWSSDKCONFIG.patch similarity index 53% rename from ports/aws-sdk-cpp/fix-aws-root.patch rename to ports/aws-sdk-cpp/003-fix-AWSSDKCONFIG.patch index da4365ad721..421286de2e4 100644 --- a/ports/aws-sdk-cpp/fix-aws-root.patch +++ b/ports/aws-sdk-cpp/003-fix-AWSSDKCONFIG.patch @@ -1,22 +1,33 @@ diff --git a/cmake/AWSSDKConfig.cmake b/cmake/AWSSDKConfig.cmake ---- a/cmake/AWSSDKConfig.cmake (revision 2f90f9fd6c56460bd382243aa215fcddcb5883c8) -+++ b/cmake/AWSSDKConfig.cmake (date 1636913220527) -@@ -54,18 +54,14 @@ - string(REPLACE ";" "${AWS_MODULE_DIR};" SYSTEM_MODULE_PATH "${CMAKE_SYSTEM_PREFIX_PATH}${AWS_MODULE_DIR}") - list(APPEND CMAKE_MODULE_PATH ${AWS_MODULE_PATH} ${SYSTEM_MODULE_PATH}) +index c2f643e..4fb4a2f 100644 +--- a/cmake/AWSSDKConfig.cmake ++++ b/cmake/AWSSDKConfig.cmake +@@ -24,6 +24,12 @@ if(AWSSDK_FOUND) + return() + endif() + ++include(CMakeFindDependencyMacro) ++if (NOT WIN32) ++find_dependency(OpenSSL) ++endif() ++find_dependency(ZLIB) ++ + include(${CMAKE_CURRENT_LIST_DIR}/AWSSDKConfigVersion.cmake) + include(${CMAKE_CURRENT_LIST_DIR}/sdksCommon.cmake) + include(${CMAKE_CURRENT_LIST_DIR}/platformDeps.cmake) +@@ -43,7 +49,6 @@ endif() --# On Windows, dlls are treated as runtime target and installed in bindir + # On Windows, dlls are treated as runtime target and installed in bindir if (WIN32 AND AWSSDK_INSTALL_AS_SHARED_LIBS) - set(AWSSDK_INSTALL_LIBDIR "${AWSSDK_INSTALL_BINDIR}") # If installed CMake scripts are associated with dll library, define USE_IMPORT_EXPORT for customers add_definitions(-DUSE_IMPORT_EXPORT) endif() - - - # Compute the default installation root relative to this file. --# from prefix/lib/cmake/AWSSDK/xx.cmake to prefix +@@ -54,7 +59,6 @@ endif() get_filename_component(AWSSDK_DEFAULT_ROOT_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) --get_filename_component(AWSSDK_DEFAULT_ROOT_DIR "${AWSSDK_DEFAULT_ROOT_DIR}" PATH) get_filename_component(AWSSDK_DEFAULT_ROOT_DIR "${AWSSDK_DEFAULT_ROOT_DIR}" PATH) get_filename_component(AWSSDK_DEFAULT_ROOT_DIR "${AWSSDK_DEFAULT_ROOT_DIR}" PATH) +-get_filename_component(AWSSDK_DEFAULT_ROOT_DIR "${AWSSDK_DEFAULT_ROOT_DIR}" PATH) get_filename_component(AWS_NATIVE_SDK_ROOT "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE) + + set(CPP_STANDARD "11" CACHE STRING "Flag to upgrade the C++ standard used. The default is 11. The minimum is 11.") diff --git a/ports/aws-sdk-cpp/004-fix-check-c-source-runs.patch b/ports/aws-sdk-cpp/004-fix-check-c-source-runs.patch new file mode 100644 index 00000000000..c782d56f407 --- /dev/null +++ b/ports/aws-sdk-cpp/004-fix-check-c-source-runs.patch @@ -0,0 +1,16 @@ +diff --git a/aws-cpp-sdk-core/CMakeLists.txt b/aws-cpp-sdk-core/CMakeLists.txt +index fa9f99326b..3cb60a9171 100644 +--- a/aws-cpp-sdk-core/CMakeLists.txt ++++ b/aws-cpp-sdk-core/CMakeLists.txt +@@ -89,9 +89,10 @@ include(CheckCXXSourceRuns) + + # http client implementations + if(ENABLE_CURL_CLIENT) ++ find_package(ZLIB REQUIRED) + file(GLOB HTTP_CURL_CLIENT_HEADERS "include/aws/core/http/curl/*.h") + file(GLOB HTTP_CURL_CLIENT_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/source/http/curl/*.cpp") +- set(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBRARIES}) ++ set(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBRARIES} ZLIB::ZLIB) + check_c_source_runs(" + #include + int main() { diff --git a/ports/aws-sdk-cpp/005-fix-cjson-sprintf.patch b/ports/aws-sdk-cpp/005-fix-cjson-sprintf.patch new file mode 100644 index 00000000000..0cc6df3d074 --- /dev/null +++ b/ports/aws-sdk-cpp/005-fix-cjson-sprintf.patch @@ -0,0 +1,59 @@ +diff --git a/aws-cpp-sdk-core/source/external/cjson/cJSON.cpp b/aws-cpp-sdk-core/source/external/cjson/cJSON.cpp +index 2525976334..cf18a8391a 100644 +--- a/aws-cpp-sdk-core/source/external/cjson/cJSON.cpp ++++ b/aws-cpp-sdk-core/source/external/cjson/cJSON.cpp +@@ -88,7 +88,7 @@ CJSON_PUBLIC(char *) cJSON_GetStringValue(cJSON *item) { + CJSON_PUBLIC(const char*) cJSON_Version(void) + { + static char version[15]; +- sprintf(version, "%i.%i.%i", CJSON_VERSION_MAJOR, CJSON_VERSION_MINOR, CJSON_VERSION_PATCH); ++ snprintf(version, 15, "%i.%i.%i", CJSON_VERSION_MAJOR, CJSON_VERSION_MINOR, CJSON_VERSION_PATCH); + + return version; + } +@@ -500,23 +500,23 @@ static cJSON_bool print_number(const cJSON * const item, printbuffer * const out + /* For integer which is out of the range of [INT_MIN, INT_MAX], valuestring is an integer literal. */ + if (item->valuestring) + { +- length = sprintf((char*)number_buffer, "%s", item->valuestring); ++ length = snprintf((char*)number_buffer, 26, "%s", item->valuestring); + } + /* This checks for NaN and Infinity */ + else if ((d * 0) != 0) + { +- length = sprintf((char*)number_buffer, "null"); ++ length = snprintf((char*)number_buffer, 26, "null"); + } + else + { + /* Try 15 decimal places of precision to avoid nonsignificant nonzero digits */ +- length = sprintf((char*)number_buffer, "%1.15g", d); ++ length = snprintf((char*)number_buffer, 26, "%1.15g", d); + + /* Check whether the original double can be recovered */ + if ((sscanf((char*)number_buffer, "%lg", &test) != 1) || ((double)test != d)) + { + /* If not, print with 17 decimal places of precision */ +- length = sprintf((char*)number_buffer, "%1.17g", d); ++ length = snprintf((char*)number_buffer, 26, "%1.17g", d); + } + } + +@@ -949,7 +949,7 @@ static cJSON_bool print_string_ptr(const unsigned char * const input, printbuffe + break; + default: + /* escape and print as unicode codepoint */ +- sprintf((char*)output_pointer, "u%04x", *input_pointer); ++ snprintf((char*)output_pointer, 6, "u%04x", *input_pointer); + output_pointer += 4; + break; + } +@@ -2342,7 +2342,7 @@ CJSON_PUBLIC(cJSON *) cJSON_CreateInt64(long long num) + if (num > INT_MAX || num < INT_MIN) + { + char buf[21]; +- sprintf(buf, "%lld", num); ++ snprintf(buf, 21, "%lld", num); + item->valuestring = (char*)cJSON_strdup((const unsigned char*)buf, &global_hooks); + } + diff --git a/ports/aws-sdk-cpp/006-pjd-fix-compiler-warnings.patch b/ports/aws-sdk-cpp/006-pjd-fix-compiler-warnings.patch new file mode 100644 index 00000000000..117485cd864 --- /dev/null +++ b/ports/aws-sdk-cpp/006-pjd-fix-compiler-warnings.patch @@ -0,0 +1,39 @@ +diff --git a/aws-cpp-sdk-core/source/http/curl/CurlHttpClient.cpp b/aws-cpp-sdk-core/source/http/curl/CurlHttpClient.cpp +index 5e6c8fc379..5d46008aef 100644 +--- a/aws-cpp-sdk-core/source/http/curl/CurlHttpClient.cpp ++++ b/aws-cpp-sdk-core/source/http/curl/CurlHttpClient.cpp +@@ -362,7 +362,7 @@ void SetOptCodeForHttpMethod(CURL* requestHandle, const std::shared_ptrGetInternalError()) << ", " +- "ErrorMessage: " << handler->GetEventPayloadAsString()); ++ AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Payload received, but handler is null."); + return; + } + handler->WriteMessageEventPayload(static_cast(payload->buffer), payload->len); +@@ -129,9 +127,7 @@ namespace Aws + assert(handler); + if (!handler) + { +- AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Payload received, but decoder encountered internal errors before." +- "ErrorCode: " << EventStreamErrorsMapper::GetNameForError(handler->GetInternalError()) << ", " +- "ErrorMessage: " << handler->GetEventPayloadAsString()); ++ AWS_LOGSTREAM_ERROR(EVENT_STREAM_DECODER_CLASS_TAG, "Header received, but handler is null."); + return; + } + diff --git a/ports/aws-sdk-cpp/007-lock-curl-http-and-tls-settings.patch b/ports/aws-sdk-cpp/007-lock-curl-http-and-tls-settings.patch new file mode 100644 index 00000000000..a53b3676837 --- /dev/null +++ b/ports/aws-sdk-cpp/007-lock-curl-http-and-tls-settings.patch @@ -0,0 +1,24 @@ +diff --git a/aws-cpp-sdk-core/CMakeLists.txt b/aws-cpp-sdk-core/CMakeLists.txt +index 3cb60a9171..860b184633 100644 +--- a/aws-cpp-sdk-core/CMakeLists.txt ++++ b/aws-cpp-sdk-core/CMakeLists.txt +@@ -93,17 +93,8 @@ if(ENABLE_CURL_CLIENT) + file(GLOB HTTP_CURL_CLIENT_HEADERS "include/aws/core/http/curl/*.h") + file(GLOB HTTP_CURL_CLIENT_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/source/http/curl/*.cpp") + set(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBRARIES} ZLIB::ZLIB) +- check_c_source_runs(" +- #include +- int main() { +- CURL* handle = curl_easy_init(); +- return curl_easy_setopt(handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); }" CURL_HAS_H2) +- check_c_source_runs(" +- #include +- int main() { +- CURL* handle = curl_easy_init(); +- return curl_easy_setopt(handle, CURLOPT_PROXY_SSLCERT, \"client.pem\"); }" CURL_HAS_TLS_PROXY) +- unset(CMAKE_REQUIRED_LIBRARIES) ++ set(CURL_HAS_H2 OFF) ++ set(CURL_HAS_TLS_PROXY ON) + elseif(ENABLE_WINDOWS_CLIENT) + # NOTE: HTTP/2 is not supported when using IXML_HTTP_REQUEST_2 + if(USE_IXML_HTTP_REQUEST_2) diff --git a/ports/aws-sdk-cpp/008-disable-werror.patch b/ports/aws-sdk-cpp/008-disable-werror.patch new file mode 100644 index 00000000000..9733fe6adaf --- /dev/null +++ b/ports/aws-sdk-cpp/008-disable-werror.patch @@ -0,0 +1,14 @@ +diff --git a/cmake/compiler_settings.cmake b/cmake/compiler_settings.cmake +index c92652cc5..e2fa5e27a 100644 +--- a/cmake/compiler_settings.cmake ++++ b/cmake/compiler_settings.cmake +@@ -53,7 +53,7 @@ macro(set_gcc_flags) + endmacro() + + macro(set_gcc_warnings) +- list(APPEND AWS_COMPILER_WARNINGS "-Wall" "-Werror" "-pedantic" "-Wextra") ++ list(APPEND AWS_COMPILER_WARNINGS "-Wall" "-pedantic" "-Wextra") + if(COMPILER_CLANG) + if(PLATFORM_ANDROID) + # when using clang with libc and API lower than 21 we need to include Android support headers and ignore the gnu-include-next warning. + diff --git a/ports/aws-sdk-cpp/CONTROL b/ports/aws-sdk-cpp/CONTROL new file mode 100644 index 00000000000..7ce44016085 --- /dev/null +++ b/ports/aws-sdk-cpp/CONTROL @@ -0,0 +1,539 @@ +Source: aws-sdk-cpp +Version: 1.8.84 +Port-Version: 0 +Homepage: https://github.com/aws/aws-sdk-cpp +Description: AWS SDK for C++ +Build-Depends: openssl (!uwp&!windows), curl (!uwp&!windows), aws-c-event-stream, zlib +Default-Features: dynamodb, s3, kinesis +# Automatically generated by generateFeatures.ps1 + +Feature: access-management +Description: C++ SDK for the AWS access-management service + +Feature: acm +Description: C++ SDK for the AWS acm service + +Feature: acm-pca +Description: C++ SDK for the AWS acm-pca service + +Feature: alexaforbusiness +Description: C++ SDK for the AWS alexaforbusiness service + +Feature: amplify +Description: C++ SDK for the AWS amplify service + +Feature: apigateway +Description: C++ SDK for the AWS apigateway service + +Feature: apigatewaymanagementapi +Description: C++ SDK for the AWS apigatewaymanagementapi service + +Feature: apigatewayv2 +Description: C++ SDK for the AWS apigatewayv2 service + +Feature: application-autoscaling +Description: C++ SDK for the AWS application-autoscaling service + +Feature: appmesh +Description: C++ SDK for the AWS appmesh service + +Feature: appstream +Description: C++ SDK for the AWS appstream service + +Feature: appsync +Description: C++ SDK for the AWS appsync service + +Feature: athena +Description: C++ SDK for the AWS athena service + +Feature: autoscaling +Description: C++ SDK for the AWS autoscaling service + +Feature: autoscaling-plans +Description: C++ SDK for the AWS autoscaling-plans service + +Feature: awsmigrationhub +Description: C++ SDK for the AWS AWSMigrationHub service + +Feature: awstransfer +Description: C++ SDK for the AWS awstransfer service + +Feature: backup +Description: C++ SDK for the AWS backup service + +Feature: batch +Description: C++ SDK for the AWS batch service + +Feature: budgets +Description: C++ SDK for the AWS budgets service + +Feature: ce +Description: C++ SDK for the AWS ce service + +Feature: chime +Description: C++ SDK for the AWS chime service + +Feature: cloud9 +Description: C++ SDK for the AWS cloud9 service + +Feature: clouddirectory +Description: C++ SDK for the AWS clouddirectory service + +Feature: cloudformation +Description: C++ SDK for the AWS cloudformation service + +Feature: cloudfront +Description: C++ SDK for the AWS cloudfront service + +Feature: cloudhsm +Description: C++ SDK for the AWS cloudhsm service + +Feature: cloudhsmv2 +Description: C++ SDK for the AWS cloudhsmv2 service + +Feature: cloudsearch +Description: C++ SDK for the AWS cloudsearch service + +Feature: cloudsearchdomain +Description: C++ SDK for the AWS cloudsearchdomain service + +Feature: cloudtrail +Description: C++ SDK for the AWS cloudtrail service + +Feature: codebuild +Description: C++ SDK for the AWS codebuild service + +Feature: codecommit +Description: C++ SDK for the AWS codecommit service + +Feature: codedeploy +Description: C++ SDK for the AWS codedeploy service + +Feature: codepipeline +Description: C++ SDK for the AWS codepipeline service + +Feature: codestar +Description: C++ SDK for the AWS codestar service + +Feature: cognito-identity +Description: C++ SDK for the AWS cognito-identity service + +Feature: cognito-idp +Description: C++ SDK for the AWS cognito-idp service + +Feature: cognito-sync +Description: C++ SDK for the AWS cognito-sync service + +Feature: comprehend +Description: C++ SDK for the AWS comprehend service + +Feature: comprehendmedical +Description: C++ SDK for the AWS comprehendmedical service + +Feature: config +Description: C++ SDK for the AWS config service + +Feature: connect +Description: C++ SDK for the AWS connect service + +Feature: cur +Description: C++ SDK for the AWS cur service + +Feature: datapipeline +Description: C++ SDK for the AWS datapipeline service + +Feature: datasync +Description: C++ SDK for the AWS datasync service + +Feature: dax +Description: C++ SDK for the AWS dax service + +Feature: devicefarm +Description: C++ SDK for the AWS devicefarm service + +Feature: directconnect +Description: C++ SDK for the AWS directconnect service + +Feature: discovery +Description: C++ SDK for the AWS discovery service + +Feature: dlm +Description: C++ SDK for the AWS dlm service + +Feature: dms +Description: C++ SDK for the AWS dms service + +Feature: docdb +Description: C++ SDK for the AWS docdb service + +Feature: ds +Description: C++ SDK for the AWS ds service + +Feature: dynamodb +Description: C++ SDK for the AWS dynamodb service + +Feature: dynamodbstreams +Description: C++ SDK for the AWS dynamodbstreams service + +Feature: ec2 +Description: C++ SDK for the AWS ec2 service + +Feature: ecr +Description: C++ SDK for the AWS ecr service + +Feature: ecs +Description: C++ SDK for the AWS ecs service + +Feature: eks +Description: C++ SDK for the AWS eks service + +Feature: elasticache +Description: C++ SDK for the AWS elasticache service + +Feature: elasticbeanstalk +Description: C++ SDK for the AWS elasticbeanstalk service + +Feature: elasticfilesystem +Description: C++ SDK for the AWS elasticfilesystem service + +Feature: elasticloadbalancing +Description: C++ SDK for the AWS elasticloadbalancing service + +Feature: elasticloadbalancingv2 +Description: C++ SDK for the AWS elasticloadbalancingv2 service + +Feature: elasticmapreduce +Description: C++ SDK for the AWS elasticmapreduce service + +Feature: elastictranscoder +Description: C++ SDK for the AWS elastictranscoder service + +Feature: email +Description: C++ SDK for the AWS email service + +Feature: es +Description: C++ SDK for the AWS es service + +Feature: events +Description: C++ SDK for the AWS events service + +Feature: firehose +Description: C++ SDK for the AWS firehose service + +Feature: fms +Description: C++ SDK for the AWS fms service + +Feature: fsx +Description: C++ SDK for the AWS fsx service + +Feature: gamelift +Description: C++ SDK for the AWS gamelift service + +Feature: glacier +Description: C++ SDK for the AWS glacier service + +Feature: globalaccelerator +Description: C++ SDK for the AWS globalaccelerator service + +Feature: glue +Description: C++ SDK for the AWS glue service + +Feature: greengrass +Description: C++ SDK for the AWS greengrass service + +Feature: guardduty +Description: C++ SDK for the AWS guardduty service + +Feature: health +Description: C++ SDK for the AWS health service + +Feature: iam +Description: C++ SDK for the AWS iam service + +Feature: identity-management +Description: C++ SDK for the AWS identity-management service + +Feature: importexport +Description: C++ SDK for the AWS importexport service + +Feature: inspector +Description: C++ SDK for the AWS inspector service + +Feature: iot +Description: C++ SDK for the AWS iot service + +Feature: iot-data +Description: C++ SDK for the AWS iot-data service + +Feature: iot-jobs-data +Description: C++ SDK for the AWS iot-jobs-data service + +Feature: iot1click-devices +Description: C++ SDK for the AWS iot1click-devices service + +Feature: iot1click-projects +Description: C++ SDK for the AWS iot1click-projects service + +Feature: iotanalytics +Description: C++ SDK for the AWS iotanalytics service + +Feature: kafka +Description: C++ SDK for the AWS kafka service + +Feature: kinesis +Description: C++ SDK for the AWS kinesis service + +Feature: kinesis-video-archived-media +Description: C++ SDK for the AWS kinesis-video-archived-media service + +Feature: kinesis-video-media +Description: C++ SDK for the AWS kinesis-video-media service + +Feature: kinesisanalytics +Description: C++ SDK for the AWS kinesisanalytics service + +Feature: kinesisanalyticsv2 +Description: C++ SDK for the AWS kinesisanalyticsv2 service + +Feature: kinesisvideo +Description: C++ SDK for the AWS kinesisvideo service + +Feature: kms +Description: C++ SDK for the AWS kms service + +Feature: lambda +Description: C++ SDK for the AWS lambda service + +Feature: lex +Description: C++ SDK for the AWS lex service + +Feature: lex-models +Description: C++ SDK for the AWS lex-models service + +Feature: license-manager +Description: C++ SDK for the AWS license-manager service + +Feature: lightsail +Description: C++ SDK for the AWS lightsail service + +Feature: logs +Description: C++ SDK for the AWS logs service + +Feature: machinelearning +Description: C++ SDK for the AWS machinelearning service + +Feature: macie +Description: C++ SDK for the AWS macie service + +Feature: marketplace-entitlement +Description: C++ SDK for the AWS marketplace-entitlement service + +Feature: marketplacecommerceanalytics +Description: C++ SDK for the AWS marketplacecommerceanalytics service + +Feature: mediaconnect +Description: C++ SDK for the AWS mediaconnect service + +Feature: mediaconvert +Description: C++ SDK for the AWS mediaconvert service + +Feature: medialive +Description: C++ SDK for the AWS medialive service + +Feature: mediapackage +Description: C++ SDK for the AWS mediapackage service + +Feature: mediastore +Description: C++ SDK for the AWS mediastore service + +Feature: mediastore-data +Description: C++ SDK for the AWS mediastore-data service + +Feature: mediatailor +Description: C++ SDK for the AWS mediatailor service + +Feature: meteringmarketplace +Description: C++ SDK for the AWS meteringmarketplace service + +Feature: mobile +Description: C++ SDK for the AWS mobile service + +Feature: mobileanalytics +Description: C++ SDK for the AWS mobileanalytics service + +Feature: monitoring +Description: C++ SDK for the AWS monitoring service + +Feature: mq +Description: C++ SDK for the AWS mq service + +Feature: mturk-requester +Description: C++ SDK for the AWS mturk-requester service + +Feature: neptune +Description: C++ SDK for the AWS neptune service + +Feature: opsworks +Description: C++ SDK for the AWS opsworks service + +Feature: opsworkscm +Description: C++ SDK for the AWS opsworkscm service + +Feature: organizations +Description: C++ SDK for the AWS organizations service + +Feature: pi +Description: C++ SDK for the AWS pi service + +Feature: pinpoint +Description: C++ SDK for the AWS pinpoint service + +Feature: pinpoint-email +Description: C++ SDK for the AWS pinpoint-email service + +Feature: polly +Description: C++ SDK for the AWS polly service + +Feature: pricing +Description: C++ SDK for the AWS pricing service + +Feature: queues +Description: C++ SDK for the AWS queues service + +Feature: quicksight +Description: C++ SDK for the AWS quicksight service + +Feature: ram +Description: C++ SDK for the AWS ram service + +Feature: rds +Description: C++ SDK for the AWS rds service + +Feature: rds-data +Description: C++ SDK for the AWS rds-data service + +Feature: redshift +Description: C++ SDK for the AWS redshift service + +Feature: rekognition +Description: C++ SDK for the AWS rekognition service + +Feature: resource-groups +Description: C++ SDK for the AWS resource-groups service + +Feature: resourcegroupstaggingapi +Description: C++ SDK for the AWS resourcegroupstaggingapi service + +Feature: robomaker +Description: C++ SDK for the AWS robomaker service + +Feature: route53 +Description: C++ SDK for the AWS route53 service + +Feature: route53domains +Description: C++ SDK for the AWS route53domains service + +Feature: route53resolver +Description: C++ SDK for the AWS route53resolver service + +Feature: s3 +Description: C++ SDK for the AWS s3 service + +Feature: s3-encryption +Description: C++ SDK for the AWS s3-encryption service + +Feature: s3control +Description: C++ SDK for the AWS s3control service + +Feature: sagemaker +Description: C++ SDK for the AWS sagemaker service + +Feature: sagemaker-runtime +Description: C++ SDK for the AWS sagemaker-runtime service + +Feature: sdb +Description: C++ SDK for the AWS sdb service + +Feature: secretsmanager +Description: C++ SDK for the AWS secretsmanager service + +Feature: securityhub +Description: C++ SDK for the AWS securityhub service + +Feature: serverlessrepo +Description: C++ SDK for the AWS serverlessrepo service + +Feature: servicecatalog +Description: C++ SDK for the AWS servicecatalog service + +Feature: servicediscovery +Description: C++ SDK for the AWS servicediscovery service + +Feature: shield +Description: C++ SDK for the AWS shield service + +Feature: signer +Description: C++ SDK for the AWS signer service + +Feature: sms +Description: C++ SDK for the AWS sms service + +Feature: sms-voice +Description: C++ SDK for the AWS sms-voice service + +Feature: snowball +Description: C++ SDK for the AWS snowball service + +Feature: sns +Description: C++ SDK for the AWS sns service + +Feature: sqs +Description: C++ SDK for the AWS sqs service + +Feature: ssm +Description: C++ SDK for the AWS ssm service + +Feature: states +Description: C++ SDK for the AWS states service + +Feature: storagegateway +Description: C++ SDK for the AWS storagegateway service + +Feature: sts +Description: C++ SDK for the AWS sts service + +Feature: support +Description: C++ SDK for the AWS support service + +Feature: swf +Description: C++ SDK for the AWS swf service + +Feature: text-to-speech +Description: C++ SDK for the AWS text-to-speech service + +Feature: transcribe +Description: C++ SDK for the AWS transcribe service + +Feature: transfer +Description: C++ SDK for the AWS transfer service + +Feature: translate +Description: C++ SDK for the AWS translate service + +Feature: waf +Description: C++ SDK for the AWS waf service + +Feature: waf-regional +Description: C++ SDK for the AWS waf-regional service + +Feature: workdocs +Description: C++ SDK for the AWS workdocs service + +Feature: workmail +Description: C++ SDK for the AWS workmail service + +Feature: workspaces +Description: C++ SDK for the AWS workspaces service + +Feature: xray +Description: C++ SDK for the AWS xray service diff --git a/ports/aws-sdk-cpp/CONTROL.in b/ports/aws-sdk-cpp/CONTROL.in new file mode 100644 index 00000000000..eae9ddb73c1 --- /dev/null +++ b/ports/aws-sdk-cpp/CONTROL.in @@ -0,0 +1,6 @@ +Source: aws-sdk-cpp +Version: 1.8.84 +Port-Version: 0 +Description: AWS SDK for C++ +Build-Depends: openssl (!uwp&!windows), curl (!uwp&!windows), aws-c-event-stream +Default-Features: dynamodb, s3, kinesis diff --git a/ports/aws-sdk-cpp/compute_build_only.cmake b/ports/aws-sdk-cpp/compute_build_only.cmake new file mode 100644 index 00000000000..ba9bcb26d59 --- /dev/null +++ b/ports/aws-sdk-cpp/compute_build_only.cmake @@ -0,0 +1,532 @@ +# Automatically generated by generateFeatures.ps1 +if("access-management" IN_LIST FEATURES) + list(APPEND BUILD_ONLY access-management) +endif() +if("acm" IN_LIST FEATURES) + list(APPEND BUILD_ONLY acm) +endif() +if("acm-pca" IN_LIST FEATURES) + list(APPEND BUILD_ONLY acm-pca) +endif() +if("alexaforbusiness" IN_LIST FEATURES) + list(APPEND BUILD_ONLY alexaforbusiness) +endif() +if("amplify" IN_LIST FEATURES) + list(APPEND BUILD_ONLY amplify) +endif() +if("apigateway" IN_LIST FEATURES) + list(APPEND BUILD_ONLY apigateway) +endif() +if("apigatewaymanagementapi" IN_LIST FEATURES) + list(APPEND BUILD_ONLY apigatewaymanagementapi) +endif() +if("apigatewayv2" IN_LIST FEATURES) + list(APPEND BUILD_ONLY apigatewayv2) +endif() +if("application-autoscaling" IN_LIST FEATURES) + list(APPEND BUILD_ONLY application-autoscaling) +endif() +if("appmesh" IN_LIST FEATURES) + list(APPEND BUILD_ONLY appmesh) +endif() +if("appstream" IN_LIST FEATURES) + list(APPEND BUILD_ONLY appstream) +endif() +if("appsync" IN_LIST FEATURES) + list(APPEND BUILD_ONLY appsync) +endif() +if("athena" IN_LIST FEATURES) + list(APPEND BUILD_ONLY athena) +endif() +if("autoscaling" IN_LIST FEATURES) + list(APPEND BUILD_ONLY autoscaling) +endif() +if("autoscaling-plans" IN_LIST FEATURES) + list(APPEND BUILD_ONLY autoscaling-plans) +endif() +if("awsmigrationhub" IN_LIST FEATURES) + list(APPEND BUILD_ONLY AWSMigrationHub) +endif() +if("awstransfer" IN_LIST FEATURES) + list(APPEND BUILD_ONLY awstransfer) +endif() +if("backup" IN_LIST FEATURES) + list(APPEND BUILD_ONLY backup) +endif() +if("batch" IN_LIST FEATURES) + list(APPEND BUILD_ONLY batch) +endif() +if("budgets" IN_LIST FEATURES) + list(APPEND BUILD_ONLY budgets) +endif() +if("ce" IN_LIST FEATURES) + list(APPEND BUILD_ONLY ce) +endif() +if("chime" IN_LIST FEATURES) + list(APPEND BUILD_ONLY chime) +endif() +if("cloud9" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cloud9) +endif() +if("clouddirectory" IN_LIST FEATURES) + list(APPEND BUILD_ONLY clouddirectory) +endif() +if("cloudformation" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cloudformation) +endif() +if("cloudfront" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cloudfront) +endif() +if("cloudhsm" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cloudhsm) +endif() +if("cloudhsmv2" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cloudhsmv2) +endif() +if("cloudsearch" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cloudsearch) +endif() +if("cloudsearchdomain" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cloudsearchdomain) +endif() +if("cloudtrail" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cloudtrail) +endif() +if("codebuild" IN_LIST FEATURES) + list(APPEND BUILD_ONLY codebuild) +endif() +if("codecommit" IN_LIST FEATURES) + list(APPEND BUILD_ONLY codecommit) +endif() +if("codedeploy" IN_LIST FEATURES) + list(APPEND BUILD_ONLY codedeploy) +endif() +if("codepipeline" IN_LIST FEATURES) + list(APPEND BUILD_ONLY codepipeline) +endif() +if("codestar" IN_LIST FEATURES) + list(APPEND BUILD_ONLY codestar) +endif() +if("cognito-identity" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cognito-identity) +endif() +if("cognito-idp" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cognito-idp) +endif() +if("cognito-sync" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cognito-sync) +endif() +if("comprehend" IN_LIST FEATURES) + list(APPEND BUILD_ONLY comprehend) +endif() +if("comprehendmedical" IN_LIST FEATURES) + list(APPEND BUILD_ONLY comprehendmedical) +endif() +if("config" IN_LIST FEATURES) + list(APPEND BUILD_ONLY config) +endif() +if("connect" IN_LIST FEATURES) + list(APPEND BUILD_ONLY connect) +endif() +if("cur" IN_LIST FEATURES) + list(APPEND BUILD_ONLY cur) +endif() +if("datapipeline" IN_LIST FEATURES) + list(APPEND BUILD_ONLY datapipeline) +endif() +if("datasync" IN_LIST FEATURES) + list(APPEND BUILD_ONLY datasync) +endif() +if("dax" IN_LIST FEATURES) + list(APPEND BUILD_ONLY dax) +endif() +if("devicefarm" IN_LIST FEATURES) + list(APPEND BUILD_ONLY devicefarm) +endif() +if("directconnect" IN_LIST FEATURES) + list(APPEND BUILD_ONLY directconnect) +endif() +if("discovery" IN_LIST FEATURES) + list(APPEND BUILD_ONLY discovery) +endif() +if("dlm" IN_LIST FEATURES) + list(APPEND BUILD_ONLY dlm) +endif() +if("dms" IN_LIST FEATURES) + list(APPEND BUILD_ONLY dms) +endif() +if("docdb" IN_LIST FEATURES) + list(APPEND BUILD_ONLY docdb) +endif() +if("ds" IN_LIST FEATURES) + list(APPEND BUILD_ONLY ds) +endif() +if("dynamodb" IN_LIST FEATURES) + list(APPEND BUILD_ONLY dynamodb) +endif() +if("dynamodbstreams" IN_LIST FEATURES) + list(APPEND BUILD_ONLY dynamodbstreams) +endif() +if("ec2" IN_LIST FEATURES) + list(APPEND BUILD_ONLY ec2) +endif() +if("ecr" IN_LIST FEATURES) + list(APPEND BUILD_ONLY ecr) +endif() +if("ecs" IN_LIST FEATURES) + list(APPEND BUILD_ONLY ecs) +endif() +if("eks" IN_LIST FEATURES) + list(APPEND BUILD_ONLY eks) +endif() +if("elasticache" IN_LIST FEATURES) + list(APPEND BUILD_ONLY elasticache) +endif() +if("elasticbeanstalk" IN_LIST FEATURES) + list(APPEND BUILD_ONLY elasticbeanstalk) +endif() +if("elasticfilesystem" IN_LIST FEATURES) + list(APPEND BUILD_ONLY elasticfilesystem) +endif() +if("elasticloadbalancing" IN_LIST FEATURES) + list(APPEND BUILD_ONLY elasticloadbalancing) +endif() +if("elasticloadbalancingv2" IN_LIST FEATURES) + list(APPEND BUILD_ONLY elasticloadbalancingv2) +endif() +if("elasticmapreduce" IN_LIST FEATURES) + list(APPEND BUILD_ONLY elasticmapreduce) +endif() +if("elastictranscoder" IN_LIST FEATURES) + list(APPEND BUILD_ONLY elastictranscoder) +endif() +if("email" IN_LIST FEATURES) + list(APPEND BUILD_ONLY email) +endif() +if("es" IN_LIST FEATURES) + list(APPEND BUILD_ONLY es) +endif() +if("events" IN_LIST FEATURES) + list(APPEND BUILD_ONLY events) +endif() +if("firehose" IN_LIST FEATURES) + list(APPEND BUILD_ONLY firehose) +endif() +if("fms" IN_LIST FEATURES) + list(APPEND BUILD_ONLY fms) +endif() +if("fsx" IN_LIST FEATURES) + list(APPEND BUILD_ONLY fsx) +endif() +if("gamelift" IN_LIST FEATURES) + list(APPEND BUILD_ONLY gamelift) +endif() +if("glacier" IN_LIST FEATURES) + list(APPEND BUILD_ONLY glacier) +endif() +if("globalaccelerator" IN_LIST FEATURES) + list(APPEND BUILD_ONLY globalaccelerator) +endif() +if("glue" IN_LIST FEATURES) + list(APPEND BUILD_ONLY glue) +endif() +if("greengrass" IN_LIST FEATURES) + list(APPEND BUILD_ONLY greengrass) +endif() +if("guardduty" IN_LIST FEATURES) + list(APPEND BUILD_ONLY guardduty) +endif() +if("health" IN_LIST FEATURES) + list(APPEND BUILD_ONLY health) +endif() +if("iam" IN_LIST FEATURES) + list(APPEND BUILD_ONLY iam) +endif() +if("identity-management" IN_LIST FEATURES) + list(APPEND BUILD_ONLY identity-management) +endif() +if("importexport" IN_LIST FEATURES) + list(APPEND BUILD_ONLY importexport) +endif() +if("inspector" IN_LIST FEATURES) + list(APPEND BUILD_ONLY inspector) +endif() +if("iot" IN_LIST FEATURES) + list(APPEND BUILD_ONLY iot) +endif() +if("iot-data" IN_LIST FEATURES) + list(APPEND BUILD_ONLY iot-data) +endif() +if("iot-jobs-data" IN_LIST FEATURES) + list(APPEND BUILD_ONLY iot-jobs-data) +endif() +if("iot1click-devices" IN_LIST FEATURES) + list(APPEND BUILD_ONLY iot1click-devices) +endif() +if("iot1click-projects" IN_LIST FEATURES) + list(APPEND BUILD_ONLY iot1click-projects) +endif() +if("iotanalytics" IN_LIST FEATURES) + list(APPEND BUILD_ONLY iotanalytics) +endif() +if("kafka" IN_LIST FEATURES) + list(APPEND BUILD_ONLY kafka) +endif() +if("kinesis" IN_LIST FEATURES) + list(APPEND BUILD_ONLY kinesis) +endif() +if("kinesis-video-archived-media" IN_LIST FEATURES) + list(APPEND BUILD_ONLY kinesis-video-archived-media) +endif() +if("kinesis-video-media" IN_LIST FEATURES) + list(APPEND BUILD_ONLY kinesis-video-media) +endif() +if("kinesisanalytics" IN_LIST FEATURES) + list(APPEND BUILD_ONLY kinesisanalytics) +endif() +if("kinesisanalyticsv2" IN_LIST FEATURES) + list(APPEND BUILD_ONLY kinesisanalyticsv2) +endif() +if("kinesisvideo" IN_LIST FEATURES) + list(APPEND BUILD_ONLY kinesisvideo) +endif() +if("kms" IN_LIST FEATURES) + list(APPEND BUILD_ONLY kms) +endif() +if("lambda" IN_LIST FEATURES) + list(APPEND BUILD_ONLY lambda) +endif() +if("lex" IN_LIST FEATURES) + list(APPEND BUILD_ONLY lex) +endif() +if("lex-models" IN_LIST FEATURES) + list(APPEND BUILD_ONLY lex-models) +endif() +if("license-manager" IN_LIST FEATURES) + list(APPEND BUILD_ONLY license-manager) +endif() +if("lightsail" IN_LIST FEATURES) + list(APPEND BUILD_ONLY lightsail) +endif() +if("logs" IN_LIST FEATURES) + list(APPEND BUILD_ONLY logs) +endif() +if("machinelearning" IN_LIST FEATURES) + list(APPEND BUILD_ONLY machinelearning) +endif() +if("macie" IN_LIST FEATURES) + list(APPEND BUILD_ONLY macie) +endif() +if("marketplace-entitlement" IN_LIST FEATURES) + list(APPEND BUILD_ONLY marketplace-entitlement) +endif() +if("marketplacecommerceanalytics" IN_LIST FEATURES) + list(APPEND BUILD_ONLY marketplacecommerceanalytics) +endif() +if("mediaconnect" IN_LIST FEATURES) + list(APPEND BUILD_ONLY mediaconnect) +endif() +if("mediaconvert" IN_LIST FEATURES) + list(APPEND BUILD_ONLY mediaconvert) +endif() +if("medialive" IN_LIST FEATURES) + list(APPEND BUILD_ONLY medialive) +endif() +if("mediapackage" IN_LIST FEATURES) + list(APPEND BUILD_ONLY mediapackage) +endif() +if("mediastore" IN_LIST FEATURES) + list(APPEND BUILD_ONLY mediastore) +endif() +if("mediastore-data" IN_LIST FEATURES) + list(APPEND BUILD_ONLY mediastore-data) +endif() +if("mediatailor" IN_LIST FEATURES) + list(APPEND BUILD_ONLY mediatailor) +endif() +if("meteringmarketplace" IN_LIST FEATURES) + list(APPEND BUILD_ONLY meteringmarketplace) +endif() +if("mobile" IN_LIST FEATURES) + list(APPEND BUILD_ONLY mobile) +endif() +if("mobileanalytics" IN_LIST FEATURES) + list(APPEND BUILD_ONLY mobileanalytics) +endif() +if("monitoring" IN_LIST FEATURES) + list(APPEND BUILD_ONLY monitoring) +endif() +if("mq" IN_LIST FEATURES) + list(APPEND BUILD_ONLY mq) +endif() +if("mturk-requester" IN_LIST FEATURES) + list(APPEND BUILD_ONLY mturk-requester) +endif() +if("neptune" IN_LIST FEATURES) + list(APPEND BUILD_ONLY neptune) +endif() +if("opsworks" IN_LIST FEATURES) + list(APPEND BUILD_ONLY opsworks) +endif() +if("opsworkscm" IN_LIST FEATURES) + list(APPEND BUILD_ONLY opsworkscm) +endif() +if("organizations" IN_LIST FEATURES) + list(APPEND BUILD_ONLY organizations) +endif() +if("pi" IN_LIST FEATURES) + list(APPEND BUILD_ONLY pi) +endif() +if("pinpoint" IN_LIST FEATURES) + list(APPEND BUILD_ONLY pinpoint) +endif() +if("pinpoint-email" IN_LIST FEATURES) + list(APPEND BUILD_ONLY pinpoint-email) +endif() +if("polly" IN_LIST FEATURES) + list(APPEND BUILD_ONLY polly) +endif() +if("pricing" IN_LIST FEATURES) + list(APPEND BUILD_ONLY pricing) +endif() +if("queues" IN_LIST FEATURES) + list(APPEND BUILD_ONLY queues) +endif() +if("quicksight" IN_LIST FEATURES) + list(APPEND BUILD_ONLY quicksight) +endif() +if("ram" IN_LIST FEATURES) + list(APPEND BUILD_ONLY ram) +endif() +if("rds" IN_LIST FEATURES) + list(APPEND BUILD_ONLY rds) +endif() +if("rds-data" IN_LIST FEATURES) + list(APPEND BUILD_ONLY rds-data) +endif() +if("redshift" IN_LIST FEATURES) + list(APPEND BUILD_ONLY redshift) +endif() +if("rekognition" IN_LIST FEATURES) + list(APPEND BUILD_ONLY rekognition) +endif() +if("resource-groups" IN_LIST FEATURES) + list(APPEND BUILD_ONLY resource-groups) +endif() +if("resourcegroupstaggingapi" IN_LIST FEATURES) + list(APPEND BUILD_ONLY resourcegroupstaggingapi) +endif() +if("robomaker" IN_LIST FEATURES) + list(APPEND BUILD_ONLY robomaker) +endif() +if("route53" IN_LIST FEATURES) + list(APPEND BUILD_ONLY route53) +endif() +if("route53domains" IN_LIST FEATURES) + list(APPEND BUILD_ONLY route53domains) +endif() +if("route53resolver" IN_LIST FEATURES) + list(APPEND BUILD_ONLY route53resolver) +endif() +if("s3" IN_LIST FEATURES) + list(APPEND BUILD_ONLY s3) +endif() +if("s3-encryption" IN_LIST FEATURES) + list(APPEND BUILD_ONLY s3-encryption) +endif() +if("s3control" IN_LIST FEATURES) + list(APPEND BUILD_ONLY s3control) +endif() +if("sagemaker" IN_LIST FEATURES) + list(APPEND BUILD_ONLY sagemaker) +endif() +if("sagemaker-runtime" IN_LIST FEATURES) + list(APPEND BUILD_ONLY sagemaker-runtime) +endif() +if("sdb" IN_LIST FEATURES) + list(APPEND BUILD_ONLY sdb) +endif() +if("secretsmanager" IN_LIST FEATURES) + list(APPEND BUILD_ONLY secretsmanager) +endif() +if("securityhub" IN_LIST FEATURES) + list(APPEND BUILD_ONLY securityhub) +endif() +if("serverlessrepo" IN_LIST FEATURES) + list(APPEND BUILD_ONLY serverlessrepo) +endif() +if("servicecatalog" IN_LIST FEATURES) + list(APPEND BUILD_ONLY servicecatalog) +endif() +if("servicediscovery" IN_LIST FEATURES) + list(APPEND BUILD_ONLY servicediscovery) +endif() +if("shield" IN_LIST FEATURES) + list(APPEND BUILD_ONLY shield) +endif() +if("signer" IN_LIST FEATURES) + list(APPEND BUILD_ONLY signer) +endif() +if("sms" IN_LIST FEATURES) + list(APPEND BUILD_ONLY sms) +endif() +if("sms-voice" IN_LIST FEATURES) + list(APPEND BUILD_ONLY sms-voice) +endif() +if("snowball" IN_LIST FEATURES) + list(APPEND BUILD_ONLY snowball) +endif() +if("sns" IN_LIST FEATURES) + list(APPEND BUILD_ONLY sns) +endif() +if("sqs" IN_LIST FEATURES) + list(APPEND BUILD_ONLY sqs) +endif() +if("ssm" IN_LIST FEATURES) + list(APPEND BUILD_ONLY ssm) +endif() +if("states" IN_LIST FEATURES) + list(APPEND BUILD_ONLY states) +endif() +if("storagegateway" IN_LIST FEATURES) + list(APPEND BUILD_ONLY storagegateway) +endif() +if("sts" IN_LIST FEATURES) + list(APPEND BUILD_ONLY sts) +endif() +if("support" IN_LIST FEATURES) + list(APPEND BUILD_ONLY support) +endif() +if("swf" IN_LIST FEATURES) + list(APPEND BUILD_ONLY swf) +endif() +if("text-to-speech" IN_LIST FEATURES) + list(APPEND BUILD_ONLY text-to-speech) +endif() +if("transcribe" IN_LIST FEATURES) + list(APPEND BUILD_ONLY transcribe) +endif() +if("transfer" IN_LIST FEATURES) + list(APPEND BUILD_ONLY transfer) +endif() +if("translate" IN_LIST FEATURES) + list(APPEND BUILD_ONLY translate) +endif() +if("waf" IN_LIST FEATURES) + list(APPEND BUILD_ONLY waf) +endif() +if("waf-regional" IN_LIST FEATURES) + list(APPEND BUILD_ONLY waf-regional) +endif() +if("workdocs" IN_LIST FEATURES) + list(APPEND BUILD_ONLY workdocs) +endif() +if("workmail" IN_LIST FEATURES) + list(APPEND BUILD_ONLY workmail) +endif() +if("workspaces" IN_LIST FEATURES) + list(APPEND BUILD_ONLY workspaces) +endif() +if("xray" IN_LIST FEATURES) + list(APPEND BUILD_ONLY xray) +endif() diff --git a/ports/aws-sdk-cpp/generateFeatures.ps1 b/ports/aws-sdk-cpp/generateFeatures.ps1 index d0f9a5aba72..8c8b1a34268 100644 --- a/ports/aws-sdk-cpp/generateFeatures.ps1 +++ b/ports/aws-sdk-cpp/generateFeatures.ps1 @@ -1,73 +1,51 @@ -[CmdletBinding()] -param( - [Parameter(Mandatory=$true)][string]$SourcesRef, - [Parameter(Mandatory=$false)][string]$PortDirectory = $PSScriptRoot, - [Parameter(Mandatory=$false)][string]$vcpkg = "$PSScriptRoot/../../vcpkg" -) - -$ErrorActionPreference = "Stop" - -$ManifestIn = "$PortDirectory/vcpkg.in.json" -$ManifestOut = "$PortDirectory/vcpkg.json" - -$ExtractedSources = "${env:TEMP}/aws-sdk-cpp-generateFeatures-$SourcesRef" -if (-not (Test-Path $ExtractedSources)) { - if (Test-Path "$ExtractedSources.tmp") { - Remove-Item -Force "$ExtractedSources.tmp" - } - git clone "https://github.com/aws/aws-sdk-cpp" "$ExtractedSources.tmp" | Out-Host - git -c "$ExtractedSources.tmp" checkout $SourcesRef - Move-Item "$ExtractedSources.tmp" "$ExtractedSources" -} -Write-Host "Using sources directory: $ExtractedSources" - - -$subfolders = Get-ChildItem -Path "$ExtractedSources\generated\src\aws-cpp-sdk-*", "$ExtractedSources\src\aws-cpp-sdk*" | Sort-Object -Property Name - -$manifest = Get-Content $ManifestIn | ConvertFrom-Json -$manifest | Add-Member ` - -NotePropertyName '$note' ` - -NotePropertyValue 'Automatically generated by generateFeatures.ps1' -$manifest | Add-Member -NotePropertyName 'features' -NotePropertyValue @{} - -function GetDescription($dir, $modulename) -{ - if (Test-Path "$dir\CMakeLists.txt") - { - $descs = @(Select-String -Path "$dir\CMakeLists.txt" -Pattern "`"C\+\+ SDK for the AWS [^`"]*`"") - if ($descs.count -eq 1) { - $desc = $descs[0].Matches.Value -replace "`"","" - "$desc" - } - else { "C++ SDK for the AWS $modulename service" } - } - else { "C++ SDK for the AWS $modulename service" } -} - -$featureDependencies = @{} -Select-String -Path "$ExtractedSources\cmake\sdksCommon.cmake" -Pattern "list\(APPEND SDK_DEPENDENCY_LIST `"([\w-]+):([\w-,]+)`"\)" -AllMatches ` -| ForEach-Object { $_.Matches } ` -| ForEach-Object { $featureDependencies[$_.Groups[1].Value] = @($_.Groups[2].Value -split "," ` -| Where-Object { $_ -ne "core" }) } - -foreach ($subfolder in $subfolders) -{ - $modulename = $subfolder.name -replace "^aws-cpp-sdk-","" - if ($modulename -match "-tests`$") { continue } - if ($modulename -match "-sample`$") { continue } - if ($modulename -eq "core") { continue } - - $lowermodulename = $modulename.ToLower() - - $featureObj = @{ description = (GetDescription $subfolder $modulename) } - - if ($featureDependencies.ContainsKey($lowermodulename)) { - $featureObj.dependencies = ,@{ name = "aws-sdk-cpp"; "default-features" = $false; "features" = $featureDependencies[$lowermodulename] } - } - - $manifest.features.Add("$lowermodulename", $featureObj) -} - -[IO.File]::WriteAllText($ManifestOut, (ConvertTo-Json -Depth 10 -InputObject $manifest)) - -& $vcpkg format-manifest --feature-flags=-manifests $ManifestOut +[CmdletBinding()] +param( + [Parameter(Mandatory=$true)][string]$ExtractedSources, + [Parameter(Mandatory=$true)][string]$ControlFileIn, + [Parameter(Mandatory=$true)][string]$ControlFile, + [Parameter(Mandatory=$true)][string]$CMakeFragmentFile +) + +$subfolders = Get-Item $ExtractedSources\aws-cpp-sdk-* + +$controltext = gc $ControlFileIn +$controltext += @("# Automatically generated by generateFeatures.ps1") + +$cmakefragmenttext = @("# Automatically generated by generateFeatures.ps1") + +function GetDescription($dir, $modulename) +{ + if (Test-Path "$dir\CMakeLists.txt") + { + $descs = @(Select-String -Path "$dir\CMakeLists.txt" -Pattern "`"C\+\+ SDK for the AWS [^`"]*`"") + if ($descs.count -eq 1) { + $desc = $descs[0].Matches.Value -replace "`"","" + "Description: $desc" + } + else { "Description: C++ SDK for the AWS $modulename service" } + } + else { "Description: C++ SDK for the AWS $modulename service" } +} + +$subfolders | % { + $modulename = $_.name -replace "^aws-cpp-sdk-","" + if ($modulename -match "-tests`$") { return } + if ($modulename -match "-sample`$") { return } + if ($modulename -eq "core") { return } + + $controltext += @("") + $controltext += @("Feature: $modulename") + $controltext += @(GetDescription $_ $modulename) + + $cmakefragmenttext += @( + "if(`"$modulename`" IN_LIST FEATURES)", + " list(APPEND BUILD_ONLY $modulename)", + "endif()" + ) +} + +Write-Verbose ($controltext -join "`n") +[IO.File]::WriteAllText($ControlFile, ($controltext -join "`n")+"`n") + +Write-Verbose ($cmakefragmenttext -join "`n") +[IO.File]::WriteAllText($CMakeFragmentFile, ($cmakefragmenttext -join "`n") +"`n") diff --git a/ports/aws-sdk-cpp/lock-curl-http-and-tls-settings.patch b/ports/aws-sdk-cpp/lock-curl-http-and-tls-settings.patch deleted file mode 100644 index 0f7a3b19183..00000000000 --- a/ports/aws-sdk-cpp/lock-curl-http-and-tls-settings.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/src/aws-cpp-sdk-core/CMakeLists.txt b/src/aws-cpp-sdk-core/CMakeLists.txt -index c44546b0e..b66888362 100644 ---- a/src/aws-cpp-sdk-core/CMakeLists.txt -+++ b/src/aws-cpp-sdk-core/CMakeLists.txt -@@ -113,13 +113,8 @@ if(ENABLE_CURL_CLIENT) - int main() { - CURL* handle = curl_easy_init(); - return curl_easy_setopt(handle, CURLOPT_PROXY_SSLCERT, \"client.pem\"); }") -- if (CMAKE_CROSSCOMPILING) -- check_c_source_compiles("${CHECK_CURL_HAS_H2}" CURL_HAS_H2) -- check_c_source_compiles("${CHECK_CURL_HAS_TLS_PROXY}" CURL_HAS_TLS_PROXY) -- else() -- check_c_source_runs("${CHECK_CURL_HAS_H2}" CURL_HAS_H2) -- check_c_source_runs("${CHECK_CURL_HAS_TLS_PROXY}" CURL_HAS_TLS_PROXY) -- endif() -+ set(CURL_HAS_H2 OFF) -+ set(CURL_HAS_TLS_PROXY ON) - elseif(ENABLE_WINDOWS_CLIENT) - # NOTE: HTTP/2 is not supported when using IXML_HTTP_REQUEST_2 - if(USE_IXML_HTTP_REQUEST_2) diff --git a/ports/aws-sdk-cpp/patch-relocatable-rpath.patch b/ports/aws-sdk-cpp/patch-relocatable-rpath.patch deleted file mode 100644 index 7d68126be59..00000000000 --- a/ports/aws-sdk-cpp/patch-relocatable-rpath.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 41d220d5fa..f6ee9a2a74 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -147,7 +147,6 @@ if (LEGACY_BUILD) - endif () - - # Add Linker search paths to RPATH so as to fix the problem where some linkers can't find cross-compiled dependent libraries in customer paths when linking executables. -- set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true) - - # build the sdk targets - project("aws-cpp-sdk-all" VERSION "${PROJECT_VERSION}" LANGUAGES CXX) diff --git a/ports/aws-sdk-cpp/portfile.cmake b/ports/aws-sdk-cpp/portfile.cmake index 1dc66c5f4b3..acff9cd82ec 100644 --- a/ports/aws-sdk-cpp/portfile.cmake +++ b/ports/aws-sdk-cpp/portfile.cmake @@ -1,100 +1,95 @@ -vcpkg_buildpath_length_warning(37) - -vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH - REPO aws/aws-sdk-cpp - REF "${VERSION}" - SHA512 4410eaff815ce7b6c0bc0d37bd4175754d5103d2e3cfd60755df57dad103ab7e7705b79fc6039d2c8b7d1ccec650912f5ff0aa73baa2d9cf6d6608a493d11088 - PATCHES - patch-relocatable-rpath.patch - fix-aws-root.patch - lock-curl-http-and-tls-settings.patch - fix-awsmigrationhub-build.patch -) - -string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" FORCE_SHARED_CRT) - -set(EXTRA_ARGS) -if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS) - set(rpath "@loader_path") -elseif (VCPKG_TARGET_IS_ANDROID) - set(EXTRA_ARGS "-DTARGET_ARCH=ANDROID" - "-DGIT_EXECUTABLE=--invalid-git-executable--" - "-DGIT_FOUND=TRUE" - "-DNDK_DIR=$ENV{ANDROID_NDK_HOME}" - "-DANDROID_BUILD_ZLIB=FALSE" - "-DANDROID_BUILD_CURL=FALSE" - "-DANDROID_BUILD_OPENSSL=FALSE" - ) -else() - set(rpath "\$ORIGIN") -endif() - -vcpkg_cmake_configure( - SOURCE_PATH "${SOURCE_PATH}" - DISABLE_PARALLEL_CONFIGURE - OPTIONS - ${EXTRA_ARGS} - "-DENABLE_UNITY_BUILD=ON" - "-DENABLE_TESTING=OFF" - "-DFORCE_SHARED_CRT=${FORCE_SHARED_CRT}" - "-DBUILD_ONLY=${FEATURES}" - "-DBUILD_DEPS=OFF" - "-DBUILD_SHARED_LIBS=OFF" - "-DAWS_SDK_WARNINGS_ARE_ERRORS=OFF" - "-DCMAKE_INSTALL_RPATH=${rpath}" - "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files -) -vcpkg_cmake_install() - -foreach(TARGET IN LISTS FEATURES) - vcpkg_cmake_config_fixup(PACKAGE_NAME "aws-cpp-sdk-${TARGET}" CONFIG_PATH "lib/cmake/aws-cpp-sdk-${TARGET}" DO_NOT_DELETE_PARENT_CONFIG_PATH) -endforeach() -vcpkg_cmake_config_fixup(PACKAGE_NAME "AWSSDK" CONFIG_PATH "lib/cmake/AWSSDK") - -vcpkg_copy_pdbs() - -file(GLOB_RECURSE AWS_TARGETS "${CURRENT_PACKAGES_DIR}/share/*/*-targets-*.cmake") -foreach(AWS_TARGET IN LISTS AWS_TARGETS) - file(READ ${AWS_TARGET} _contents) - string(REGEX REPLACE - "bin\\/([A-Za-z0-9_.-]+\\.lib)" - "lib/\\1" - _contents "${_contents}") - file(WRITE ${AWS_TARGET} "${_contents}") -endforeach() - -file(GLOB AWS_CONFIGS "${CURRENT_PACKAGES_DIR}/share/*/aws-cpp-sdk-*-config.cmake") -list(FILTER AWS_CONFIGS EXCLUDE REGEX "aws-cpp-sdk-core-config\\.cmake\$") -foreach(AWS_CONFIG IN LISTS AWS_CONFIGS) - file(READ "${AWS_CONFIG}" _contents) - file(WRITE "${AWS_CONFIG}" "include(CMakeFindDependencyMacro)\nfind_dependency(aws-cpp-sdk-core)\n${_contents}") -endforeach() - -file(REMOVE_RECURSE - "${CURRENT_PACKAGES_DIR}/debug/include" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" - "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig" - "${CURRENT_PACKAGES_DIR}/nuget" - "${CURRENT_PACKAGES_DIR}/debug/nuget" -) - -if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) - file(GLOB LIB_FILES ${CURRENT_PACKAGES_DIR}/bin/*.lib) - if(LIB_FILES) - file(COPY ${LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/lib) - file(REMOVE ${LIB_FILES}) - endif() - file(GLOB DEBUG_LIB_FILES ${CURRENT_PACKAGES_DIR}/debug/bin/*.lib) - if(DEBUG_LIB_FILES) - file(COPY ${DEBUG_LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) - file(REMOVE ${DEBUG_LIB_FILES}) - endif() - - file(APPEND "${CURRENT_PACKAGES_DIR}/include/aws/core/SDKConfig.h" "#ifndef USE_IMPORT_EXPORT\n#define USE_IMPORT_EXPORT\n#endif") -endif() - -configure_file("${CURRENT_PORT_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY) - -vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +vcpkg_buildpath_length_warning(37) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO aws/aws-sdk-cpp + REF 6b8d756658591088f0599e07dd72025c65c2aecb # 1.8.84 + SHA512 763d5e2fbfbe0aee4a5b803eba6e731a0712adf963b9e817a28ce6747e58abb47e5c811bf385f04b9c4a4cf0e768494d6efa2d6b5d788cf32ddd926435e788b6 + HEAD_REF master + PATCHES + 001-patch-relocatable-rpath.patch + 002-aws-c-common.patch + 003-fix-AWSSDKCONFIG.patch + 004-fix-check-c-source-runs.patch + 005-fix-cjson-sprintf.patch + 006-pjd-fix-compiler-warnings.patch + 007-lock-curl-http-and-tls-settings.patch + 008-disable-werror.patch +) + +string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" FORCE_SHARED_CRT) + +set(BUILD_ONLY core) + +include(${CMAKE_CURRENT_LIST_DIR}/compute_build_only.cmake) + +if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS) + set(rpath "@loader_path") +else() + set(rpath "\$ORIGIN") +endif() +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + DISABLE_PARALLEL_CONFIGURE + PREFER_NINJA + OPTIONS + -DENABLE_UNITY_BUILD=ON + -DENABLE_TESTING=OFF + -DFORCE_SHARED_CRT=${FORCE_SHARED_CRT} + -DCMAKE_DISABLE_FIND_PACKAGE_Git=TRUE + "-DBUILD_ONLY=${BUILD_ONLY}" + -DBUILD_DEPS=OFF + -DCMAKE_INSTALL_RPATH=${rpath} +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share) + +vcpkg_copy_pdbs() + +file(GLOB_RECURSE AWS_TARGETS "${CURRENT_PACKAGES_DIR}/share/*/*-targets-*.cmake") +foreach(AWS_TARGET IN LISTS AWS_TARGETS) + file(READ ${AWS_TARGET} _contents) + string(REGEX REPLACE + "bin\\/([A-Za-z0-9_.-]+\\.lib)" + "lib/\\1" + _contents "${_contents}") + file(WRITE ${AWS_TARGET} "${_contents}") +endforeach() + +file(GLOB AWS_CONFIGS "${CURRENT_PACKAGES_DIR}/share/*/aws-cpp-sdk-*-config.cmake") +list(FILTER AWS_CONFIGS EXCLUDE REGEX "aws-cpp-sdk-core-config\\.cmake\$") +foreach(AWS_CONFIG IN LISTS AWS_CONFIGS) + file(READ "${AWS_CONFIG}" _contents) + file(WRITE "${AWS_CONFIG}" "include(CMakeFindDependencyMacro)\nfind_dependency(aws-cpp-sdk-core)\n${_contents}") +endforeach() + +file(REMOVE_RECURSE + ${CURRENT_PACKAGES_DIR}/debug/include + ${CURRENT_PACKAGES_DIR}/debug/share + ${CURRENT_PACKAGES_DIR}/lib/pkgconfig + ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig + ${CURRENT_PACKAGES_DIR}/nuget + ${CURRENT_PACKAGES_DIR}/debug/nuget +) + +if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic) + file(GLOB LIB_FILES ${CURRENT_PACKAGES_DIR}/bin/*.lib) + if(LIB_FILES) + file(COPY ${LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/lib) + file(REMOVE ${LIB_FILES}) + endif() + file(GLOB DEBUG_LIB_FILES ${CURRENT_PACKAGES_DIR}/debug/bin/*.lib) + if(DEBUG_LIB_FILES) + file(COPY ${DEBUG_LIB_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib) + file(REMOVE ${DEBUG_LIB_FILES}) + endif() + + file(APPEND ${CURRENT_PACKAGES_DIR}/include/aws/core/SDKConfig.h "#ifndef USE_IMPORT_EXPORT\n#define USE_IMPORT_EXPORT\n#endif") +endif() + +configure_file(${CURRENT_PORT_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY) + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) diff --git a/ports/aws-sdk-cpp/usage b/ports/aws-sdk-cpp/usage index 37e1f617b2c..7f317648352 100644 --- a/ports/aws-sdk-cpp/usage +++ b/ports/aws-sdk-cpp/usage @@ -1,12 +1,5 @@ -The package @PORT@:@TARGET_TRIPLET@ provides CMake targets: - - When using AWSSDK, AWSSDK_ROOT_DIR must be defined by the user. - find_package(AWSSDK CONFIG COMPONENTS core dynamodb kinesis s3 REQUIRED) - target_include_directories(main PRIVATE ${AWSSDK_INCLUDE_DIRS}) - target_link_libraries(main PRIVATE ${AWSSDK_LIBRARIES}) - - OR - - find_package(aws-cpp-sdk-core REQUIRED) - target_include_directories(main PRIVATE aws-cpp-sdk-core) - target_link_libraries(main PRIVATE aws-cpp-sdk-core) +The package @PORT@:@TARGET_TRIPLET@ provides CMake targets: + + find_package(AWSSDK CONFIG COMPONENTS core dynamodb kinesis s3 REQUIRED) + target_include_directories(main PRVATE ${AWSSDK_INCLUDE_DIRS}) + target_link_libraries(main PRIVATE ${AWSSDK_LIBRARIES}) diff --git a/ports/aws-sdk-cpp/vcpkg.in.json b/ports/aws-sdk-cpp/vcpkg.in.json deleted file mode 100644 index e79a583786b..00000000000 --- a/ports/aws-sdk-cpp/vcpkg.in.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "aws-sdk-cpp", - "version": "1.11.215", - "description": "AWS SDK for C++", - "homepage": "https://github.com/aws/aws-sdk-cpp", - "license": "Apache-2.0", - "supports": "!(windows & arm) & !uwp", - "dependencies": [ - "aws-crt-cpp", - { - "name": "curl", - "default-features": false, - "features": [ - "ssl" - ], - "platform": "!uwp & !windows" - }, - { - "name": "openssl", - "platform": "!uwp & !windows" - }, - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - }, - "zlib" - ], - "default-features": [ - "dynamodb", - "kinesis", - "s3" - ] -} diff --git a/ports/aws-sdk-cpp/vcpkg.json b/ports/aws-sdk-cpp/vcpkg.json deleted file mode 100644 index 745435741aa..00000000000 --- a/ports/aws-sdk-cpp/vcpkg.json +++ /dev/null @@ -1,1183 +0,0 @@ -{ - "$note": "Automatically generated by generateFeatures.ps1", - "name": "aws-sdk-cpp", - "version": "1.11.215", - "description": "AWS SDK for C++", - "homepage": "https://github.com/aws/aws-sdk-cpp", - "license": "Apache-2.0", - "supports": "!(windows & arm) & !uwp", - "dependencies": [ - "aws-crt-cpp", - { - "name": "curl", - "default-features": false, - "features": [ - "ssl" - ], - "platform": "!uwp & !windows" - }, - { - "name": "openssl", - "platform": "!uwp & !windows" - }, - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - }, - "zlib" - ], - "default-features": [ - "dynamodb", - "kinesis", - "s3" - ], - "features": { - "access-management": { - "description": "C++ SDK for the AWS access-management service", - "dependencies": [ - { - "name": "aws-sdk-cpp", - "default-features": false, - "features": [ - "cognito-identity", - "iam" - ] - } - ] - }, - "accessanalyzer": { - "description": "C++ SDK for the AWS accessanalyzer service" - }, - "account": { - "description": "C++ SDK for the AWS account service" - }, - "acm": { - "description": "C++ SDK for the AWS acm service" - }, - "acm-pca": { - "description": "C++ SDK for the AWS acm-pca service" - }, - "alexaforbusiness": { - "description": "C++ SDK for the AWS alexaforbusiness service" - }, - "amp": { - "description": "C++ SDK for the AWS amp service" - }, - "amplify": { - "description": "C++ SDK for the AWS amplify service" - }, - "amplifybackend": { - "description": "C++ SDK for the AWS amplifybackend service" - }, - "amplifyuibuilder": { - "description": "C++ SDK for the AWS amplifyuibuilder service" - }, - "apigateway": { - "description": "C++ SDK for the AWS apigateway service" - }, - "apigatewaymanagementapi": { - "description": "C++ SDK for the AWS apigatewaymanagementapi service" - }, - "apigatewayv2": { - "description": "C++ SDK for the AWS apigatewayv2 service" - }, - "appconfig": { - "description": "C++ SDK for the AWS appconfig service" - }, - "appconfigdata": { - "description": "C++ SDK for the AWS appconfigdata service" - }, - "appfabric": { - "description": "C++ SDK for the AWS appfabric service" - }, - "appflow": { - "description": "C++ SDK for the AWS appflow service" - }, - "appintegrations": { - "description": "C++ SDK for the AWS appintegrations service" - }, - "application-autoscaling": { - "description": "C++ SDK for the AWS application-autoscaling service" - }, - "application-insights": { - "description": "C++ SDK for the AWS application-insights service" - }, - "applicationcostprofiler": { - "description": "C++ SDK for the AWS applicationcostprofiler service" - }, - "appmesh": { - "description": "C++ SDK for the AWS appmesh service" - }, - "apprunner": { - "description": "C++ SDK for the AWS apprunner service" - }, - "appstream": { - "description": "C++ SDK for the AWS appstream service" - }, - "appsync": { - "description": "C++ SDK for the AWS appsync service" - }, - "arc-zonal-shift": { - "description": "C++ SDK for the AWS arc-zonal-shift service" - }, - "athena": { - "description": "C++ SDK for the AWS athena service" - }, - "auditmanager": { - "description": "C++ SDK for the AWS auditmanager service" - }, - "autoscaling": { - "description": "C++ SDK for the AWS autoscaling service" - }, - "autoscaling-plans": { - "description": "C++ SDK for the AWS autoscaling-plans service" - }, - "awsmigrationhub": { - "description": "C++ SDK for the AWS AWSMigrationHub service" - }, - "awstransfer": { - "description": "C++ SDK for the AWS awstransfer service" - }, - "backup": { - "description": "C++ SDK for the AWS backup service" - }, - "backup-gateway": { - "description": "C++ SDK for the AWS backup-gateway service" - }, - "backupstorage": { - "description": "C++ SDK for the AWS backupstorage service" - }, - "batch": { - "description": "C++ SDK for the AWS batch service" - }, - "billingconductor": { - "description": "C++ SDK for the AWS billingconductor service" - }, - "braket": { - "description": "C++ SDK for the AWS braket service" - }, - "budgets": { - "description": "C++ SDK for the AWS budgets service" - }, - "ce": { - "description": "C++ SDK for the AWS ce service" - }, - "chime": { - "description": "C++ SDK for the AWS chime service" - }, - "chime-sdk-identity": { - "description": "C++ SDK for the AWS chime-sdk-identity service" - }, - "chime-sdk-media-pipelines": { - "description": "C++ SDK for the AWS chime-sdk-media-pipelines service" - }, - "chime-sdk-meetings": { - "description": "C++ SDK for the AWS chime-sdk-meetings service" - }, - "chime-sdk-messaging": { - "description": "C++ SDK for the AWS chime-sdk-messaging service" - }, - "chime-sdk-voice": { - "description": "C++ SDK for the AWS chime-sdk-voice service" - }, - "cleanrooms": { - "description": "C++ SDK for the AWS cleanrooms service" - }, - "cloud9": { - "description": "C++ SDK for the AWS cloud9 service" - }, - "cloudcontrol": { - "description": "C++ SDK for the AWS cloudcontrol service" - }, - "clouddirectory": { - "description": "C++ SDK for the AWS clouddirectory service" - }, - "cloudformation": { - "description": "C++ SDK for the AWS cloudformation service" - }, - "cloudfront": { - "description": "C++ SDK for the AWS cloudfront service" - }, - "cloudhsm": { - "description": "C++ SDK for the AWS cloudhsm service" - }, - "cloudhsmv2": { - "description": "C++ SDK for the AWS cloudhsmv2 service" - }, - "cloudsearch": { - "description": "C++ SDK for the AWS cloudsearch service" - }, - "cloudsearchdomain": { - "description": "C++ SDK for the AWS cloudsearchdomain service" - }, - "cloudtrail": { - "description": "C++ SDK for the AWS cloudtrail service" - }, - "cloudtrail-data": { - "description": "C++ SDK for the AWS cloudtrail-data service" - }, - "codeartifact": { - "description": "C++ SDK for the AWS codeartifact service" - }, - "codebuild": { - "description": "C++ SDK for the AWS codebuild service" - }, - "codecatalyst": { - "description": "C++ SDK for the AWS codecatalyst service" - }, - "codecommit": { - "description": "C++ SDK for the AWS codecommit service" - }, - "codedeploy": { - "description": "C++ SDK for the AWS codedeploy service" - }, - "codeguru-reviewer": { - "description": "C++ SDK for the AWS codeguru-reviewer service" - }, - "codeguru-security": { - "description": "C++ SDK for the AWS codeguru-security service" - }, - "codeguruprofiler": { - "description": "C++ SDK for the AWS codeguruprofiler service" - }, - "codepipeline": { - "description": "C++ SDK for the AWS codepipeline service" - }, - "codestar": { - "description": "C++ SDK for the AWS codestar service" - }, - "codestar-connections": { - "description": "C++ SDK for the AWS codestar-connections service" - }, - "codestar-notifications": { - "description": "C++ SDK for the AWS codestar-notifications service" - }, - "cognito-identity": { - "description": "C++ SDK for the AWS cognito-identity service" - }, - "cognito-idp": { - "description": "C++ SDK for the AWS cognito-idp service" - }, - "cognito-sync": { - "description": "C++ SDK for the AWS cognito-sync service" - }, - "comprehend": { - "description": "C++ SDK for the AWS comprehend service" - }, - "comprehendmedical": { - "description": "C++ SDK for the AWS comprehendmedical service" - }, - "compute-optimizer": { - "description": "C++ SDK for the AWS compute-optimizer service" - }, - "config": { - "description": "C++ SDK for the AWS config service" - }, - "connect": { - "description": "C++ SDK for the AWS connect service" - }, - "connect-contact-lens": { - "description": "C++ SDK for the AWS connect-contact-lens service" - }, - "connectcampaigns": { - "description": "C++ SDK for the AWS connectcampaigns service" - }, - "connectcases": { - "description": "C++ SDK for the AWS connectcases service" - }, - "connectparticipant": { - "description": "C++ SDK for the AWS connectparticipant service" - }, - "controltower": { - "description": "C++ SDK for the AWS controltower service" - }, - "cur": { - "description": "C++ SDK for the AWS cur service" - }, - "customer-profiles": { - "description": "C++ SDK for the AWS customer-profiles service" - }, - "databrew": { - "description": "C++ SDK for the AWS databrew service" - }, - "dataexchange": { - "description": "C++ SDK for the AWS dataexchange service" - }, - "datapipeline": { - "description": "C++ SDK for the AWS datapipeline service" - }, - "datasync": { - "description": "C++ SDK for the AWS datasync service" - }, - "dax": { - "description": "C++ SDK for the AWS dax service" - }, - "detective": { - "description": "C++ SDK for the AWS detective service" - }, - "devicefarm": { - "description": "C++ SDK for the AWS devicefarm service" - }, - "devops-guru": { - "description": "C++ SDK for the AWS devops-guru service" - }, - "directconnect": { - "description": "C++ SDK for the AWS directconnect service" - }, - "discovery": { - "description": "C++ SDK for the AWS discovery service" - }, - "dlm": { - "description": "C++ SDK for the AWS dlm service" - }, - "dms": { - "description": "C++ SDK for the AWS dms service" - }, - "docdb": { - "description": "C++ SDK for the AWS docdb service" - }, - "docdb-elastic": { - "description": "C++ SDK for the AWS docdb-elastic service" - }, - "drs": { - "description": "C++ SDK for the AWS drs service" - }, - "ds": { - "description": "C++ SDK for the AWS ds service" - }, - "dynamodb": { - "description": "C++ SDK for the AWS dynamodb service" - }, - "dynamodbstreams": { - "description": "C++ SDK for the AWS dynamodbstreams service" - }, - "ebs": { - "description": "C++ SDK for the AWS ebs service" - }, - "ec2": { - "description": "C++ SDK for the AWS ec2 service" - }, - "ec2-instance-connect": { - "description": "C++ SDK for the AWS ec2-instance-connect service" - }, - "ecr": { - "description": "C++ SDK for the AWS ecr service" - }, - "ecr-public": { - "description": "C++ SDK for the AWS ecr-public service" - }, - "ecs": { - "description": "C++ SDK for the AWS ecs service" - }, - "eks": { - "description": "C++ SDK for the AWS eks service" - }, - "elastic-inference": { - "description": "C++ SDK for the AWS elastic-inference service" - }, - "elasticache": { - "description": "C++ SDK for the AWS elasticache service" - }, - "elasticbeanstalk": { - "description": "C++ SDK for the AWS elasticbeanstalk service" - }, - "elasticfilesystem": { - "description": "C++ SDK for the AWS elasticfilesystem service" - }, - "elasticloadbalancing": { - "description": "C++ SDK for the AWS elasticloadbalancing service" - }, - "elasticloadbalancingv2": { - "description": "C++ SDK for the AWS elasticloadbalancingv2 service" - }, - "elasticmapreduce": { - "description": "C++ SDK for the AWS elasticmapreduce service" - }, - "elastictranscoder": { - "description": "C++ SDK for the AWS elastictranscoder service" - }, - "email": { - "description": "C++ SDK for the AWS email service" - }, - "emr-containers": { - "description": "C++ SDK for the AWS emr-containers service" - }, - "emr-serverless": { - "description": "C++ SDK for the AWS emr-serverless service" - }, - "entityresolution": { - "description": "C++ SDK for the AWS entityresolution service" - }, - "es": { - "description": "C++ SDK for the AWS es service" - }, - "eventbridge": { - "description": "C++ SDK for the AWS eventbridge service" - }, - "events": { - "description": "C++ SDK for the AWS events service" - }, - "evidently": { - "description": "C++ SDK for the AWS evidently service" - }, - "finspace": { - "description": "C++ SDK for the AWS finspace service" - }, - "finspace-data": { - "description": "C++ SDK for the AWS finspace-data service" - }, - "firehose": { - "description": "C++ SDK for the AWS firehose service" - }, - "fis": { - "description": "C++ SDK for the AWS fis service" - }, - "fms": { - "description": "C++ SDK for the AWS fms service" - }, - "forecast": { - "description": "C++ SDK for the AWS forecast service" - }, - "forecastquery": { - "description": "C++ SDK for the AWS forecastquery service" - }, - "frauddetector": { - "description": "C++ SDK for the AWS frauddetector service" - }, - "fsx": { - "description": "C++ SDK for the AWS fsx service" - }, - "gamelift": { - "description": "C++ SDK for the AWS gamelift service" - }, - "glacier": { - "description": "C++ SDK for the AWS glacier service" - }, - "globalaccelerator": { - "description": "C++ SDK for the AWS globalaccelerator service" - }, - "glue": { - "description": "C++ SDK for the AWS glue service" - }, - "grafana": { - "description": "C++ SDK for the AWS grafana service" - }, - "greengrass": { - "description": "C++ SDK for the AWS greengrass service" - }, - "greengrassv2": { - "description": "C++ SDK for the AWS greengrassv2 service" - }, - "groundstation": { - "description": "C++ SDK for the AWS groundstation service" - }, - "guardduty": { - "description": "C++ SDK for the AWS guardduty service" - }, - "health": { - "description": "C++ SDK for the AWS health service" - }, - "healthlake": { - "description": "C++ SDK for the AWS healthlake service" - }, - "honeycode": { - "description": "C++ SDK for the AWS honeycode service" - }, - "iam": { - "description": "C++ SDK for the AWS iam service" - }, - "identity-management": { - "description": "C++ SDK for the AWS identity-management service", - "dependencies": [ - { - "name": "aws-sdk-cpp", - "default-features": false, - "features": [ - "cognito-identity", - "sts" - ] - } - ] - }, - "identitystore": { - "description": "C++ SDK for the AWS identitystore service" - }, - "imagebuilder": { - "description": "C++ SDK for the AWS imagebuilder service" - }, - "importexport": { - "description": "C++ SDK for the AWS importexport service" - }, - "inspector": { - "description": "C++ SDK for the AWS inspector service" - }, - "inspector2": { - "description": "C++ SDK for the AWS inspector2 service" - }, - "internetmonitor": { - "description": "C++ SDK for the AWS internetmonitor service" - }, - "iot": { - "description": "C++ SDK for the AWS iot service" - }, - "iot-data": { - "description": "C++ SDK for the AWS iot-data service" - }, - "iot-jobs-data": { - "description": "C++ SDK for the AWS iot-jobs-data service" - }, - "iot-roborunner": { - "description": "C++ SDK for the AWS iot-roborunner service" - }, - "iot1click-devices": { - "description": "C++ SDK for the AWS iot1click-devices service" - }, - "iot1click-projects": { - "description": "C++ SDK for the AWS iot1click-projects service" - }, - "iotanalytics": { - "description": "C++ SDK for the AWS iotanalytics service" - }, - "iotdeviceadvisor": { - "description": "C++ SDK for the AWS iotdeviceadvisor service" - }, - "iotevents": { - "description": "C++ SDK for the AWS iotevents service" - }, - "iotevents-data": { - "description": "C++ SDK for the AWS iotevents-data service" - }, - "iotfleethub": { - "description": "C++ SDK for the AWS iotfleethub service" - }, - "iotfleetwise": { - "description": "C++ SDK for the AWS iotfleetwise service" - }, - "iotsecuretunneling": { - "description": "C++ SDK for the AWS iotsecuretunneling service" - }, - "iotsitewise": { - "description": "C++ SDK for the AWS iotsitewise service" - }, - "iotthingsgraph": { - "description": "C++ SDK for the AWS iotthingsgraph service" - }, - "iottwinmaker": { - "description": "C++ SDK for the AWS iottwinmaker service" - }, - "iotwireless": { - "description": "C++ SDK for the AWS iotwireless service" - }, - "ivs": { - "description": "C++ SDK for the AWS ivs service" - }, - "ivs-realtime": { - "description": "C++ SDK for the AWS ivs-realtime service" - }, - "ivschat": { - "description": "C++ SDK for the AWS ivschat service" - }, - "kafka": { - "description": "C++ SDK for the AWS kafka service" - }, - "kafkaconnect": { - "description": "C++ SDK for the AWS kafkaconnect service" - }, - "kendra": { - "description": "C++ SDK for the AWS kendra service" - }, - "kendra-ranking": { - "description": "C++ SDK for the AWS kendra-ranking service" - }, - "keyspaces": { - "description": "C++ SDK for the AWS keyspaces service" - }, - "kinesis": { - "description": "C++ SDK for the AWS kinesis service" - }, - "kinesis-video-archived-media": { - "description": "C++ SDK for the AWS kinesis-video-archived-media service" - }, - "kinesis-video-media": { - "description": "C++ SDK for the AWS kinesis-video-media service" - }, - "kinesis-video-signaling": { - "description": "C++ SDK for the AWS kinesis-video-signaling service" - }, - "kinesis-video-webrtc-storage": { - "description": "C++ SDK for the AWS kinesis-video-webrtc-storage service" - }, - "kinesisanalytics": { - "description": "C++ SDK for the AWS kinesisanalytics service" - }, - "kinesisanalyticsv2": { - "description": "C++ SDK for the AWS kinesisanalyticsv2 service" - }, - "kinesisvideo": { - "description": "C++ SDK for the AWS kinesisvideo service" - }, - "kms": { - "description": "C++ SDK for the AWS kms service" - }, - "lakeformation": { - "description": "C++ SDK for the AWS lakeformation service" - }, - "lambda": { - "description": "C++ SDK for the AWS lambda service" - }, - "lex": { - "description": "C++ SDK for the AWS lex service" - }, - "lex-models": { - "description": "C++ SDK for the AWS lex-models service" - }, - "lexv2-models": { - "description": "C++ SDK for the AWS lexv2-models service" - }, - "lexv2-runtime": { - "description": "C++ SDK for the AWS lexv2-runtime service" - }, - "license-manager": { - "description": "C++ SDK for the AWS license-manager service" - }, - "license-manager-linux-subscriptions": { - "description": "C++ SDK for the AWS license-manager-linux-subscriptions service" - }, - "license-manager-user-subscriptions": { - "description": "C++ SDK for the AWS license-manager-user-subscriptions service" - }, - "lightsail": { - "description": "C++ SDK for the AWS lightsail service" - }, - "location": { - "description": "C++ SDK for the AWS location service" - }, - "logs": { - "description": "C++ SDK for the AWS logs service" - }, - "lookoutequipment": { - "description": "C++ SDK for the AWS lookoutequipment service" - }, - "lookoutmetrics": { - "description": "C++ SDK for the AWS lookoutmetrics service" - }, - "lookoutvision": { - "description": "C++ SDK for the AWS lookoutvision service" - }, - "m2": { - "description": "C++ SDK for the AWS m2 service" - }, - "machinelearning": { - "description": "C++ SDK for the AWS machinelearning service" - }, - "macie": { - "description": "C++ SDK for the AWS macie service" - }, - "macie2": { - "description": "C++ SDK for the AWS macie2 service" - }, - "managedblockchain": { - "description": "C++ SDK for the AWS managedblockchain service" - }, - "managedblockchain-query": { - "description": "C++ SDK for the AWS managedblockchain-query service" - }, - "marketplace-catalog": { - "description": "C++ SDK for the AWS marketplace-catalog service" - }, - "marketplace-entitlement": { - "description": "C++ SDK for the AWS marketplace-entitlement service" - }, - "marketplacecommerceanalytics": { - "description": "C++ SDK for the AWS marketplacecommerceanalytics service" - }, - "mediaconnect": { - "description": "C++ SDK for the AWS mediaconnect service" - }, - "mediaconvert": { - "description": "C++ SDK for the AWS mediaconvert service" - }, - "medialive": { - "description": "C++ SDK for the AWS medialive service" - }, - "mediapackage": { - "description": "C++ SDK for the AWS mediapackage service" - }, - "mediapackage-vod": { - "description": "C++ SDK for the AWS mediapackage-vod service" - }, - "mediapackagev2": { - "description": "C++ SDK for the AWS mediapackagev2 service" - }, - "mediastore": { - "description": "C++ SDK for the AWS mediastore service" - }, - "mediastore-data": { - "description": "C++ SDK for the AWS mediastore-data service" - }, - "mediatailor": { - "description": "C++ SDK for the AWS mediatailor service" - }, - "medical-imaging": { - "description": "C++ SDK for the AWS medical-imaging service" - }, - "memorydb": { - "description": "C++ SDK for the AWS memorydb service" - }, - "meteringmarketplace": { - "description": "C++ SDK for the AWS meteringmarketplace service" - }, - "mgn": { - "description": "C++ SDK for the AWS mgn service" - }, - "migration-hub-refactor-spaces": { - "description": "C++ SDK for the AWS migration-hub-refactor-spaces service" - }, - "migrationhub-config": { - "description": "C++ SDK for the AWS migrationhub-config service" - }, - "migrationhuborchestrator": { - "description": "C++ SDK for the AWS migrationhuborchestrator service" - }, - "migrationhubstrategy": { - "description": "C++ SDK for the AWS migrationhubstrategy service" - }, - "mobile": { - "description": "C++ SDK for the AWS mobile service" - }, - "monitoring": { - "description": "C++ SDK for the AWS monitoring service" - }, - "mq": { - "description": "C++ SDK for the AWS mq service" - }, - "mturk-requester": { - "description": "C++ SDK for the AWS mturk-requester service" - }, - "mwaa": { - "description": "C++ SDK for the AWS mwaa service" - }, - "neptune": { - "description": "C++ SDK for the AWS neptune service" - }, - "neptunedata": { - "description": "C++ SDK for the AWS neptunedata service" - }, - "network-firewall": { - "description": "C++ SDK for the AWS network-firewall service" - }, - "networkmanager": { - "description": "C++ SDK for the AWS networkmanager service" - }, - "nimble": { - "description": "C++ SDK for the AWS nimble service" - }, - "oam": { - "description": "C++ SDK for the AWS oam service" - }, - "omics": { - "description": "C++ SDK for the AWS omics service" - }, - "opensearch": { - "description": "C++ SDK for the AWS opensearch service" - }, - "opensearchserverless": { - "description": "C++ SDK for the AWS opensearchserverless service" - }, - "opsworks": { - "description": "C++ SDK for the AWS opsworks service" - }, - "opsworkscm": { - "description": "C++ SDK for the AWS opsworkscm service" - }, - "organizations": { - "description": "C++ SDK for the AWS organizations service" - }, - "osis": { - "description": "C++ SDK for the AWS osis service" - }, - "outposts": { - "description": "C++ SDK for the AWS outposts service" - }, - "panorama": { - "description": "C++ SDK for the AWS panorama service" - }, - "payment-cryptography": { - "description": "C++ SDK for the AWS payment-cryptography service" - }, - "payment-cryptography-data": { - "description": "C++ SDK for the AWS payment-cryptography-data service" - }, - "pca-connector-ad": { - "description": "C++ SDK for the AWS pca-connector-ad service" - }, - "personalize": { - "description": "C++ SDK for the AWS personalize service" - }, - "personalize-events": { - "description": "C++ SDK for the AWS personalize-events service" - }, - "personalize-runtime": { - "description": "C++ SDK for the AWS personalize-runtime service" - }, - "pi": { - "description": "C++ SDK for the AWS pi service" - }, - "pinpoint": { - "description": "C++ SDK for the AWS pinpoint service" - }, - "pinpoint-email": { - "description": "C++ SDK for the AWS pinpoint-email service" - }, - "pinpoint-sms-voice-v2": { - "description": "C++ SDK for the AWS pinpoint-sms-voice-v2 service" - }, - "pipes": { - "description": "C++ SDK for the AWS pipes service" - }, - "polly": { - "description": "C++ SDK for the AWS polly service" - }, - "pricing": { - "description": "C++ SDK for the AWS pricing service" - }, - "privatenetworks": { - "description": "C++ SDK for the AWS privatenetworks service" - }, - "proton": { - "description": "C++ SDK for the AWS proton service" - }, - "qldb": { - "description": "C++ SDK for the AWS qldb service" - }, - "qldb-session": { - "description": "C++ SDK for the AWS qldb-session service" - }, - "queues": { - "description": "C++ SDK for the AWS queues service", - "dependencies": [ - { - "name": "aws-sdk-cpp", - "default-features": false, - "features": [ - "sqs" - ] - } - ] - }, - "quicksight": { - "description": "C++ SDK for the AWS quicksight service" - }, - "ram": { - "description": "C++ SDK for the AWS ram service" - }, - "rbin": { - "description": "C++ SDK for the AWS rbin service" - }, - "rds": { - "description": "C++ SDK for the AWS rds service" - }, - "rds-data": { - "description": "C++ SDK for the AWS rds-data service" - }, - "redshift": { - "description": "C++ SDK for the AWS redshift service" - }, - "redshift-data": { - "description": "C++ SDK for the AWS redshift-data service" - }, - "redshift-serverless": { - "description": "C++ SDK for the AWS redshift-serverless service" - }, - "rekognition": { - "description": "C++ SDK for the AWS rekognition service" - }, - "resiliencehub": { - "description": "C++ SDK for the AWS resiliencehub service" - }, - "resource-explorer-2": { - "description": "C++ SDK for the AWS resource-explorer-2 service" - }, - "resource-groups": { - "description": "C++ SDK for the AWS resource-groups service" - }, - "resourcegroupstaggingapi": { - "description": "C++ SDK for the AWS resourcegroupstaggingapi service" - }, - "robomaker": { - "description": "C++ SDK for the AWS robomaker service" - }, - "rolesanywhere": { - "description": "C++ SDK for the AWS rolesanywhere service" - }, - "route53": { - "description": "C++ SDK for the AWS route53 service" - }, - "route53-recovery-cluster": { - "description": "C++ SDK for the AWS route53-recovery-cluster service" - }, - "route53-recovery-control-config": { - "description": "C++ SDK for the AWS route53-recovery-control-config service" - }, - "route53-recovery-readiness": { - "description": "C++ SDK for the AWS route53-recovery-readiness service" - }, - "route53domains": { - "description": "C++ SDK for the AWS route53domains service" - }, - "route53resolver": { - "description": "C++ SDK for the AWS route53resolver service" - }, - "rum": { - "description": "C++ SDK for the AWS rum service" - }, - "s3": { - "description": "C++ SDK for the AWS s3 service" - }, - "s3-crt": { - "description": "C++ SDK for the AWS s3-crt service" - }, - "s3-encryption": { - "description": "C++ SDK for the AWS s3-encryption service", - "dependencies": [ - { - "name": "aws-sdk-cpp", - "default-features": false, - "features": [ - "kms", - "s3" - ] - } - ] - }, - "s3control": { - "description": "C++ SDK for the AWS s3control service" - }, - "s3outposts": { - "description": "C++ SDK for the AWS s3outposts service" - }, - "sagemaker": { - "description": "C++ SDK for the AWS sagemaker service" - }, - "sagemaker-a2i-runtime": { - "description": "C++ SDK for the AWS sagemaker-a2i-runtime service" - }, - "sagemaker-edge": { - "description": "C++ SDK for the AWS sagemaker-edge service" - }, - "sagemaker-featurestore-runtime": { - "description": "C++ SDK for the AWS sagemaker-featurestore-runtime service" - }, - "sagemaker-geospatial": { - "description": "C++ SDK for the AWS sagemaker-geospatial service" - }, - "sagemaker-metrics": { - "description": "C++ SDK for the AWS sagemaker-metrics service" - }, - "sagemaker-runtime": { - "description": "C++ SDK for the AWS sagemaker-runtime service" - }, - "savingsplans": { - "description": "C++ SDK for the AWS savingsplans service" - }, - "scheduler": { - "description": "C++ SDK for the AWS scheduler service" - }, - "schemas": { - "description": "C++ SDK for the AWS schemas service" - }, - "sdb": { - "description": "C++ SDK for the AWS sdb service" - }, - "secretsmanager": { - "description": "C++ SDK for the AWS secretsmanager service" - }, - "securityhub": { - "description": "C++ SDK for the AWS securityhub service" - }, - "securitylake": { - "description": "C++ SDK for the AWS securitylake service" - }, - "serverlessrepo": { - "description": "C++ SDK for the AWS serverlessrepo service" - }, - "service-quotas": { - "description": "C++ SDK for the AWS service-quotas service" - }, - "servicecatalog": { - "description": "C++ SDK for the AWS servicecatalog service" - }, - "servicecatalog-appregistry": { - "description": "C++ SDK for the AWS servicecatalog-appregistry service" - }, - "servicediscovery": { - "description": "C++ SDK for the AWS servicediscovery service" - }, - "sesv2": { - "description": "C++ SDK for the AWS sesv2 service" - }, - "shield": { - "description": "C++ SDK for the AWS shield service" - }, - "signer": { - "description": "C++ SDK for the AWS signer service" - }, - "simspaceweaver": { - "description": "C++ SDK for the AWS simspaceweaver service" - }, - "sms": { - "description": "C++ SDK for the AWS sms service" - }, - "sms-voice": { - "description": "C++ SDK for the AWS sms-voice service" - }, - "snow-device-management": { - "description": "C++ SDK for the AWS snow-device-management service" - }, - "snowball": { - "description": "C++ SDK for the AWS snowball service" - }, - "sns": { - "description": "C++ SDK for the AWS sns service" - }, - "sqs": { - "description": "C++ SDK for the AWS sqs service" - }, - "ssm": { - "description": "C++ SDK for the AWS ssm service" - }, - "ssm-contacts": { - "description": "C++ SDK for the AWS ssm-contacts service" - }, - "ssm-incidents": { - "description": "C++ SDK for the AWS ssm-incidents service" - }, - "ssm-sap": { - "description": "C++ SDK for the AWS ssm-sap service" - }, - "sso": { - "description": "C++ SDK for the AWS sso service" - }, - "sso-admin": { - "description": "C++ SDK for the AWS sso-admin service" - }, - "sso-oidc": { - "description": "C++ SDK for the AWS sso-oidc service" - }, - "states": { - "description": "C++ SDK for the AWS states service" - }, - "storagegateway": { - "description": "C++ SDK for the AWS storagegateway service" - }, - "sts": { - "description": "C++ SDK for the AWS sts service" - }, - "support": { - "description": "C++ SDK for the AWS support service" - }, - "support-app": { - "description": "C++ SDK for the AWS support-app service" - }, - "swf": { - "description": "C++ SDK for the AWS swf service" - }, - "synthetics": { - "description": "C++ SDK for the AWS synthetics service" - }, - "text-to-speech": { - "description": "C++ SDK for the AWS text-to-speech service", - "dependencies": [ - { - "name": "aws-sdk-cpp", - "default-features": false, - "features": [ - "polly" - ] - } - ] - }, - "textract": { - "description": "C++ SDK for the AWS textract service" - }, - "timestream-query": { - "description": "C++ SDK for the AWS timestream-query service" - }, - "timestream-write": { - "description": "C++ SDK for the AWS timestream-write service" - }, - "tnb": { - "description": "C++ SDK for the AWS tnb service" - }, - "transcribe": { - "description": "C++ SDK for the AWS transcribe service" - }, - "transcribestreaming": { - "description": "C++ SDK for the AWS transcribestreaming service" - }, - "transfer": { - "description": "C++ SDK for the AWS transfer service", - "dependencies": [ - { - "name": "aws-sdk-cpp", - "default-features": false, - "features": [ - "s3" - ] - } - ] - }, - "translate": { - "description": "C++ SDK for the AWS translate service" - }, - "verifiedpermissions": { - "description": "C++ SDK for the AWS verifiedpermissions service" - }, - "voice-id": { - "description": "C++ SDK for the AWS voice-id service" - }, - "vpc-lattice": { - "description": "C++ SDK for the AWS vpc-lattice service" - }, - "waf": { - "description": "C++ SDK for the AWS waf service" - }, - "waf-regional": { - "description": "C++ SDK for the AWS waf-regional service" - }, - "wafv2": { - "description": "C++ SDK for the AWS wafv2 service" - }, - "wellarchitected": { - "description": "C++ SDK for the AWS wellarchitected service" - }, - "wisdom": { - "description": "C++ SDK for the AWS wisdom service" - }, - "workdocs": { - "description": "C++ SDK for the AWS workdocs service" - }, - "worklink": { - "description": "C++ SDK for the AWS worklink service" - }, - "workmail": { - "description": "C++ SDK for the AWS workmail service" - }, - "workmailmessageflow": { - "description": "C++ SDK for the AWS workmailmessageflow service" - }, - "workspaces": { - "description": "C++ SDK for the AWS workspaces service" - }, - "workspaces-web": { - "description": "C++ SDK for the AWS workspaces-web service" - }, - "xray": { - "description": "C++ SDK for the AWS xray service" - } - } -} diff --git a/vcpkg.json b/vcpkg.json index d9307588698..1a1ef1e66e8 100644 --- a/vcpkg.json +++ b/vcpkg.json @@ -70,7 +70,7 @@ "dependencies": [ { "name": "aws-sdk-cpp", - "version>=": "1.11.160", + "version>=": "1.8.84", "features": ["s3", "identity-management", "sts"], "default-features": false }