2018-08-03 10:47:57 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libcheck/check
|
2022-04-29 07:01:47 +08:00
|
|
|
REF 11970a7e112dfe243a2e68773f014687df2900e8 # 0.15.2
|
2020-09-28 08:54:12 +08:00
|
|
|
SHA512 210c9617fa1c1ce16bef983b0e6cb587b1774c3f7ce27a53ca7799642dc7a14be8de567d69dc0e57845684c6f7991d772c73654f63c8755afda3b37a35c7156e
|
2018-08-03 10:47:57 +08:00
|
|
|
HEAD_REF master
|
2023-10-25 00:09:15 +08:00
|
|
|
PATCHES
|
|
|
|
fix-lib-path.patch
|
|
|
|
linkage.patch
|
2018-08-03 10:47:57 +08:00
|
|
|
)
|
|
|
|
|
2022-04-29 07:01:47 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DCHECK_ENABLE_GCOV=OFF
|
2023-10-25 00:09:15 +08:00
|
|
|
-DCHECK_ENABLE_TESTS=OFF
|
2022-04-29 07:01:47 +08:00
|
|
|
-DCHECK_ENABLE_TIMEOUT_TESTS=OFF
|
2023-10-25 00:09:15 +08:00
|
|
|
-DENABLE_MEMORY_LEAKING_TESTS=OFF
|
|
|
|
-DINSTALL_CHECKMK=OFF
|
2018-08-03 10:47:57 +08:00
|
|
|
)
|
|
|
|
|
2022-04-29 07:01:47 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-01-07 03:10:10 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2023-10-25 00:09:15 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/check)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-01-07 03:10:10 +08:00
|
|
|
|
2023-10-25 00:09:15 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" AND VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/check.h" "#define CK_DLL_EXP" "#define CK_DLL_EXP __declspec(dllimport)")
|
2019-10-25 06:49:23 +08:00
|
|
|
endif()
|
2018-08-03 10:47:57 +08:00
|
|
|
|
2022-04-29 07:01:47 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/man")
|
2018-08-03 10:47:57 +08:00
|
|
|
|
2023-10-25 00:09:15 +08:00
|
|
|
file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING.LESSER")
|