early-access version 2853
This commit is contained in:
37
externals/vcpkg/ports/prometheus-cpp/portfile.cmake
vendored
Executable file
37
externals/vcpkg/ports/prometheus-cpp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,37 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO jupp0r/prometheus-cpp
|
||||
REF 76470b3ec024c8214e1f4253fb1f4c0b28d3df94 # v1.0.1
|
||||
SHA512 bf5e68d99b5b0251154337bac11703ad4e84e0dc1292ecb3b9cbe0573bf2c0acbb5e3e96a417b0712b85665ea7a54514837a04be762fba954014f600148fd35f
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_check_features(
|
||||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
compression ENABLE_COMPRESSION
|
||||
pull ENABLE_PULL
|
||||
push ENABLE_PUSH
|
||||
tests ENABLE_TESTING
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DUSE_THIRDPARTY_LIBRARIES=OFF # use vcpkg packages
|
||||
-DGENERATE_PKGCONFIG=OFF
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/prometheus-cpp")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Handle copyright
|
||||
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
46
externals/vcpkg/ports/prometheus-cpp/vcpkg.json
vendored
Executable file
46
externals/vcpkg/ports/prometheus-cpp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "prometheus-cpp",
|
||||
"version-semver": "1.0.1",
|
||||
"description": "Prometheus Client Library for Modern C++",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"compression",
|
||||
"pull"
|
||||
],
|
||||
"features": {
|
||||
"compression": {
|
||||
"description": "Enable zlib compression",
|
||||
"dependencies": [
|
||||
"zlib"
|
||||
]
|
||||
},
|
||||
"pull": {
|
||||
"description": "Support for regular pull mode",
|
||||
"dependencies": [
|
||||
"civetweb"
|
||||
]
|
||||
},
|
||||
"push": {
|
||||
"description": "Support push gateway",
|
||||
"dependencies": [
|
||||
"curl"
|
||||
]
|
||||
},
|
||||
"tests": {
|
||||
"description": "Additional testing support",
|
||||
"dependencies": [
|
||||
"gtest"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user