early-access version 2853
This commit is contained in:
28
externals/vcpkg/ports/aws-c-event-stream/fix-cmake-target-path.patch
vendored
Executable file
28
externals/vcpkg/ports/aws-c-event-stream/fix-cmake-target-path.patch
vendored
Executable file
@@ -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)
|
||||
|
32
externals/vcpkg/ports/aws-c-event-stream/portfile.cmake
vendored
Executable file
32
externals/vcpkg/ports/aws-c-event-stream/portfile.cmake
vendored
Executable file
@@ -0,0 +1,32 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO awslabs/aws-c-event-stream
|
||||
REF e87537be561d753ec82e783bc0929b1979c585f8 # v0.2.7
|
||||
SHA512 651b05ba6d87ad8f65f6cf7e8940b7ea500722848f3e65c2de0bf84d2e6321d0aa1631d4f64a78cf5ed5ed5adac6805a4e91e5c31b3ae86e8c37afb38da4c786
|
||||
HEAD_REF master
|
||||
PATCHES fix-cmake-target-path.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
"-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common"
|
||||
-DBUILD_TESTING=FALSE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
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/aws-c-event-stream"
|
||||
"${CURRENT_PACKAGES_DIR}/lib/aws-c-event-stream"
|
||||
)
|
||||
|
||||
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)
|
22
externals/vcpkg/ports/aws-c-event-stream/vcpkg.json
vendored
Executable file
22
externals/vcpkg/ports/aws-c-event-stream/vcpkg.json
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "aws-c-event-stream",
|
||||
"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",
|
||||
"supports": "!(windows & arm) & !uwp",
|
||||
"dependencies": [
|
||||
"aws-c-cal",
|
||||
"aws-c-common",
|
||||
"aws-c-io",
|
||||
"aws-checksums",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user