[cpp-client-telemetry] Add new port (version 3.10.161.1) (#52316)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
bmehta001 2026-06-12 17:02:21 -05:00 committed by GitHub
parent 4c39954218
commit 22b8d09994
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,50 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO microsoft/cpp_client_telemetry
REF v3.10.161.1
SHA512 4664b34ddce601d6a95669df4a59d11a6cc67de1f23de132192f791a275edc6a10b8498d340e6cf7d120d9e7a22c494d7517b24fc0954bf9e236e84a8800589a
HEAD_REF main
)
# Determine if Apple HTTP should be used (no curl needed).
# Note: BUILD_APPLE_HTTP must remain ON for macOS/iOS because the vcpkg.json
# curl dependency is excluded on these platforms.
set(MATSDK_BUILD_APPLE_HTTP OFF)
if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS)
set(MATSDK_BUILD_APPLE_HTTP ON)
endif()
# iOS build options
set(MATSDK_BUILD_IOS OFF)
if(VCPKG_TARGET_IS_IOS)
set(MATSDK_BUILD_IOS ON)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DMATSDK_USE_VCPKG_DEPS=ON
-DBUILD_HEADERS=ON
-DBUILD_LIBRARY=ON
-DBUILD_TEST_TOOL=OFF
-DBUILD_UNIT_TESTS=OFF
-DBUILD_FUNC_TESTS=OFF
-DBUILD_JNI_WRAPPER=OFF
-DBUILD_OBJC_WRAPPER=OFF
-DBUILD_SWIFT_WRAPPER=OFF
-DBUILD_PACKAGE=OFF
-DBUILD_VERSION=${VERSION}
-DBUILD_APPLE_HTTP=${MATSDK_BUILD_APPLE_HTTP}
-DBUILD_IOS=${MATSDK_BUILD_IOS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME MSTelemetry CONFIG_PATH lib/cmake/MSTelemetry)
# Remove duplicate headers and empty dirs
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
# Install license
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -0,0 +1,29 @@
{
"name": "cpp-client-telemetry",
"version": "3.10.161.1",
"description": "Microsoft 1DS C/C++ Client Telemetry Library",
"homepage": "https://github.com/microsoft/cpp_client_telemetry",
"license": "Apache-2.0",
"supports": "((windows & !mingw) | linux | osx | ios | android) & !uwp",
"dependencies": [
{
"name": "curl",
"default-features": false,
"features": [
"openssl"
],
"platform": "linux | android"
},
"nlohmann-json",
"sqlite3",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"zlib"
]
}

View File

@ -2024,6 +2024,10 @@
"baseline": "1.3.1",
"port-version": 0
},
"cpp-client-telemetry": {
"baseline": "3.10.161.1",
"port-version": 0
},
"cpp-exiftool": {
"baseline": "1.8.0",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "60794b6b59508f46c4b8f48a95015412f7d60857",
"version": "3.10.161.1",
"port-version": 0
}
]
}