2019-01-27 08:28:29 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO CopernicaMarketingSoftware/AMQP-CPP
|
2023-02-21 23:54:21 +08:00
|
|
|
REF "v${VERSION}"
|
2024-03-29 03:38:39 +08:00
|
|
|
SHA512 0fb280bfea6dc665d44efa7321a4b69c130a5f0b10be7ada7909e00ec8a3ca0b98125bd96475386f1b3627bac9f8e5c9bbd71b462868b46919737da32e021cb4
|
2019-01-27 08:28:29 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
find-openssl.patch
|
2023-05-16 04:37:11 +08:00
|
|
|
fix-max_min_macros.patch
|
2019-01-27 08:28:29 +08:00
|
|
|
)
|
|
|
|
|
2021-09-17 01:50:15 +08:00
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
2019-01-27 08:28:29 +08:00
|
|
|
set(LINUX_TCP ON)
|
|
|
|
else()
|
|
|
|
set(LINUX_TCP OFF)
|
|
|
|
endif()
|
|
|
|
|
2021-09-17 01:50:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-02-21 23:54:21 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-27 08:28:29 +08:00
|
|
|
OPTIONS
|
|
|
|
-DAMQP-CPP_BUILD_SHARED=OFF
|
|
|
|
-DAMQP-CPP_LINUX_TCP=${LINUX_TCP}
|
|
|
|
)
|
|
|
|
|
2021-09-17 01:50:15 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
2019-01-27 08:28:29 +08:00
|
|
|
|
2021-09-17 01:50:15 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2023-02-21 23:54:21 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|