[librabbitmq] Update to 0.11.0 (#23037)

* Update librabbitmq

* format manifest

* version

* add vcpkg_fixup_pkgconfig

* update version

* keep the pkgconfig file

* update version

Co-authored-by: Jonliu1993 <13720414433@163.com>
This commit is contained in:
Thomas1664 2022-02-14 21:53:12 +01:00 committed by GitHub
parent dacf423d72
commit 9e2629891a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 15 deletions

View File

@ -1,30 +1,32 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO alanxz/rabbitmq-c
REF d416b8b16d196085106cfe137a0ff6919a9f6752
SHA512 3fc137893fc18509a3e583cc8d40a8e91f219063237b9fd018a65cf14da188914ddba3a031c4bc033a886fed19fc6291d1b28b55458b9163eb6d20425b0474dc
REF v0.11.0
SHA512 0c3dbb6e2b862e9f25e3f76df798ea272bbd81de2865950b95adf1f1e5791eb20d7c9d5a76cb7d2fda54bad5f12bdf69cbfa7e9fd1afdede6f9ec729ca2287de
HEAD_REF master
PATCHES
fix-uwpwarning.patch
fix-uwpwarning.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTS=OFF
-DBUILD_TOOLS=OFF
)
vcpkg_install_cmake()
vcpkg_cmake_install()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/rabbitmq-c TARGET_PATH share/rabbitmq-c)
vcpkg_cmake_config_fixup(PACKAGE_NAME rabbitmq-c CONFIG_PATH lib/cmake/rabbitmq-c)
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
file(INSTALL ${SOURCE_PATH}/LICENSE-MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE-MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,10 +1,17 @@
{
"name": "librabbitmq",
"version-string": "2020-06-03",
"port-version": 1,
"version": "0.11.0",
"description": "A C-language AMQP client library for use with v2.0+ of the RabbitMQ broker.",
"homepage": "https://github.com/alanxz/rabbitmq-c",
"dependencies": [
"openssl"
"openssl",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -3849,8 +3849,8 @@
"port-version": 1
},
"librabbitmq": {
"baseline": "2020-06-03",
"port-version": 1
"baseline": "0.11.0",
"port-version": 0
},
"libraqm": {
"baseline": "0.9.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "cfed3947ffb960b8b8bd399093aa21f5981464b7",
"version": "0.11.0",
"port-version": 0
},
{
"git-tree": "002128f2677cfaa53843e36849ebcfef1f2c540e",
"version-string": "2020-06-03",