2020-11-18 06:37:14 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/libprotobuf-mutator
|
2023-06-22 13:16:23 +08:00
|
|
|
REF "v${VERSION}"
|
2024-06-22 04:39:50 +08:00
|
|
|
SHA512 9c752cf2bdbf9228ba5a7c1e7a552ea7e12bda226ad8268e4cb9f135a79aee9c3ff0c1f2dfebe5d011282835a63d3b9cf3b3f642f02a3e00bb0b5eee9580a3dd
|
2020-11-18 06:37:14 +08:00
|
|
|
HEAD_REF master
|
2024-06-22 04:39:50 +08:00
|
|
|
PATCHES
|
|
|
|
protobuf-cmake.patch
|
2020-11-18 06:37:14 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_RUNTIME)
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-11-18 06:37:14 +08:00
|
|
|
OPTIONS
|
|
|
|
-DLIB_PROTO_MUTATOR_TESTING=OFF
|
|
|
|
-DLIB_PROTO_MUTATOR_MSVC_STATIC_RUNTIME=${STATIC_RUNTIME}
|
|
|
|
-DPKG_CONFIG_PATH=lib/pkgconfig
|
2024-06-22 04:39:50 +08:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
LIB_PROTO_MUTATOR_MSVC_STATIC_RUNTIME
|
2020-11-18 06:37:14 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-11-18 06:37:14 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2020-11-18 06:37:14 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-06-22 04:39:50 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|