aboutsummaryrefslogtreecommitdiff
path: root/ports/aws-c-common
diff options
context:
space:
mode:
Diffstat (limited to 'ports/aws-c-common')
-rw-r--r--ports/aws-c-common/CONTROL3
-rw-r--r--ports/aws-c-common/portfile.cmake34
2 files changed, 37 insertions, 0 deletions
diff --git a/ports/aws-c-common/CONTROL b/ports/aws-c-common/CONTROL
new file mode 100644
index 000000000..702ff2aa3
--- /dev/null
+++ b/ports/aws-c-common/CONTROL
@@ -0,0 +1,3 @@
+Source: aws-c-common
+Version: 0.3.0
+Description: AWS common library for C \ No newline at end of file
diff --git a/ports/aws-c-common/portfile.cmake b/ports/aws-c-common/portfile.cmake
new file mode 100644
index 000000000..681964791
--- /dev/null
+++ b/ports/aws-c-common/portfile.cmake
@@ -0,0 +1,34 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO awslabs/aws-c-common
+ REF v0.3.0
+ SHA512 604b4289f19be662f15dc5ba80c20b78856975332b485796f979580e45f8d778eb8ce0cc2c02dcbaf27bc1159f473e02676cd951b674b7c8478ed26438a04541
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/aws-c-common/cmake)
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share/cmake)
+
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug/include
+ ${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-common
+ ${CURRENT_PACKAGES_DIR}/lib/aws-c-common
+ )
+
+vcpkg_copy_pdbs()
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/aws-c-common RENAME copyright)
+
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug/share
+) \ No newline at end of file