[azure-core-cpp] Update to 1.14.0 (#41321)

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Azure SDK Bot 2024-10-04 08:43:39 -07:00 committed by GitHub
parent c401516b95
commit 652a35c70a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
33 changed files with 191 additions and 16 deletions

View File

@ -5,8 +5,10 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/azure-sdk-for-cpp
REF "azure-core_${VERSION}"
SHA512 40af237726afe4f346d8bdd9c1dc4883ed6d71683e84ea2131c2b6558bf3d97312af4a9504a42c79d39612a927b8aabc0b4f6a0d0aede752ab1490abdc98bf72
SHA512 5d6c93fb5914c3ed1f9e31b37244e6a9e210467ed6887cb35ec31e8ca88119d734cbb80a6c48aef17e823062f5aa202ac7c2cf0139de5bda7b86668b13908150
HEAD_REF main
PATCHES
useragent.patch
)
vcpkg_check_features(

View File

@ -0,0 +1,30 @@
diff --git a/sdk/core/azure-core/inc/azure/core/internal/http/user_agent.hpp b/sdk/core/azure-core/inc/azure/core/internal/http/user_agent.hpp
index 46c182386..43feca858 100644
--- a/sdk/core/azure-core/inc/azure/core/internal/http/user_agent.hpp
+++ b/sdk/core/azure-core/inc/azure/core/internal/http/user_agent.hpp
@@ -11,6 +11,8 @@
#include <string>
namespace Azure { namespace Core { namespace Http { namespace _detail {
+ // NOTE: Treat Azure::Core::Http::_detail::UserAgentGenerator::GenerateUserAgent() as _internal -
+ // it is being/has been used by eventhubs.
class UserAgentGenerator {
public:
static std::string GenerateUserAgent(
@@ -18,5 +20,16 @@ namespace Azure { namespace Core { namespace Http { namespace _detail {
std::string const& componentVersion,
std::string const& applicationId,
long cplusplusValue);
+
+ [[deprecated("Use an overload with additional cplusplusValue parameter.")]] static std::string
+ GenerateUserAgent(
+ std::string const& componentName,
+ std::string const& componentVersion,
+ std::string const& applicationId)
+ {
+ // The value of -3L is to signify that an old version of signature has been used (older
+ // version of eventhubs); we can't rely on cpp version reported by it.
+ return GenerateUserAgent(componentName, componentVersion, applicationId, -3L);
+ }
};
}}}} // namespace Azure::Core::Http::_detail

View File

@ -4,7 +4,7 @@
"Please contribute your changes to https://github.com/Azure/azure-sdk-for-cpp."
],
"name": "azure-core-cpp",
"version-semver": "1.13.0",
"version-semver": "1.14.0",
"description": [
"Microsoft Azure Core SDK for C++",
"This library provides shared primitives, abstractions, and helpers for modern Azure SDK client libraries written in the C++."

View File

@ -7,6 +7,8 @@ vcpkg_from_github(
REF "azure-core-tracing-opentelemetry_${VERSION}"
SHA512 645c616fe54024f30a6e4b9c2626bfeaf906086be7bbeccc4a1155178670fb70d9818938db2f9fa8e3b9593ca45e0b10042dcd67fde04d2542f6f72a74884697
HEAD_REF main
PATCHES
useragent.patch
)
if(EXISTS "${SOURCE_PATH}/sdk/core/azure-core-tracing-opentelemetry")

View File

@ -0,0 +1,13 @@
diff --git a/sdk/core/azure-core-tracing-opentelemetry/CMakeLists.txt b/sdk/core/azure-core-tracing-opentelemetry/CMakeLists.txt
index 6d0dc1515..86381bb44 100644
--- a/sdk/core/azure-core-tracing-opentelemetry/CMakeLists.txt
+++ b/sdk/core/azure-core-tracing-opentelemetry/CMakeLists.txt
@@ -59,6 +59,8 @@ if (BUILD_AZURE_CORE_TRACING_OPENTELEMETRY)
$<INSTALL_INTERFACE:include>
)
+ target_compile_definitions(azure-core-tracing-opentelemetry PRIVATE _azure_BUILDING_SDK)
+
# make sure that users can consume the project as a library.
add_library(Azure::azure-core-tracing-opentelemetry ALIAS azure-core-tracing-opentelemetry)

View File

@ -5,7 +5,7 @@
],
"name": "azure-core-tracing-opentelemetry-cpp",
"version-semver": "1.0.0-beta.4",
"port-version": 3,
"port-version": 4,
"description": [
"Microsoft Azure Core Tracing OpenTelemetry SDK for C++",
"This library provides support for modern Azure SDK client libraries written in C++ to leverage OpenTelemetry APIs."

View File

@ -7,6 +7,8 @@ vcpkg_from_github(
REF "azure-messaging-eventhubs-checkpointstore-blob_${VERSION}"
SHA512 7c55eda0c04bbc57729a7b479d8d5874b0e06927aff1916833520a3a944e63b6fceabd3565fd91549ec00157f2c4af5a87a6a2db55a5c24df611cd96572f9a08
HEAD_REF main
PATCHES
useragent.patch
)
if(EXISTS "${SOURCE_PATH}/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob")

View File

@ -0,0 +1,12 @@
diff --git a/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/CMakeLists.txt b/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/CMakeLists.txt
index f776b3a94..c9bf65363 100644
--- a/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/CMakeLists.txt
+++ b/sdk/eventhubs/azure-messaging-eventhubs-checkpointstore-blob/CMakeLists.txt
@@ -69,6 +69,7 @@ add_library(
azure-messaging-eventhubs-checkpointstore-blob
${AZURE_MESSAGING_EVENTHUBS_BLOB_CHECKPOINT_HEADER} ${AZURE_MESSAGING_EVENTHUBS_BLOB_CHECKPOINT_SOURCE}
)
+target_compile_definitions(azure-messaging-eventhubs-checkpointstore-blob PRIVATE _azure_BUILDING_SDK)
create_per_service_target_build(eventhubs azure-messaging-eventhubs-checkpointstore-blob)
add_library(Azure::azure-messaging-eventhubs-checkpointstore-blob ALIAS azure-messaging-eventhubs-checkpointstore-blob)

View File

@ -5,7 +5,7 @@
],
"name": "azure-messaging-eventhubs-checkpointstore-blob-cpp",
"version-semver": "1.0.0-beta.1",
"port-version": 2,
"port-version": 3,
"description": [
"Microsoft Azure Messaging Event Hubs Blob Checkpoint Store SDK for C++",
"This library provides an Azure-Storage-Blobs based implementation of an Azure Messaging Event Hubs SDK Checkpoint Store."

View File

@ -7,6 +7,8 @@ vcpkg_from_github(
REF "azure-messaging-eventhubs_${VERSION}"
SHA512 e479d1a60be139d56ba8ecf7896d94dd90bf0b6fa668fbc74abe228733c9c6709693c42c2a05c0c39a17a46596dba2fe8fe606a805217df830f8ccf30769932c
HEAD_REF main
PATCHES
useragent.patch
)
if(EXISTS "${SOURCE_PATH}/sdk/eventhubs/azure-messaging-eventhubs")

View File

@ -0,0 +1,13 @@
diff --git a/sdk/eventhubs/azure-messaging-eventhubs/CMakeLists.txt b/sdk/eventhubs/azure-messaging-eventhubs/CMakeLists.txt
index 5b69cf55c..0ea0b8e10 100644
--- a/sdk/eventhubs/azure-messaging-eventhubs/CMakeLists.txt
+++ b/sdk/eventhubs/azure-messaging-eventhubs/CMakeLists.txt
@@ -110,6 +110,8 @@ target_include_directories(
target_link_libraries(azure-messaging-eventhubs PUBLIC Azure::azure-core Azure::azure-core-amqp)
+target_compile_definitions(azure-messaging-eventhubs PRIVATE _azure_BUILDING_SDK)
+
# coverage. Has no effect if BUILD_CODE_COVERAGE is OFF
create_code_coverage(eventhubs azure-messaging-eventhubs azure-messaging-eventhubs-test "tests?/*;samples?/*")

View File

@ -5,6 +5,7 @@
],
"name": "azure-messaging-eventhubs-cpp",
"version-semver": "1.0.0-beta.9",
"port-version": 1,
"description": [
"Microsoft Azure Messaging Event Hubs SDK for C++",
"This library provides Azure Messaging Event Hubs SDK."

View File

@ -9,6 +9,7 @@ vcpkg_from_github(
HEAD_REF main
PATCHES
context_syntax.patch
useragent.patch
)
if(EXISTS "${SOURCE_PATH}/sdk/attestation/azure-security-attestation")

View File

@ -0,0 +1,12 @@
diff --git a/sdk/attestation/azure-security-attestation/CMakeLists.txt b/sdk/attestation/azure-security-attestation/CMakeLists.txt
index 6993ce663..d57e7154d 100644
--- a/sdk/attestation/azure-security-attestation/CMakeLists.txt
+++ b/sdk/attestation/azure-security-attestation/CMakeLists.txt
@@ -76,6 +76,7 @@ target_include_directories(
)
target_link_libraries(azure-security-attestation PUBLIC Azure::azure-core OpenSSL::Crypto OpenSSL::SSL)
+target_compile_definitions(azure-security-attestation PRIVATE _azure_BUILDING_SDK)
# make sure that users can consume the project as a library.
add_library(Azure::azure-security-attestation ALIAS azure-security-attestation)

View File

@ -5,7 +5,7 @@
],
"name": "azure-security-attestation-cpp",
"version-semver": "1.1.0",
"port-version": 4,
"port-version": 5,
"description": [
"Microsoft Azure Attestation Service SDK for C++",
"This library provides API access to the Microsoft Azure Attestation service."

View File

@ -7,6 +7,8 @@ vcpkg_from_github(
REF "azure-security-keyvault-certificates_${VERSION}"
SHA512 f18d205ee0be9ab4289860fe4fdc0f4a6c3571eb0a8d0ca0ea66e7fef477e04ed0ba455e1a5af687e0980d7f12b919d1a5c85ee40d41dbcfd695f5d62843dcd5
HEAD_REF main
PATCHES
useragent.patch
)
if(EXISTS "${SOURCE_PATH}/sdk/keyvault/azure-security-keyvault-certificates")

View File

@ -0,0 +1,13 @@
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt
index 084e41fb6..bae592cb0 100644
--- a/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt
+++ b/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt
@@ -94,6 +94,8 @@ target_include_directories(
target_link_libraries(azure-security-keyvault-certificates PUBLIC Azure::azure-core)
+target_compile_definitions(azure-security-keyvault-certificates PRIVATE _azure_BUILDING_SDK)
+
# coverage. Has no effect if BUILD_CODE_COVERAGE is OFF
create_code_coverage(keyvault azure-security-keyvault-certificates azure-security-keyvault-certificates-test "tests?/*;samples?/*")

View File

@ -5,7 +5,7 @@
],
"name": "azure-security-keyvault-certificates-cpp",
"version-semver": "4.2.1",
"port-version": 1,
"port-version": 2,
"description": [
"Microsoft Azure Key Vault Certificates SDK for C++",
"This library provides Azure Key Vault Certificates SDK."

View File

@ -7,6 +7,8 @@ vcpkg_from_github(
REF "azure-security-keyvault-keys_${VERSION}"
SHA512 758ff05ce33672d81cf14d347edada2a7c008c7df61639b7bac9ce1a1114144a1f6fcc3d364d1d90f5f9cda8f8c1db14f80873403d4190d4aca1844fb25dd517
HEAD_REF main
PATCHES
useragent.patch
)
if(EXISTS "${SOURCE_PATH}/sdk/keyvault/azure-security-keyvault-keys")

View File

@ -0,0 +1,13 @@
diff --git a/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt
index 18098c757..7bda8dba0 100644
--- a/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt
+++ b/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt
@@ -132,6 +132,8 @@ target_include_directories(
target_link_libraries(azure-security-keyvault-keys PUBLIC Azure::azure-core)
+target_compile_definitions(azure-security-keyvault-keys PRIVATE _azure_BUILDING_SDK)
+
# coverage. Has no effect if BUILD_CODE_COVERAGE is OFF
create_code_coverage(keyvault azure-security-keyvault-keys azure-security-keyvault-keys-test "tests?/*;samples?/*")

View File

@ -5,7 +5,7 @@
],
"name": "azure-security-keyvault-keys-cpp",
"version-semver": "4.4.1",
"port-version": 1,
"port-version": 2,
"description": [
"Microsoft Azure Key Vault Keys SDK for C++",
"This library provides Azure Key Vault Keys SDK."

View File

@ -7,6 +7,8 @@ vcpkg_from_github(
REF "azure-security-keyvault-secrets_${VERSION}"
SHA512 8d944bbcc29b670b884234a789455bb6b33e33fa45c7b02a4200c2267189597cb849f3cbbaa5f7c4db013ec74a2ea0b073237254db7fcac96c290888c05dcba5
HEAD_REF main
PATCHES
useragent.patch
)
if(EXISTS "${SOURCE_PATH}/sdk/keyvault/azure-security-keyvault-secrets")

View File

@ -0,0 +1,13 @@
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-secrets/CMakeLists.txt
index 280208205..e04413950 100644
--- a/sdk/keyvault/azure-security-keyvault-secrets/CMakeLists.txt
+++ b/sdk/keyvault/azure-security-keyvault-secrets/CMakeLists.txt
@@ -97,6 +97,8 @@ target_include_directories(
target_link_libraries(azure-security-keyvault-secrets PUBLIC Azure::azure-core)
+target_compile_definitions(azure-security-keyvault-secrets PRIVATE _azure_BUILDING_SDK)
+
# coverage. Has no effect if BUILD_CODE_COVERAGE is OFF
create_code_coverage(keyvault azure-security-keyvault-secrets azure-security-keyvault-secrets-test "tests?/*;samples?/*")

View File

@ -5,7 +5,7 @@
],
"name": "azure-security-keyvault-secrets-cpp",
"version-semver": "4.2.1",
"port-version": 1,
"port-version": 2,
"description": [
"Microsoft Azure Key Vault Secrets SDK for C++",
"This library provides Azure Key Vault Secrets SDK."

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fb70bf821b5752b8e8bc942945aea223ad4960dc",
"version-semver": "1.14.0",
"port-version": 0
},
{
"git-tree": "aabaf9842636614c3744b96d734e09ba91977e52",
"version-semver": "1.13.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "50af7ca57ee7e96f6d9c772f3f2e4032bfae4d2a",
"version-semver": "1.0.0-beta.4",
"port-version": 4
},
{
"git-tree": "c98ff298b59faef771f5020d2b6ae31b2a9c568a",
"version-semver": "1.0.0-beta.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8bdfa6fd4defa1e8e62bdaad4e75a9992f40c083",
"version-semver": "1.0.0-beta.1",
"port-version": 3
},
{
"git-tree": "03dbf04a656de3308127d2d2c979e355b163d2da",
"version-semver": "1.0.0-beta.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "77827efdc37ee6717125e6516b9ebfb8f2bc90d7",
"version-semver": "1.0.0-beta.9",
"port-version": 1
},
{
"git-tree": "6cbe35b54aa6c2f494e5df9be90a25813c2afb85",
"version-semver": "1.0.0-beta.9",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "88c5e0b80d5cd580969d5c807b7ce06d7f2cda25",
"version-semver": "1.1.0",
"port-version": 5
},
{
"git-tree": "bdd0a170a44d77a8ff2753846cb23008c90ab7ac",
"version-semver": "1.1.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "75bd228566d927e22eec5b51aae2c71dc3d05e3f",
"version-semver": "4.2.1",
"port-version": 2
},
{
"git-tree": "acf18957f24ce055dd972e0c4dfe0063811cdaec",
"version-semver": "4.2.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5e08ec294ffa70534153ce3b9275f98d042603cb",
"version-semver": "4.4.1",
"port-version": 2
},
{
"git-tree": "2d6d591db10c8696d1866c04d9aa5df6f8a23868",
"version-semver": "4.4.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "dd50aa8c678a3b44cfe156c2585bf3e55c0d3fda",
"version-semver": "4.2.1",
"port-version": 2
},
{
"git-tree": "7225e1286b3ede5419906d317929a3b62507a9a9",
"version-semver": "4.2.1",

View File

@ -453,12 +453,12 @@
"port-version": 0
},
"azure-core-cpp": {
"baseline": "1.13.0",
"baseline": "1.14.0",
"port-version": 0
},
"azure-core-tracing-opentelemetry-cpp": {
"baseline": "1.0.0-beta.4",
"port-version": 3
"port-version": 4
},
"azure-data-tables-cpp": {
"baseline": "1.0.0-beta.4",
@ -482,15 +482,15 @@
},
"azure-messaging-eventhubs-checkpointstore-blob-cpp": {
"baseline": "1.0.0-beta.1",
"port-version": 2
"port-version": 3
},
"azure-messaging-eventhubs-cpp": {
"baseline": "1.0.0-beta.9",
"port-version": 0
"port-version": 1
},
"azure-security-attestation-cpp": {
"baseline": "1.1.0",
"port-version": 4
"port-version": 5
},
"azure-security-keyvault-administration-cpp": {
"baseline": "4.0.0-beta.5",
@ -498,15 +498,15 @@
},
"azure-security-keyvault-certificates-cpp": {
"baseline": "4.2.1",
"port-version": 1
"port-version": 2
},
"azure-security-keyvault-keys-cpp": {
"baseline": "4.4.1",
"port-version": 1
"port-version": 2
},
"azure-security-keyvault-secrets-cpp": {
"baseline": "4.2.1",
"port-version": 1
"port-version": 2
},
"azure-storage-blobs-cpp": {
"baseline": "12.13.0",