early-access version 2853
This commit is contained in:
28
externals/vcpkg/ports/aws-c-mqtt/fix-cmake-target-path.patch
vendored
Executable file
28
externals/vcpkg/ports/aws-c-mqtt/fix-cmake-target-path.patch
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 3d80abb..36c027f 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -94,7 +94,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-mqtt-config.cmake b/cmake/aws-c-mqtt-config.cmake
|
||||
index 4a4dcbb..2ad48d2 100644
|
||||
--- a/cmake/aws-c-mqtt-config.cmake
|
||||
+++ b/cmake/aws-c-mqtt-config.cmake
|
||||
@@ -6,9 +6,5 @@ if (@MQTT_WITH_WEBSOCKETS@)
|
||||
find_dependency(aws-c-http)
|
||||
endif()
|
||||
|
||||
-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)
|
||||
|
39
externals/vcpkg/ports/aws-c-mqtt/portfile.cmake
vendored
Executable file
39
externals/vcpkg/ports/aws-c-mqtt/portfile.cmake
vendored
Executable file
@@ -0,0 +1,39 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO awslabs/aws-c-mqtt
|
||||
REF 0a70bf814845e487b7e4862af7ad9e4a1199b5f4 # v0.7.6
|
||||
SHA512 9c8719004e9e4c56f270c5c5dcb41b5ecacb050dadf2a548ab2119a1a8f223c9117829346e2e86c8c77f6efe3502019085344fe4f470ccdd646dc87a3d4f4c3f
|
||||
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" # use extra cmake files
|
||||
-DBUILD_TESTING=FALSE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-mqtt/cmake)
|
||||
|
||||
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-c-mqtt"
|
||||
"${CURRENT_PACKAGES_DIR}/lib/aws-c-mqtt"
|
||||
)
|
||||
|
||||
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)
|
25
externals/vcpkg/ports/aws-c-mqtt/vcpkg.json
vendored
Executable file
25
externals/vcpkg/ports/aws-c-mqtt/vcpkg.json
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "aws-c-mqtt",
|
||||
"version": "0.7.6",
|
||||
"port-version": 3,
|
||||
"description": "C99 implementation of the MQTT 3.1.1 specification.",
|
||||
"homepage": "https://github.com/awslabs/aws-c-mqtt",
|
||||
"supports": "!(windows & arm) & !uwp",
|
||||
"dependencies": [
|
||||
"aws-c-common",
|
||||
"aws-c-http",
|
||||
"aws-c-io",
|
||||
{
|
||||
"name": "s2n",
|
||||
"platform": "!uwp & !windows"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user