aboutsummaryrefslogtreecommitdiff
path: root/ports/aws-crt-cpp/portfile.cmake
diff options
context:
space:
mode:
authorCharles-Auguste Marois <cmarois@coveo.com>2021-09-14 22:06:34 -0400
committerGitHub <noreply@github.com>2021-09-14 19:06:34 -0700
commit92af1ff59a651c1cf43aca48f54369a86d40d81c (patch)
treea99d6a37e9745f7fde680b47b15a8e3c1308211a /ports/aws-crt-cpp/portfile.cmake
parent5395ad9a4f29e5edef20cf20690089e9717f35f6 (diff)
downloadvcpkg-92af1ff59a651c1cf43aca48f54369a86d40d81c.tar.gz
vcpkg-92af1ff59a651c1cf43aca48f54369a86d40d81c.zip
[aws-sdk-cpp] update to 1.9.96 (#20033)
* [aws-c-common] Update to 0.6.9 * [aws-checksums] Update to 0.1.11 * [aws-c-event-stream] Upgrade to 0.2.7 * Add aws-c-cal port * Add s2n port * Add port aws-c-io * [aws-c-event-stream] Update port to 0.2.7 * Update aws-sdk-cpp port * Add aws-c-compression port * Add aws-c-auth port * Add aws-c-http port * Add aws-c-mqtt port * Add aws-c-s3 port * Add aws-crt-cpp port * [aws-sdk-cpp] Update port to 1.9.91 version * Fix port issues. * Upgrade aws-sdk-cpp to 1.9.96 Upgrade aws-crt-cpp to 0.15.1 * Support x64-windows * Fix format issues * Specify supported triplets for aws libs * Specify platforms for more aws libs * Support x64-windows-static triplet. * Fix format issue for aws-c-common * Update port versions file * Use new vcpkg cmake methods and format * Use new vcpkg cmake methods and format * update version * Fix s2n port typo * Fix s2n port typo Co-authored-by: Jonliu1993 <13720414433@163.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Diffstat (limited to 'ports/aws-crt-cpp/portfile.cmake')
-rw-r--r--ports/aws-crt-cpp/portfile.cmake48
1 files changed, 48 insertions, 0 deletions
diff --git a/ports/aws-crt-cpp/portfile.cmake b/ports/aws-crt-cpp/portfile.cmake
new file mode 100644
index 000000000..7dc30421a
--- /dev/null
+++ b/ports/aws-crt-cpp/portfile.cmake
@@ -0,0 +1,48 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO awslabs/aws-crt-cpp
+ REF 9ef58ff20df19e613c91c5f761e381c763da6810 # v0.15.1
+ SHA512 3409b3e6a546ed585b90180807383e8731b36b0db149b5ff92701a43164c4282b1cea4a551bf4c7b1edec7b264098575cf919faee8a2520bb10bbae62258d463
+ PATCHES
+ fix-cmake-target-path.patch
+)
+
+string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ PREFER_NINJA
+ OPTIONS
+ "-DSTATIC_CRT=${STATIC_CRT}"
+ "-DBUILD_DEPS=OFF"
+ "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-crt-cpp/cmake)
+
+vcpkg_copy_tools(
+ TOOL_NAMES elasticurl_cpp
+ AUTO_CLEAN
+)
+
+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/aws-crt-cpp"
+ "${CURRENT_PACKAGES_DIR}/lib/aws-crt-cpp"
+)
+
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)