diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/aws-c-sdkutils | |
Diffstat (limited to 'vcpkg/ports/aws-c-sdkutils')
| -rw-r--r-- | vcpkg/ports/aws-c-sdkutils/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/aws-c-sdkutils/vcpkg.json | 18 |
2 files changed, 50 insertions, 0 deletions
diff --git a/vcpkg/ports/aws-c-sdkutils/portfile.cmake b/vcpkg/ports/aws-c-sdkutils/portfile.cmake new file mode 100644 index 0000000..60fa4c6 --- /dev/null +++ b/vcpkg/ports/aws-c-sdkutils/portfile.cmake @@ -0,0 +1,32 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO awslabs/aws-c-sdkutils
+ REF "v${VERSION}"
+ SHA512 4c25a92495d056145c69023922b41a8ec80660171d4b6cbbcc029f63a93e4d57868121b8baca10cb671d275a49ab6d977746871f671bc913f5eee2f960937bc4
+ 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/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-c-sdkutils/vcpkg.json b/vcpkg/ports/aws-c-sdkutils/vcpkg.json new file mode 100644 index 0000000..442a140 --- /dev/null +++ b/vcpkg/ports/aws-c-sdkutils/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "aws-c-sdkutils", + "version": "0.2.4", + "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", + "dependencies": [ + "aws-c-common", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |