early-access version 2853
This commit is contained in:
16
externals/vcpkg/ports/amqpcpp/find-openssl.patch
vendored
Executable file
16
externals/vcpkg/ports/amqpcpp/find-openssl.patch
vendored
Executable file
@@ -0,0 +1,16 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 645bb32..3ef5c4b 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -89,6 +89,11 @@ else()
|
||||
add_library(${PROJECT_NAME} STATIC ${src_MAIN} ${src_LINUX_TCP})
|
||||
endif()
|
||||
|
||||
+if(AMQP-CPP_LINUX_TCP)
|
||||
+ find_path(OPENSSL_INCLUDE_DIR openssl/ssl.h)
|
||||
+ include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
+endif()
|
||||
+
|
||||
# install rules
|
||||
# ------------------------------------------------------------------------------------------------------
|
||||
|
||||
33
externals/vcpkg/ports/amqpcpp/portfile.cmake
vendored
Executable file
33
externals/vcpkg/ports/amqpcpp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,33 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO CopernicaMarketingSoftware/AMQP-CPP
|
||||
REF b891cc37a6ff63fcff59a112de281f5964344c91 #v4.3.15
|
||||
SHA512 5c55285e2445752669bfe51a276c3c9cb294eeae74e05124fa7427737e43419493b8a8e199bedba9ab7fba5822a8da530ca442afdbe45d12c2c0c54f9fd59a0c
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
find-openssl.patch
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_LINUX)
|
||||
set(LINUX_TCP ON)
|
||||
else()
|
||||
set(LINUX_TCP OFF)
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DAMQP-CPP_BUILD_SHARED=OFF
|
||||
-DAMQP-CPP_LINUX_TCP=${LINUX_TCP}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
19
externals/vcpkg/ports/amqpcpp/vcpkg.json
vendored
Executable file
19
externals/vcpkg/ports/amqpcpp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "amqpcpp",
|
||||
"version": "4.3.15",
|
||||
"port-version": 1,
|
||||
"description": "AMQP-CPP is a C++ library for communicating with a RabbitMQ message broker",
|
||||
"homepage": "https://github.com/CopernicaMarketingSoftware/AMQP-CPP",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"openssl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user