2019-05-22 12:00:24 +08:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2019-05-03 13:57:43 +08:00
|
|
|
|
2017-11-19 02:00:58 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO apache/qpid-proton
|
2022-04-20 00:04:57 +08:00
|
|
|
REF fee5e94afb83b92ffa60a6f815d5102a67915166 # 0.37.0
|
|
|
|
SHA512 e9fbd02444dd073908186e6873b4e230e0a5971929e9b1a49758240d166f6da4e6c88d701c66d5e5539bea0beca380c763bffcef5b0e1ed5f9fc2691f5f86559
|
2017-11-19 02:00:58 +08:00
|
|
|
HEAD_REF next
|
2022-04-22 00:06:18 +08:00
|
|
|
PATCHES fix-dependencies.patch
|
2017-11-19 02:00:58 +08:00
|
|
|
)
|
|
|
|
|
2022-04-22 00:06:18 +08:00
|
|
|
file(REMOVE "${SOURCE_PATH}/tools/cmake/Modules/FindPython.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/tools/cmake/Modules/FindOpenSSL.cmake")
|
|
|
|
file(REMOVE "${SOURCE_PATH}/tools/cmake/Modules/FindJsonCpp.cmake")
|
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
|
|
|
2021-11-05 01:40:39 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-04-22 00:06:18 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE # It may cause call CHECK_LIBRARY_EXISTS before call project to set the language
|
2019-05-22 12:00:24 +08:00
|
|
|
OPTIONS
|
2020-01-07 06:55:43 +08:00
|
|
|
-DBUILD_GO=no
|
2019-05-22 12:00:24 +08:00
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_CyrusSASL=ON
|
2022-04-14 23:25:29 +08:00
|
|
|
-DENABLE_JSONCPP=ON
|
|
|
|
-DENABLE_LINKTIME_OPTIMIZATION=OFF
|
|
|
|
-DLIB_SUFFIX=
|
2022-04-20 00:04:57 +08:00
|
|
|
-DENABLE_WARNING_ERROR=OFF
|
|
|
|
-DENABLE_BENCHMARKS=OFF
|
|
|
|
-DENABLE_FUZZ_TESTING=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
2022-04-22 00:06:18 +08:00
|
|
|
-DPython_EXECUTABLE=${PYTHON3}
|
2019-05-03 13:57:43 +08:00
|
|
|
)
|
2017-11-19 02:00:58 +08:00
|
|
|
|
2021-11-05 01:40:39 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-11-19 02:00:58 +08:00
|
|
|
|
2022-04-22 00:06:18 +08:00
|
|
|
# qpid-proton installs tests into share/proton; this is not desireable
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/proton")
|
|
|
|
|
2017-11-19 02:00:58 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-04-22 00:06:18 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
PACKAGE_NAME Proton
|
|
|
|
CONFIG_PATH lib/cmake/Proton
|
|
|
|
DO_NOT_DELETE_PARENT_CONFIG_PATH
|
|
|
|
)
|
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
PACKAGE_NAME ProtonCpp
|
|
|
|
CONFIG_PATH lib/cmake/ProtonCpp
|
2022-03-17 08:59:24 +08:00
|
|
|
)
|
2021-11-05 01:40:39 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-11-19 02:00:58 +08:00
|
|
|
|
2021-11-05 01:40:39 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/proton/version.h" "#define PN_INSTALL_PREFIX \"${CURRENT_PACKAGES_DIR}\"" "")
|
2022-04-22 00:06:18 +08:00
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
|
|
|
RENAME copyright
|
|
|
|
)
|