diff options
Diffstat (limited to 'vcpkg/ports/protopuf')
| -rw-r--r-- | vcpkg/ports/protopuf/portfile.cmake | 21 | ||||
| -rw-r--r-- | vcpkg/ports/protopuf/vcpkg.json | 17 |
2 files changed, 38 insertions, 0 deletions
diff --git a/vcpkg/ports/protopuf/portfile.cmake b/vcpkg/ports/protopuf/portfile.cmake new file mode 100644 index 0000000..fefb1a0 --- /dev/null +++ b/vcpkg/ports/protopuf/portfile.cmake @@ -0,0 +1,21 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO PragmaTwice/protopuf + REF "v${VERSION}" + SHA512 927fc531a72b34877c7b2dd171e2e873783ebb8a67567a9cca28ed258d8dca89695866b84bc64d71a18d38ba317a1e56f9cbdbbc83103892edff0da517006831 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTS=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/protopuf/vcpkg.json b/vcpkg/ports/protopuf/vcpkg.json new file mode 100644 index 0000000..67b4580 --- /dev/null +++ b/vcpkg/ports/protopuf/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "protopuf", + "version": "3.1.0", + "description": "A little, highly templated, and protobuf-compatible serialization/deserialization library written in C++20", + "homepage": "https://github.com/PragmaTwice/protopuf", + "license": "Apache-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |