early-access version 2853
This commit is contained in:
58
externals/vcpkg/ports/opentelemetry-cpp/portfile.cmake
vendored
Executable file
58
externals/vcpkg/ports/opentelemetry-cpp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,58 @@
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
endif()
|
||||
|
||||
if ("etw" IN_LIST FEATURES)
|
||||
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "linux" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "OSX")
|
||||
message(FATAL_ERROR "Feature 'ewt' does not support 'linux & osx'")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO open-telemetry/opentelemetry-cpp
|
||||
REF v1.3.0
|
||||
SHA512 38f613c208ec847c8bf7765732d8198fcc427c293a929945d72c2f739e89d2a0ad36be4d94cc3c1b77fd7b1f1d1e5d8bdb38094a493ba3da3125281cd1016836
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
etw WITH_ETW
|
||||
zipkin WITH_ZIPKIN
|
||||
prometheus WITH_PROMETHEUS
|
||||
elasticsearch WITH_ELASTICSEARCH
|
||||
jaeger WITH_JAEGER
|
||||
otlp WITH_OTLP
|
||||
zpages WITH_ZPAGES
|
||||
)
|
||||
|
||||
# opentelemetry-proto is a third party submodule and opentelemetry-cpp release did not pack it.
|
||||
if(WITH_OTLP)
|
||||
set(OTEL_PROTO_VERSION "0.11.0")
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://github.com/open-telemetry/opentelemetry-proto/archive/v${OTEL_PROTO_VERSION}.tar.gz"
|
||||
FILENAME "opentelemetry-proto-${OTEL_PROTO_VERSION}.tar.gz"
|
||||
SHA512 ff6c207fe9cc2b6a344439ab5323b3225cf532358d52caf0afee27d9b4cd89195f6da6b6e383fe94de52f60c772df8b477c1ea943db67a217063c71587b7bb92
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive(${ARCHIVE} ${SOURCE_PATH}/third_party)
|
||||
file(REMOVE_RECURSE ${SOURCE_PATH}/third_party/opentelemetry-proto)
|
||||
file(RENAME ${SOURCE_PATH}/third_party/opentelemetry-proto-${OTEL_PROTO_VERSION} ${SOURCE_PATH}/third_party/opentelemetry-proto)
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_TESTING=OFF
|
||||
-DWITH_EXAMPLES=OFF
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
57
externals/vcpkg/ports/opentelemetry-cpp/vcpkg.json
vendored
Executable file
57
externals/vcpkg/ports/opentelemetry-cpp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
|
||||
"name": "opentelemetry-cpp",
|
||||
"version-semver": "1.3.0",
|
||||
"description": [
|
||||
"OpenTelemetry is a collection of tools, APIs, and SDKs.",
|
||||
"You use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) for analysis in order to understand your software's performance and behavior."
|
||||
],
|
||||
"homepage": "https://github.com/open-telemetry/opentelemetry-cpp",
|
||||
"license": "Apache-2.0",
|
||||
"supports": "!(windows & !static)",
|
||||
"dependencies": [
|
||||
"curl",
|
||||
"nlohmann-json",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"elasticsearch": {
|
||||
"description": "Whether to include the Elasticsearch Client in the SDK"
|
||||
},
|
||||
"etw": {
|
||||
"description": "Whether to include the ETW Exporter in the SDK"
|
||||
},
|
||||
"jaeger": {
|
||||
"description": "Whether to include the Jaeger exporter",
|
||||
"dependencies": [
|
||||
"thrift"
|
||||
]
|
||||
},
|
||||
"otlp": {
|
||||
"description": "Whether to include the OpenTelemetry Protocol in the SDK",
|
||||
"dependencies": [
|
||||
"grpc",
|
||||
"protobuf"
|
||||
]
|
||||
},
|
||||
"prometheus": {
|
||||
"description": "Whether to include the Prometheus Client in the SDK",
|
||||
"dependencies": [
|
||||
"prometheus-cpp"
|
||||
]
|
||||
},
|
||||
"zipkin": {
|
||||
"description": "Whether to include the Zipkin exporter in the SDK"
|
||||
},
|
||||
"zpages": {
|
||||
"description": "Whether to include the Zpages Server in the SDK"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user