2020-06-03 13:49:40 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "UWP")
|
2019-01-27 02:28:29 +02:00
|
|
|
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO CopernicaMarketingSoftware/AMQP-CPP
|
2021-09-16 10:50:15 -07:00
|
|
|
REF 2749d36a9cf9def86fc8a30eceb0e3a11d85815d #v4.3.14
|
|
|
|
SHA512 ee6df360963bb5714c7503e27a9ed0682d704a267ef615fa922bd1cb637d1c0867c9074d5aeef084621840ef39f495a4103f22bfd80b6b1dd325bc6061e9c2ca
|
2019-01-27 02:28:29 +02:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
find-openssl.patch
|
|
|
|
)
|
|
|
|
|
2021-09-16 10:50:15 -07:00
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
2019-01-27 02:28:29 +02:00
|
|
|
set(LINUX_TCP ON)
|
|
|
|
else()
|
|
|
|
set(LINUX_TCP OFF)
|
|
|
|
endif()
|
|
|
|
|
2021-09-16 10:50:15 -07:00
|
|
|
vcpkg_cmake_configure(
|
2019-01-27 02:28:29 +02:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DAMQP-CPP_BUILD_SHARED=OFF
|
|
|
|
-DAMQP-CPP_LINUX_TCP=${LINUX_TCP}
|
|
|
|
)
|
|
|
|
|
2021-09-16 10:50:15 -07:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
2019-01-27 02:28:29 +02:00
|
|
|
|
2021-09-16 10:50:15 -07: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 00:19:28 +02:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|