aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/aws-crt-cpp
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/aws-crt-cpp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/aws-crt-cpp')
-rw-r--r--vcpkg/ports/aws-crt-cpp/no-werror.patch15
-rw-r--r--vcpkg/ports/aws-crt-cpp/portfile.cmake38
-rw-r--r--vcpkg/ports/aws-crt-cpp/vcpkg.json31
3 files changed, 84 insertions, 0 deletions
diff --git a/vcpkg/ports/aws-crt-cpp/no-werror.patch b/vcpkg/ports/aws-crt-cpp/no-werror.patch
new file mode 100644
index 0000000..27b7c8f
--- /dev/null
+++ b/vcpkg/ports/aws-crt-cpp/no-werror.patch
@@ -0,0 +1,15 @@
+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/vcpkg/ports/aws-crt-cpp/portfile.cmake b/vcpkg/ports/aws-crt-cpp/portfile.cmake
new file mode 100644
index 0000000..d4532ca
--- /dev/null
+++ b/vcpkg/ports/aws-crt-cpp/portfile.cmake
@@ -0,0 +1,38 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO awslabs/aws-crt-cpp
+ REF "v${VERSION}"
+ SHA512 14a4aef4f8d1084ec352bb252c7b1a84263288bdcb6e1fa18bf54f218e3900fb46ce1e4d231f467c2f3e8b7749ea3a30c83bc1393a3a6cb24b851a7b35f07a43
+ 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/cmake/${PORT}/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH)
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+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/vcpkg/ports/aws-crt-cpp/vcpkg.json b/vcpkg/ports/aws-crt-cpp/vcpkg.json
new file mode 100644
index 0000000..46bbb8a
--- /dev/null
+++ b/vcpkg/ports/aws-crt-cpp/vcpkg.json
@@ -0,0 +1,31 @@
+{
+ "name": "aws-crt-cpp",
+ "version": "0.35.1",
+ "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",
+ "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
+ }
+ ]
+}