VcPkg files: Simplify header comment handling (#2135)
This commit is contained in:
parent
d3d4fdfe2a
commit
ba714bebd1
@ -54,21 +54,13 @@ macro(az_vcpkg_portfile_prep targetName fileName contentToRemove)
|
||||
endmacro()
|
||||
|
||||
macro(az_vcpkg_export targetName macroNamePart dllImportExportHeaderPath)
|
||||
# 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}"
|
||||
"vcpkg.json"
|
||||
"# Copyright (c) Microsoft Corporation. All rights reserved.\n# SPDX-License-Identifier: MIT\n#\n"
|
||||
)
|
||||
|
||||
az_vcpkg_portfile_prep(
|
||||
"${targetName}"
|
||||
"portfile.cmake"
|
||||
"# Copyright (c) Microsoft Corporation. All rights reserved.\n# SPDX-License-Identifier: MIT\n\n"
|
||||
)
|
||||
foreach(vcpkgFile "vcpkg.json" "portfile.cmake")
|
||||
az_vcpkg_portfile_prep(
|
||||
"${targetName}"
|
||||
"${vcpkgFile}"
|
||||
"# Copyright (c) Microsoft Corporation. All rights reserved.\n# SPDX-License-Identifier: MIT\n\n"
|
||||
)
|
||||
endforeach()
|
||||
|
||||
# Standard names for folders such as "bin", "lib", "include". We could hardcode, but some other libs use it too (curl).
|
||||
include(GNUInstallDirs)
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
{
|
||||
"name": "azure-core-cpp",
|
||||
"version-string": "@AZ_LIBRARY_VERSION@",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
{
|
||||
"name": "azure-identity-cpp",
|
||||
"version-string": "@AZ_LIBRARY_VERSION@",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
{
|
||||
"name": "azure-security-keyvault-common-cpp",
|
||||
"version-string": "@AZ_LIBRARY_VERSION@",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
{
|
||||
"name": "azure-security-keyvault-keys-cpp",
|
||||
"version-string": "@AZ_LIBRARY_VERSION@",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
{
|
||||
"name": "azure-storage-blobs-cpp",
|
||||
"version-string": "@AZ_LIBRARY_VERSION@",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
{
|
||||
"name": "azure-storage-common-cpp",
|
||||
"version-string": "@AZ_LIBRARY_VERSION@",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
{
|
||||
"name": "azure-storage-files-datalake-cpp",
|
||||
"version-string": "@AZ_LIBRARY_VERSION@",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
{
|
||||
"name": "azure-storage-files-shares-cpp",
|
||||
"version-string": "@AZ_LIBRARY_VERSION@",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
{
|
||||
"name": "azure-template-cpp",
|
||||
"version-string": "@AZ_LIBRARY_VERSION@",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user