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-02-25 05:50:27 +08:00
|
|
|
REF 9fa05100f43686f617722aaba7a500cd54b9804a #v4.3.11
|
|
|
|
SHA512 f4d311d3f430579deb0ff9d820d9c6160dce775622afe28731ed4e6abd6b827bf20afb5bdf52d246d0fb5afc469005cc34469f57063e197375b6be8ed93afe8b
|
2019-01-27 02:28:29 +02:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
find-openssl.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
|
|
|
set(LINUX_TCP ON)
|
|
|
|
else()
|
|
|
|
set(LINUX_TCP OFF)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DAMQP-CPP_BUILD_SHARED=OFF
|
|
|
|
-DAMQP-CPP_LINUX_TCP=${LINUX_TCP}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
|
|
|
|
2020-06-03 13:49:40 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
2019-01-27 02:28:29 +02:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|