[librabbitmq] add ssl feature (#48494)

This commit is contained in:
Nick D'Ademo
2025-12-02 07:07:16 +08:00
committed by GitHub
parent cc57d20c56
commit f9159ede5d
4 changed files with 23 additions and 4 deletions

View File

@@ -1,18 +1,24 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO alanxz/rabbitmq-c
REF "v${VERSION}"
REF "v${VERSION}"
SHA512 62b4e92fc270c5bdc5343cfaef5245e29a9b6d8983071a47391a93ae1b766ed7b98a6a546e8528befbc284f5ed17da4647595e94341380bfa76598569191e6c0
HEAD_REF master
PATCHES
fix-uwpwarning.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
ssl ENABLE_SSL_SUPPORT
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=OFF
-DBUILD_TOOLS=OFF

View File

@@ -1,11 +1,11 @@
{
"name": "librabbitmq",
"version": "0.15.0",
"port-version": 1,
"description": "A C-language AMQP client library for use with v2.0+ of the RabbitMQ broker.",
"homepage": "https://github.com/alanxz/rabbitmq-c",
"license": "MIT",
"dependencies": [
"openssl",
{
"name": "vcpkg-cmake",
"host": true
@@ -14,5 +14,13 @@
"name": "vcpkg-cmake-config",
"host": true
}
]
],
"features": {
"ssl": {
"description": "Enable SSL support",
"dependencies": [
"openssl"
]
}
}
}

View File

@@ -5390,7 +5390,7 @@
},
"librabbitmq": {
"baseline": "0.15.0",
"port-version": 0
"port-version": 1
},
"libraqm": {
"baseline": "0.10.3",

View File

@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2092b884f8383c35993d4f8cc034ff642dc3c54c",
"version": "0.15.0",
"port-version": 1
},
{
"git-tree": "791dbdb18f26a62c3245d8de25ff1c8291fb4074",
"version": "0.15.0",