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
|
2021-11-09 12:40:52 +08:00
|
|
|
REF b891cc37a6ff63fcff59a112de281f5964344c91 #v4.3.15
|
|
|
|
SHA512 5c55285e2445752669bfe51a276c3c9cb294eeae74e05124fa7427737e43419493b8a8e199bedba9ab7fba5822a8da530ca442afdbe45d12c2c0c54f9fd59a0c
|
2019-01-27 08:28:29 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
find-openssl.patch
|
|
|
|
)
|
|
|
|
|
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(
|
2019-01-27 08:28:29 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
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(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")
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|