Update vcpkg ports to use a manifest json file instead of a CONTROL file. (#2132)

* Update vcpkg ports to use a manifest json file instead of a CONTROL file.

* Update vcpkg ports to use a manifest json file instead of a CONTROL file
for remaining packages.

* Add the new vcpkg manifet json files and also update the template
package.

* Update paths in the cmake and eng scripts to find the right file now
that CONTROL is gone.
This commit is contained in:
Ahson Khan 2021-04-19 12:50:50 -07:00 committed by GitHub
parent 760026715a
commit d452e94337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 192 additions and 98 deletions

View File

@ -54,13 +54,13 @@ macro(az_vcpkg_portfile_prep targetName fileName contentToRemove)
endmacro()
macro(az_vcpkg_export targetName macroNamePart dllImportExportHeaderPath)
# CONTROL file has an extra '#' in the comment section, because VcPkg can't handle an empty line at that position,
# The vcpkg.json file has an extra '#' in the comment section, because VcPkg can't handle an empty line at that position,
# and without that extra '#' line, the file contents look too crowded.
# Ultimately, the lines passed to az_vcpkg_portfile_prep() have to match the header comment that is actually
# present in the files, or otherwise nothing will be removed.
az_vcpkg_portfile_prep(
"${targetName}"
"CONTROL"
"vcpkg.json"
"# Copyright (c) Microsoft Corporation. All rights reserved.\n# SPDX-License-Identifier: MIT\n#\n"
)

View File

@ -37,7 +37,7 @@ param (
# If there's nothing in the "port" folder to upload set SkipVcpkgUpdate to true
# and exit. Other steps will check SkipVcpkgUpdate to decide whether to move
# forward.
if (!(Get-ChildItem -Path "$SourceDirectory/port/CONTROL")) {
if (!(Get-ChildItem -Path "$SourceDirectory/port/vcpkg.json")) {
Write-Host "###vso[task.setvariable variable=SkipVcpkgUpdate]true"
exit
}

View File

@ -1,22 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
Source: azure-core-cpp
Version: @AZ_LIBRARY_VERSION@
Build-Depends: openssl (!windows&!uwp)
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++.
Homepage: https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/core/azure-core
Default-Features: http
Feature: http
Build-Depends: azure-core-cpp[core, curl], azure-core-cpp[core, curl, winhttp] (windows&!uwp)
Description: Build all HTTP transport implementations, depending on the platform
Feature: curl
Build-Depends: azure-core-cpp[core], curl
Description: Build an HTTP transport implementation with LibCURL
Feature: winhttp
Build-Depends: azure-core-cpp[core]
Description: Build an HTTP transport implementation with WinHTTP

View File

@ -0,0 +1,63 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
{
"name": "azure-core-cpp",
"version-string": "@AZ_LIBRARY_VERSION@",
"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++."
],
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/core/azure-core",
"dependencies": [
{
"name": "openssl",
"platform": "!windows & !uwp"
}
],
"default-features": [
"http"
],
"features": {
"curl": {
"description": "Build an HTTP transport implementation with LibCURL",
"dependencies": [
{
"name": "azure-core-cpp",
"default-features": false
},
"curl"
]
},
"http": {
"description": "Build all HTTP transport implementations, depending on the platform",
"dependencies": [
{
"name": "azure-core-cpp",
"default-features": false,
"features": [
"curl"
]
},
{
"name": "azure-core-cpp",
"default-features": false,
"features": [
"curl",
"winhttp"
],
"platform": "windows & !uwp"
}
]
},
"winhttp": {
"description": "Build an HTTP transport implementation with WinHTTP",
"dependencies": [
{
"name": "azure-core-cpp",
"default-features": false
}
]
}
}
}

View File

@ -1,9 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
Source: azure-identity-cpp
Version: @AZ_LIBRARY_VERSION@
Build-Depends: azure-core-cpp
Description: Microsoft Azure Identity SDK for C++
This library provides common authentication-related abstractions for Azure SDK.
Homepage: https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/identity/azure-identity

View File

@ -0,0 +1,15 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
{
"name": "azure-identity-cpp",
"version-string": "@AZ_LIBRARY_VERSION@",
"description": [
"Microsoft Azure Identity SDK for C++",
"This library provides common authentication-related abstractions for Azure SDK."
],
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/identity/azure-identity",
"dependencies": [
"azure-core-cpp"
]
}

View File

@ -1,9 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
Source: azure-security-keyvault-common-cpp
Version: @AZ_LIBRARY_VERSION@
Build-Depends: azure-core-cpp
Description: Microsoft Azure Common Key Vault SDK for C++
This library provides common Azure KeyVault-related abstractions for Azure SDK.
Homepage: https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/keyvault/azure-security-keyvault-common

View File

@ -0,0 +1,15 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
{
"name": "azure-security-keyvault-common-cpp",
"version-string": "@AZ_LIBRARY_VERSION@",
"description": [
"Microsoft Azure Common Key Vault SDK for C++",
"This library provides common Azure KeyVault-related abstractions for Azure SDK."
],
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/keyvault/azure-security-keyvault-common",
"dependencies": [
"azure-core-cpp"
]
}

View File

@ -1,9 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
Source: azure-security-keyvault-keys-cpp
Version: @AZ_LIBRARY_VERSION@
Build-Depends: azure-security-keyvault-common-cpp
Description: Microsoft Azure Key Vault Keys SDK for C++
This library provides Azure Key Vault Keys SDK.
Homepage: https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/keyvault/azure-security-keyvault-keys

View File

@ -0,0 +1,15 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
{
"name": "azure-security-keyvault-keys-cpp",
"version-string": "@AZ_LIBRARY_VERSION@",
"description": [
"Microsoft Azure Key Vault Keys SDK for C++",
"This library provides Azure Key Vault Keys SDK."
],
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/keyvault/azure-security-keyvault-keys",
"dependencies": [
"azure-security-keyvault-common-cpp"
]
}

View File

@ -1,9 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
Source: azure-storage-blobs-cpp
Version: @AZ_LIBRARY_VERSION@
Build-Depends: azure-storage-common-cpp
Description: Microsoft Azure Storage Blobs SDK for C++
This library provides Azure Storage Blobs SDK.
Homepage: https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/storage/azure-storage-blobs

View File

@ -0,0 +1,15 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
{
"name": "azure-storage-blobs-cpp",
"version-string": "@AZ_LIBRARY_VERSION@",
"description": [
"Microsoft Azure Storage Blobs SDK for C++",
"This library provides Azure Storage Blobs SDK."
],
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/storage/azure-storage-blobs",
"dependencies": [
"azure-storage-common-cpp"
]
}

View File

@ -1,9 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
Source: azure-storage-common-cpp
Version: @AZ_LIBRARY_VERSION@
Build-Depends: azure-core-cpp, libxml2, openssl (!windows)
Description: Microsoft Azure Common Storage SDK for C++
This library provides common Azure Storage-related abstractions for Azure SDK.
Homepage: https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/storage/azure-storage-common

View File

@ -0,0 +1,20 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
{
"name": "azure-storage-common-cpp",
"version-string": "@AZ_LIBRARY_VERSION@",
"description": [
"Microsoft Azure Common Storage SDK for C++",
"This library provides common Azure Storage-related abstractions for Azure SDK."
],
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/storage/azure-storage-common",
"dependencies": [
"azure-core-cpp",
"libxml2",
{
"name": "openssl",
"platform": "!windows"
}
]
}

View File

@ -1,9 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
Source: azure-storage-files-datalake-cpp
Version: @AZ_LIBRARY_VERSION@
Build-Depends: azure-storage-blobs-cpp
Description: Microsoft Azure Storage Files Data Lake SDK for C++
This library provides Azure Storage Files Data Lake SDK.
Homepage: https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/storage/azure-storage-files-datalake

View File

@ -0,0 +1,15 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
{
"name": "azure-storage-files-datalake-cpp",
"version-string": "@AZ_LIBRARY_VERSION@",
"description": [
"Microsoft Azure Storage Files Data Lake SDK for C++",
"This library provides Azure Storage Files Data Lake SDK."
],
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/storage/azure-storage-files-datalake",
"dependencies": [
"azure-storage-blobs-cpp"
]
}

View File

@ -1,9 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
Source: azure-storage-files-shares-cpp
Version: @AZ_LIBRARY_VERSION@
Build-Depends: azure-storage-common-cpp
Description: Microsoft Azure Storage Files Shares SDK for C++
This library provides Azure Storage Files Shares SDK.
Homepage: https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/storage/azure-storage-files-shares

View File

@ -0,0 +1,15 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
{
"name": "azure-storage-files-shares-cpp",
"version-string": "@AZ_LIBRARY_VERSION@",
"description": [
"Microsoft Azure Storage Files Shares SDK for C++",
"This library provides Azure Storage Files Shares SDK."
],
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/storage/azure-storage-files-shares",
"dependencies": [
"azure-storage-common-cpp"
]
}

View File

@ -1,10 +0,0 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
Source: azure-template-cpp
Version: @AZ_LIBRARY_VERSION@
Build-Depends: azure-core-cpp
Description: Microsoft Azure Template SDK for C++
This is a template library meant to illustrate initial client library development process for Azure SDK.
It is not meant to be published to vcpkg.
Homepage: https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/template/azure-template

View File

@ -0,0 +1,16 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: MIT
#
{
"name": "azure-template-cpp",
"version-string": "@AZ_LIBRARY_VERSION@",
"description": [
"Microsoft Azure Template SDK for C++",
"This is a template library meant to illustrate initial client library development process for Azure SDK.",
"It is not meant to be published to vcpkg."
],
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/master/sdk/template/azure-template",
"dependencies": [
"azure-core-cpp"
]
}