diff options
Diffstat (limited to 'vcpkg/ports/benchmark')
| -rw-r--r-- | vcpkg/ports/benchmark/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/benchmark/vcpkg.json | 19 |
2 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/benchmark/portfile.cmake b/vcpkg/ports/benchmark/portfile.cmake new file mode 100644 index 0000000..65bd375 --- /dev/null +++ b/vcpkg/ports/benchmark/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO google/benchmark + REF "v${VERSION}" + SHA512 f9031f144a7deeed151d22676b50384c03e5bbd19b68dac9471e91e49c408b770158c5c325f58e6ac07437955fdab3f08aeee76ba7ca5f97d2b51f14f6782416 + HEAD_REF main +) + +vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DBENCHMARK_ENABLE_TESTING=OFF + -DBENCHMARK_INSTALL_DOCS=OFF + -DBENCHMARK_ENABLE_WERROR=OFF + -Werror=old-style-cast +) + +vcpkg_cmake_install() +vcpkg_copy_pdbs() + +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/benchmark) + +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +# Handle copyright +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/benchmark/vcpkg.json b/vcpkg/ports/benchmark/vcpkg.json new file mode 100644 index 0000000..0da38c7 --- /dev/null +++ b/vcpkg/ports/benchmark/vcpkg.json @@ -0,0 +1,19 @@ +{ + "$comment": "https://github.com/google/benchmark/issues/661 describes the missing UWP support upstream", + "name": "benchmark", + "version-semver": "1.9.4", + "description": "A library to benchmark code snippets, similar to unit tests.", + "homepage": "https://github.com/google/benchmark", + "license": "Apache-2.0", + "supports": "!uwp", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |