diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libprotobuf-mutator | |
Diffstat (limited to 'vcpkg/ports/libprotobuf-mutator')
| -rw-r--r-- | vcpkg/ports/libprotobuf-mutator/portfile.cmake | 31 | ||||
| -rw-r--r-- | vcpkg/ports/libprotobuf-mutator/vcpkg.json | 18 |
2 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/libprotobuf-mutator/portfile.cmake b/vcpkg/ports/libprotobuf-mutator/portfile.cmake new file mode 100644 index 0000000..e979b55 --- /dev/null +++ b/vcpkg/ports/libprotobuf-mutator/portfile.cmake @@ -0,0 +1,31 @@ +if(VCPKG_TARGET_IS_WINDOWS) + vcpkg_check_linkage(ONLY_STATIC_LIBRARY) +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO google/libprotobuf-mutator + REF "v${VERSION}" + SHA512 2fb374ff32c52aaf15ebff26e8fe11fc3ca1ef411da74bb6212ed5acaf20ae48e388b2b26d5c6786b85058ea7cd65e5ad5c55ea18916c1a701add34c6e62ebfe + HEAD_REF master +) + +string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_RUNTIME) +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DCMAKE_CXX_STANDARD=17 + -DLIB_PROTO_MUTATOR_TESTING=OFF + -DLIB_PROTO_MUTATOR_MSVC_STATIC_RUNTIME=${STATIC_RUNTIME} + -DPKG_CONFIG_PATH=lib/pkgconfig + MAYBE_UNUSED_VARIABLES + LIB_PROTO_MUTATOR_MSVC_STATIC_RUNTIME +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT}) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/libprotobuf-mutator/vcpkg.json b/vcpkg/ports/libprotobuf-mutator/vcpkg.json new file mode 100644 index 0000000..d750f4b --- /dev/null +++ b/vcpkg/ports/libprotobuf-mutator/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "libprotobuf-mutator", + "version": "1.5", + "description": "Library for structured fuzzing with protobuffers.", + "dependencies": [ + "liblzma", + "protobuf", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zlib" + ] +} |