applied-ai-018 commited on
Commit
74463fa
·
verified ·
1 Parent(s): 164e439

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. cc-multilingual-main/cc_net/vcpkg/scripts/addPoshVcpkgToPowershellProfile.ps1 +271 -0
  2. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/Create-PRDiff.ps1 +20 -0
  3. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/azure-pipelines.yml +122 -0
  4. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/bootstrap-from-source.sh +9 -0
  5. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/create-vmss-helpers.psm1 +312 -0
  6. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/generate-sas-tokens.ps1 +59 -0
  7. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/osx/README.md +259 -0
  8. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/osx/azure-pipelines.yml +90 -0
  9. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/osx/register-guest.sh +20 -0
  10. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/osx/setup-box.sh +24 -0
  11. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/osx/setup-guest.sh +20 -0
  12. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/test-modified-ports.ps1 +186 -0
  13. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/azure-pipelines.yml +111 -0
  14. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/bootstrap-from-source.cmd +7 -0
  15. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/create-image.ps1 +271 -0
  16. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-azcopy.ps1 +4 -0
  17. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-cuda.ps1 +106 -0
  18. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-install-disk.ps1 +60 -0
  19. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-inteloneapi.ps1 +55 -0
  20. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-mpi.ps1 +47 -0
  21. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-psexec.ps1 +8 -0
  22. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-pwsh.ps1 +9 -0
  23. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-tlssettings.ps1 +738 -0
  24. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-visual-studio.ps1 +89 -0
  25. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-windows-sdks.ps1 +46 -0
  26. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/disk-space.ps1 +35 -0
  27. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/drop-to-admin-user-prefix.ps1 +27 -0
  28. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/provision-entire-image.ps1 +19 -0
  29. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/sysprep.ps1 +17 -0
  30. cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/validate-version-files.ps1 +29 -0
  31. cc-multilingual-main/cc_net/vcpkg/scripts/boost/.gitignore +3 -0
  32. cc-multilingual-main/cc_net/vcpkg/scripts/boost/generate-ports.ps1 +672 -0
  33. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/atomic.cmake +5 -0
  34. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/cobalt.cmake +5 -0
  35. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/context.cmake +5 -0
  36. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/fiber.cmake +5 -0
  37. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/json.cmake +5 -0
  38. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/locale.cmake +5 -0
  39. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/log.cmake +9 -0
  40. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/nowide.cmake +5 -0
  41. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/serialization.cmake +5 -0
  42. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/stacktrace.cmake +5 -0
  43. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/url.cmake +5 -0
  44. cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/wave.cmake +5 -0
  45. cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/make_wrapper/cl_cpp_wrapper +104 -0
  46. cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/make_wrapper/windres-rc +133 -0
  47. cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/meson/meson.template.in +42 -0
  48. cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/meson/none.txt +19 -0
  49. cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 +378 -0
  50. cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/msbuild/vcpkg-general.xml +97 -0
cc-multilingual-main/cc_net/vcpkg/scripts/addPoshVcpkgToPowershellProfile.ps1 ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [CmdletBinding()]
2
+ param()
3
+
4
+ function findExistingImportModuleDirectives([Parameter(Mandatory=$true)][string]$path)
5
+ {
6
+ if (!(Test-Path $path))
7
+ {
8
+ return
9
+ }
10
+
11
+ $fileContents = Get-Content $path
12
+ $fileContents -match 'Import-Module.+?(?=posh-vcpkg)'
13
+ return
14
+ }
15
+
16
+ $scriptsDir = split-path -parent $script:MyInvocation.MyCommand.Definition
17
+
18
+ $profileEntry = "Import-Module '$scriptsDir\posh-vcpkg'"
19
+ $profilePath = $PROFILE # Implicit PowerShell variable
20
+ $profileDir = Split-Path $profilePath -Parent
21
+ if (!(Test-Path $profileDir))
22
+ {
23
+ New-Item -ItemType Directory -Path $profileDir | Out-Null
24
+ }
25
+
26
+ Write-Host "`nAdding the following line to ${profilePath}:"
27
+ Write-Host " $profileEntry"
28
+
29
+ # @() Needed to force Array in PowerShell 2.0
30
+ [Array]$existingImports = @(findExistingImportModuleDirectives $profilePath)
31
+ if ($existingImports.Count -gt 0)
32
+ {
33
+ $existingImportsOut = $existingImports -join "`n "
34
+ Write-Host "`nposh-vcpkg is already imported to your PowerShell profile. The following entries were found:"
35
+ Write-Host " $existingImportsOut"
36
+ Write-Host "`nPlease make sure you have started a new PowerShell window for the changes to take effect."
37
+ return
38
+ }
39
+
40
+ # Modifying the profile will invalidate any signatures.
41
+ # Posh-git does the following check, so we should too.
42
+ # https://github.com/dahlbyk/posh-git/blob/master/src/Utils.ps1
43
+ # If the profile script exists and is signed, then we should not modify it
44
+ if (Test-Path $profilePath)
45
+ {
46
+ $sig = Get-AuthenticodeSignature $profilePath
47
+ if ($null -ne $sig.SignerCertificate)
48
+ {
49
+ Write-Warning "Skipping add of posh-vcpkg import to profile; '$profilePath' appears to be signed."
50
+ Write-Warning "Please manually add the line '$profileEntry' to your profile and resign it."
51
+ return
52
+ }
53
+ }
54
+
55
+ Add-Content $profilePath -Value "`n$profileEntry" -Encoding UTF8
56
+ Write-Host "`nSuccessfully added posh-vcpkg to your PowerShell profile. Please start a new PowerShell window for the changes to take effect."
57
+
58
+ # SIG # Begin signature block
59
+ # MIIntwYJKoZIhvcNAQcCoIInqDCCJ6QCAQExDzANBglghkgBZQMEAgEFADB5Bgor
60
+ # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
61
+ # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAQI5pjINs39W5V
62
+ # cJzzNG3YZ5LACp5BEUv+jJq20JhbqKCCDYEwggX/MIID56ADAgECAhMzAAACUosz
63
+ # qviV8znbAAAAAAJSMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
64
+ # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
65
+ # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
66
+ # bmcgUENBIDIwMTEwHhcNMjEwOTAyMTgzMjU5WhcNMjIwOTAxMTgzMjU5WjB0MQsw
67
+ # CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u
68
+ # ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW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ge3jKtD9XgBb25
266
+ # N2+4ilsoN3GYe63bMGsL+525ApITbcnhxbpd35UiZP6Nw9ab9WKYIUILI4vdjSyx
267
+ # LX+HZZV1cpqU4d5HjPS9exHgDS6RwJvYtvx9N0moBJYz8X+C4HDJKO6EAFY1i8tT
268
+ # HKu3TGsqofehtTtlc9QCEimSTBSmeGxEiPmSDjwfaO2erTzwnJcZL5UqDNHoEouN
269
+ # Z5+u1f2LfIidCBznb4tRlG9GNe1JKF3bp16tsNwD6GFuKfcDaP8/+ee14qzHPUJm
270
+ # niaVz5RlKUh2M0Uphl+hmnHzIWHOjhUQsUSaoyXy0n+Wz01P1TJ+CBiA1w==
271
+ # SIG # End signature block
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/Create-PRDiff.ps1 ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [CmdletBinding(PositionalBinding=$False)]
2
+ Param(
3
+ [Parameter(Mandatory=$True)]
4
+ [String]$DiffFile
5
+ )
6
+
7
+ Start-Process -FilePath 'git' -ArgumentList 'diff' `
8
+ -NoNewWindow -Wait `
9
+ -RedirectStandardOutput $DiffFile
10
+ if (0 -ne (Get-Item -LiteralPath $DiffFile).Length)
11
+ {
12
+ $msg = @(
13
+ 'The formatting of the files in the repo were not what we expected,',
14
+ 'or the documentation was not regenerated.',
15
+ 'Please access the diff from format.diff in the build artifacts,'
16
+ 'and apply the patch with `git apply`'
17
+ )
18
+ Write-Error ($msg -join "`n")
19
+ throw
20
+ }
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/azure-pipelines.yml ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+ #
4
+ variables:
5
+ linux-pool: 'PrLin-1ES-Pool'
6
+ windows-pool: 'PrWin-1ES'
7
+ osx-pool: 'PrOsx-2024-01-18'
8
+ osx-arm64-pool: 'PrOsx-2024-01-22-arm64'
9
+ linux-docker-image: 'vcpkgandroidwus3.azurecr.io/vcpkg-android:2024-03-14'
10
+
11
+ parameters:
12
+ - name: vcpkgToolSha
13
+ displayName: 'Custom SHA of vcpkg-tool to use rather than bootstrap'
14
+ type: string
15
+ default: 'use default'
16
+ - name: tripletPattern
17
+ displayName: 'Enable triplets which contain this substring'
18
+ type: string
19
+ default: '-'
20
+
21
+ jobs:
22
+ - template: windows/azure-pipelines.yml
23
+ parameters:
24
+ triplet: x86-windows
25
+ jobName: x86_windows
26
+ poolName: $(windows-pool)
27
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
28
+ tripletPattern: ${{ parameters.tripletPattern }}
29
+
30
+ - template: windows/azure-pipelines.yml
31
+ parameters:
32
+ triplet: x64-windows
33
+ jobName: x64_windows
34
+ poolName: $(windows-pool)
35
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
36
+ tripletPattern: ${{ parameters.tripletPattern }}
37
+
38
+ - template: windows/azure-pipelines.yml
39
+ parameters:
40
+ triplet: x64-windows-static
41
+ jobName: x64_windows_static
42
+ poolName: $(windows-pool)
43
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
44
+ tripletPattern: ${{ parameters.tripletPattern }}
45
+
46
+ - template: windows/azure-pipelines.yml
47
+ parameters:
48
+ triplet: x64-windows-static-md
49
+ jobName: x64_windows_static_md
50
+ poolName: $(windows-pool)
51
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
52
+ tripletPattern: ${{ parameters.tripletPattern }}
53
+
54
+ - template: windows/azure-pipelines.yml
55
+ parameters:
56
+ triplet: x64-uwp
57
+ jobName: x64_uwp
58
+ poolName: $(windows-pool)
59
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
60
+ tripletPattern: ${{ parameters.tripletPattern }}
61
+
62
+ - template: windows/azure-pipelines.yml
63
+ parameters:
64
+ triplet: arm64-windows
65
+ jobName: arm64_windows
66
+ poolName: $(windows-pool)
67
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
68
+ tripletPattern: ${{ parameters.tripletPattern }}
69
+
70
+ - template: windows/azure-pipelines.yml
71
+ parameters:
72
+ triplet: arm64-uwp
73
+ jobName: arm64_uwp
74
+ poolName: $(windows-pool)
75
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
76
+ tripletPattern: ${{ parameters.tripletPattern }}
77
+
78
+ - template: osx/azure-pipelines.yml
79
+ parameters:
80
+ triplet: x64-osx
81
+ jobName: x64_osx
82
+ poolName: $(osx-pool)
83
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
84
+ tripletPattern: ${{ parameters.tripletPattern }}
85
+
86
+ - template: osx/azure-pipelines.yml
87
+ parameters:
88
+ triplet: arm64-osx
89
+ jobName: arm64_osx
90
+ poolName: $(osx-arm64-pool)
91
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
92
+ tripletPattern: ${{ parameters.tripletPattern }}
93
+
94
+ - template: linux/azure-pipelines.yml
95
+ parameters:
96
+ poolName: $(linux-pool)
97
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
98
+ tripletPattern: ${{ parameters.tripletPattern }}
99
+
100
+ - template: android/azure-pipelines.yml
101
+ parameters:
102
+ triplet: arm-neon-android
103
+ jobName: arm_neon_android
104
+ dockerImage: $(linux-docker-image)
105
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
106
+ tripletPattern: ${{ parameters.tripletPattern }}
107
+
108
+ - template: android/azure-pipelines.yml
109
+ parameters:
110
+ triplet: x64-android
111
+ jobName: x64_android
112
+ dockerImage: $(linux-docker-image)
113
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
114
+ tripletPattern: ${{ parameters.tripletPattern }}
115
+
116
+ - template: android/azure-pipelines.yml
117
+ parameters:
118
+ triplet: arm64-android
119
+ jobName: arm64_android
120
+ dockerImage: $(linux-docker-image)
121
+ vcpkgToolSha: ${{ parameters.vcpkgToolSha }}
122
+ tripletPattern: ${{ parameters.tripletPattern }}
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/bootstrap-from-source.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ git clone https://github.com/microsoft/vcpkg-tool vcpkg-tool
5
+ git -C vcpkg-tool switch -d $1
6
+ rm -rf build.x64.release
7
+ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DVCPKG_DEVELOPMENT_WARNINGS=OFF -DVCPKG_WARNINGS_AS_ERRORS=OFF -DVCPKG_BUILD_FUZZING=OFF -DVCPKG_BUILD_TLS12_DOWNLOADER=OFF -B build.x64.release -S vcpkg-tool
8
+ ninja -C build.x64.release
9
+ mv build.x64.release/vcpkg vcpkg
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/create-vmss-helpers.psm1 ADDED
@@ -0,0 +1,312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ <#
5
+ .SYNOPSIS
6
+ Returns whether there's a name collision in the resource group.
7
+
8
+ .DESCRIPTION
9
+ Find-ResourceGroupNameCollision takes a list of resources, and checks if $Test
10
+ collides names with any of the resources.
11
+
12
+ .PARAMETER Test
13
+ The name to test.
14
+
15
+ .PARAMETER Resources
16
+ The list of resources.
17
+ #>
18
+ function Find-ResourceGroupNameCollision {
19
+ [CmdletBinding()]
20
+ Param([string]$Test, $Resources)
21
+
22
+ foreach ($resource in $Resources) {
23
+ if ($resource.ResourceGroupName -eq $Test) {
24
+ return $true
25
+ }
26
+ }
27
+
28
+ return $false
29
+ }
30
+
31
+ <#
32
+ .SYNOPSIS
33
+ Attempts to find a name that does not collide with any resources in the resource group.
34
+
35
+ .DESCRIPTION
36
+ Find-ResourceGroupName takes a set of resources from Get-AzResourceGroup, and finds the
37
+ first name in {$Prefix, $Prefix-1, $Prefix-2, ...} such that the name doesn't collide with
38
+ any of the resources in the resource group.
39
+
40
+ .PARAMETER Prefix
41
+ The prefix of the final name; the returned name will be of the form "$Prefix(-[1-9][0-9]*)?"
42
+ #>
43
+ function Find-ResourceGroupName {
44
+ [CmdletBinding()]
45
+ Param([string] $Prefix)
46
+
47
+ $resources = Get-AzResourceGroup
48
+ $result = $Prefix
49
+ $suffix = 0
50
+ while (Find-ResourceGroupNameCollision -Test $result -Resources $resources) {
51
+ $suffix++
52
+ $result = "$Prefix-$suffix"
53
+ }
54
+
55
+ return $result
56
+ }
57
+
58
+ <#
59
+ .SYNOPSIS
60
+ Generates a random password.
61
+
62
+ .DESCRIPTION
63
+ New-Password generates a password, randomly, of length $Length, containing
64
+ only alphanumeric characters, underscore, and dash.
65
+
66
+ .PARAMETER Length
67
+ The length of the returned password.
68
+ #>
69
+ function New-Password {
70
+ Param ([int] $Length = 32)
71
+
72
+ # This 64-character alphabet generates 6 bits of entropy per character.
73
+ # The power-of-2 alphabet size allows us to select a character by masking a random Byte with bitwise-AND.
74
+ $alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-"
75
+ $mask = 63
76
+ if ($alphabet.Length -ne 64) {
77
+ throw 'Bad alphabet length'
78
+ }
79
+
80
+ [Byte[]]$randomData = [Byte[]]::new($Length)
81
+ $rng = $null
82
+ try {
83
+ $rng = [System.Security.Cryptography.RandomNumberGenerator]::Create()
84
+ $rng.GetBytes($randomData)
85
+ }
86
+ finally {
87
+ if ($null -ne $rng) {
88
+ $rng.Dispose()
89
+ }
90
+ }
91
+
92
+ $result = ''
93
+ for ($idx = 0; $idx -lt $Length; $idx++) {
94
+ $result += $alphabet[$randomData[$idx] -band $mask]
95
+ }
96
+
97
+ return $result
98
+ }
99
+
100
+ <#
101
+ .SYNOPSIS
102
+ Waits for the shutdown of the specified resource.
103
+
104
+ .DESCRIPTION
105
+ Wait-Shutdown takes a VM, and checks if there's a 'PowerState/stopped'
106
+ code; if there is, it returns. If there isn't, it waits ten seconds and
107
+ tries again.
108
+
109
+ .PARAMETER ResourceGroupName
110
+ The name of the resource group to look up the VM in.
111
+
112
+ .PARAMETER Name
113
+ The name of the virtual machine to wait on.
114
+ #>
115
+ function Wait-Shutdown {
116
+ [CmdletBinding()]
117
+ Param([string]$ResourceGroupName, [string]$Name)
118
+
119
+ Write-Host "Waiting for $Name to stop..."
120
+ while ($true) {
121
+ $Vm = Get-AzVM -ResourceGroupName $ResourceGroupName -Name $Name -Status
122
+ $highestStatus = $Vm.Statuses.Count
123
+ for ($idx = 0; $idx -lt $highestStatus; $idx++) {
124
+ if ($Vm.Statuses[$idx].Code -eq 'PowerState/stopped') {
125
+ return
126
+ }
127
+ }
128
+
129
+ Write-Host "... not stopped yet, sleeping for 10 seconds"
130
+ Start-Sleep -Seconds 10
131
+ }
132
+ }
133
+
134
+ <#
135
+ .SYNOPSIS
136
+ Sanitizes a name to be used in a storage account.
137
+
138
+ .DESCRIPTION
139
+ Sanitize-Name takes a string, and removes all of the '-'s and
140
+ lowercases the string, since storage account names must have no
141
+ '-'s and must be completely lowercase alphanumeric. It then makes
142
+ certain that the length of the string is not greater than 24,
143
+ since that is invalid.
144
+
145
+ .PARAMETER RawName
146
+ The name to sanitize.
147
+ #>
148
+ function Sanitize-Name {
149
+ [CmdletBinding()]
150
+ Param(
151
+ [string]$RawName
152
+ )
153
+
154
+ $result = $RawName.Replace('-', '').ToLowerInvariant()
155
+ if ($result.Length -gt 24) {
156
+ Write-Error 'Sanitized name for storage account $result was too long.'
157
+ throw
158
+ }
159
+
160
+ return $result
161
+ }
162
+
163
+ <#
164
+ .SYNOPSIS
165
+ Creates a new Azure virtual network with locked down firewall rules.
166
+
167
+ .PARAMETER ResourceGroupName
168
+ The name of the resource group in which the virtual network should be created.
169
+
170
+ .PARAMETER Location
171
+ The location (region) where the network is to be created.
172
+ #>
173
+ function Create-LockedDownNetwork {
174
+ [CmdletBinding()]
175
+ Param(
176
+ [parameter(Mandatory=$true)]
177
+ [string]$ResourceGroupName,
178
+ [parameter(Mandatory=$true)]
179
+ [string]$Location
180
+ )
181
+
182
+ $publicIp = New-AzPublicIpAddress `
183
+ -Name "$ResourceGroupName-ip" `
184
+ -ResourceGroupName $ResourceGroupName `
185
+ -Location $Location `
186
+ -Sku 'Standard' `
187
+ -AllocationMethod 'Static'
188
+
189
+ $natGateway = New-AzNatGateway `
190
+ -Name "$ResourceGroupName-nat" `
191
+ -ResourceGroupName $ResourceGroupName `
192
+ -Location $Location `
193
+ -Sku 'Standard' `
194
+ -PublicIpAddress $publicIp
195
+
196
+ $allFirewallRules = @()
197
+
198
+ $allFirewallRules += New-AzNetworkSecurityRuleConfig `
199
+ -Name AllowHTTP `
200
+ -Description 'Allow HTTP(S)' `
201
+ -Access Allow `
202
+ -Protocol Tcp `
203
+ -Direction Outbound `
204
+ -Priority 1008 `
205
+ -SourceAddressPrefix * `
206
+ -SourcePortRange * `
207
+ -DestinationAddressPrefix * `
208
+ -DestinationPortRange @(80, 443)
209
+
210
+ $allFirewallRules += New-AzNetworkSecurityRuleConfig `
211
+ -Name AllowSFTP `
212
+ -Description 'Allow (S)FTP' `
213
+ -Access Allow `
214
+ -Protocol Tcp `
215
+ -Direction Outbound `
216
+ -Priority 1009 `
217
+ -SourceAddressPrefix * `
218
+ -SourcePortRange * `
219
+ -DestinationAddressPrefix * `
220
+ -DestinationPortRange @(21, 22)
221
+
222
+ $allFirewallRules += New-AzNetworkSecurityRuleConfig `
223
+ -Name AllowDNS `
224
+ -Description 'Allow DNS' `
225
+ -Access Allow `
226
+ -Protocol * `
227
+ -Direction Outbound `
228
+ -Priority 1010 `
229
+ -SourceAddressPrefix * `
230
+ -SourcePortRange * `
231
+ -DestinationAddressPrefix * `
232
+ -DestinationPortRange 53
233
+
234
+ $allFirewallRules += New-AzNetworkSecurityRuleConfig `
235
+ -Name AllowGit `
236
+ -Description 'Allow git' `
237
+ -Access Allow `
238
+ -Protocol Tcp `
239
+ -Direction Outbound `
240
+ -Priority 1011 `
241
+ -SourceAddressPrefix * `
242
+ -SourcePortRange * `
243
+ -DestinationAddressPrefix * `
244
+ -DestinationPortRange 9418
245
+
246
+ $allFirewallRules += New-AzNetworkSecurityRuleConfig `
247
+ -Name DenyElse `
248
+ -Description 'Deny everything else' `
249
+ -Access Deny `
250
+ -Protocol * `
251
+ -Direction Outbound `
252
+ -Priority 1013 `
253
+ -SourceAddressPrefix * `
254
+ -SourcePortRange * `
255
+ -DestinationAddressPrefix * `
256
+ -DestinationPortRange *
257
+
258
+ $NetworkSecurityGroupName = $ResourceGroupName + 'NetworkSecurity'
259
+ $NetworkSecurityGroup = New-AzNetworkSecurityGroup `
260
+ -Name $NetworkSecurityGroupName `
261
+ -ResourceGroupName $ResourceGroupName `
262
+ -Location $Location `
263
+ -SecurityRules $allFirewallRules
264
+
265
+ $SubnetName = $ResourceGroupName + 'Subnet'
266
+ $Subnet = New-AzVirtualNetworkSubnetConfig `
267
+ -Name $SubnetName `
268
+ -AddressPrefix "10.0.0.0/16" `
269
+ -NetworkSecurityGroup $NetworkSecurityGroup `
270
+ -ServiceEndpoint "Microsoft.Storage" `
271
+ -NatGateway $natGateway
272
+
273
+ $VirtualNetworkName = $ResourceGroupName + 'Network'
274
+ $VirtualNetwork = New-AzVirtualNetwork `
275
+ -Name $VirtualNetworkName `
276
+ -ResourceGroupName $ResourceGroupName `
277
+ -Location $Location `
278
+ -AddressPrefix "10.0.0.0/16" `
279
+ -Subnet $Subnet
280
+
281
+ return $VirtualNetwork
282
+ }
283
+
284
+ function Invoke-AzVMRunCommandWithRetries {
285
+ $result = $null
286
+ $success = $false
287
+ $attempt = 0
288
+ while ($success -eq $false) {
289
+ try {
290
+ ++$attempt
291
+ Write-Host "Command attempt $attempt..."
292
+ $result = Invoke-AzVMRunCommand @args
293
+ $success = $true
294
+ } catch {
295
+ Write-Host "Running command failed. $_ Retrying after 10 seconds..."
296
+ Start-Sleep -Seconds 10
297
+ if ($attempt -eq 5) {
298
+ Write-Error "Running command failed too many times. Giving up!"
299
+ throw $_
300
+ }
301
+ }
302
+ }
303
+
304
+ return $result
305
+ }
306
+
307
+ Export-ModuleMember -Function Find-ResourceGroupName
308
+ Export-ModuleMember -Function New-Password
309
+ Export-ModuleMember -Function Wait-Shutdown
310
+ Export-ModuleMember -Function Sanitize-Name
311
+ Export-ModuleMember -Function Create-LockedDownNetwork
312
+ Export-ModuleMember -Function Invoke-AzVMRunCommandWithRetries
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/generate-sas-tokens.ps1 ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Param(
2
+ [Parameter(Mandatory=$true)]
3
+ [int]$KeyNumber
4
+ )
5
+
6
+ function Get-SasToken {
7
+ Param(
8
+ [Parameter(Mandatory=$true)]
9
+ [int]$KeyNumber,
10
+ [Parameter(Mandatory=$true)]
11
+ [ValidateNotNullOrEmpty()]
12
+ [string]$ResourceGroupName,
13
+ [Parameter(Mandatory=$true)]
14
+ [ValidateNotNullOrEmpty()]
15
+ [string]$StorageAccountName,
16
+ [Parameter(Mandatory=$true)]
17
+ [ValidateNotNullOrEmpty()]
18
+ [string]$ContainerName,
19
+ [Parameter(Mandatory=$true)]
20
+ [ValidateNotNullOrEmpty()]
21
+ [string]$Permission
22
+ )
23
+
24
+ $keys = Get-AzStorageAccountKey -ResourceGroupName $ResourceGroupName -Name $StorageAccountName
25
+ $key = $keys[$KeyNumber - 1]
26
+ $ctx = New-AzStorageContext -StorageAccountName $StorageAccountName -StorageAccountKey $key.Value
27
+ $start = Get-Date -AsUTC
28
+ $end = $start.AddDays(90)
29
+ $token = New-AzStorageContainerSASToken -Name $ContainerName -Permission $Permission -StartTime $start -ExpiryTime $end -Context $ctx -Protocol HttpsOnly
30
+ if ($token.StartsWith('?')) {
31
+ $token = $token.Substring(1)
32
+ }
33
+
34
+ return $token
35
+ }
36
+
37
+ # Asset Cache:
38
+ # Read, Create, List
39
+ $assetWus3Sas = Get-SasToken -KeyNumber $KeyNumber -ResourceGroupName vcpkg-asset-cache -StorageAccountName vcpkgassetcachewus3 -ContainerName cache -Permission rcl
40
+
41
+ # Binary Cache:
42
+ # Read, Create, List, Write
43
+ $binaryWUS3as = Get-SasToken -KeyNumber $KeyNumber -ResourceGroupName vcpkg-binary-cache -StorageAccountName vcpkgbinarycachewus3 -ContainerName cache -Permission rclw
44
+
45
+ $response = "Asset Cache SAS: Update`n" + `
46
+ "https://dev.azure.com/vcpkg/public/_library?itemType=VariableGroups&view=VariableGroupView&variableGroupId=6&path=vcpkg-asset-caching-credentials`n" + `
47
+ "and`n" + `
48
+ "https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_library?itemType=VariableGroups&view=VariableGroupView&variableGroupId=355&path=vcpkg-asset-caching-credentials`n" + `
49
+ "`n" + `
50
+ "wus3 token:`n" + `
51
+ "$assetWus3Sas`n" + `
52
+ "`n" + `
53
+ "Binary Cache SAS: Update`n" + `
54
+ "https://dev.azure.com/vcpkg/public/_library?itemType=VariableGroups&view=VariableGroupView&variableGroupId=8&path=vcpkg-binary-caching-credentials`n" + `
55
+ "`n" + `
56
+ "sas-bin-wus3:`n" + `
57
+ "$binaryWUS3as`n"
58
+
59
+ Write-Host $response
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/osx/README.md ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # `vcpkg-eg-mac` VMs
2
+
3
+ This is the checklist for what the vcpkg team does when updating the macOS machines in the pool.
4
+
5
+ ## Creating new base images
6
+
7
+ ### Prerequisites
8
+
9
+ - [ ] A Parallels license for amd64 or [macosvm](https://github.com/s-u/macosvm) allow-listed
10
+ by macOS for arm64. Note that the directory 'Parallels' is still used when using `macosvm`
11
+ just so that scripts know where to find the VM and friends.
12
+ - [ ] An Xcode installer - you can get this from Apple's developer website,
13
+ although you'll need to sign in first: <https://developer.apple.com/downloads>
14
+ If you are doing this from a local macos box, you can skip to the "update the macos host" step.
15
+ If copying from a local box to one of the macOS machines, you can use scp:
16
+ ```sh
17
+ scp Command_Line_Tools_for_Xcode_15.dmg vcpkg@<DNS of the machine>:/Users/vcpkg/clt.dmg
18
+ ```
19
+
20
+ ### Instructions (AMD64)
21
+
22
+ - [ ] Go to https://dev.azure.com/vcpkg/public/_settings/agentqueues , pick the current osx queue,
23
+ and delete one of the agents that are idle.
24
+ - [ ] Go to that machine in the KVM. (Passwords are stored as secrets in the CPP_GITHUB\vcpkg\vcpkgmm-passwords key vault)
25
+ - [ ] Open a terminal and destroy any old vagrant VMs or boxes
26
+ ```sh
27
+ cd ~/vagrant
28
+ vagrant halt
29
+ vagrant destroy
30
+ vagrant box list
31
+ vagrant box remove <any boxes listed by previous command>
32
+ brew remove hashicorp-vagrant
33
+ ```
34
+ - [ ] Open the Parallels Control Center, and delete the active VM.
35
+ - [ ] Update the macos host
36
+ - [ ] Update or install parallels
37
+ - [ ] Download the macOS installer from the app store. See https://support.apple.com/en-us/102662
38
+ Note: This portion of the instructions is that which breaks most often depending on what Parallels and macOS are doing.
39
+ You might need to use `softwareupdate --fetch-full-installer --full-installer-version 14.2` and point Parallels
40
+ at that resulting installer in 'Applications' instead.
41
+ - [ ] Run parallels, and select that installer you just downloaded. Name the VM "vcpkg-osx-<DATE>-amd64", for example "vcpkg-osx-2024-01-18-amd64".
42
+ - [ ] When creating the VM, customize the hardware to the following:
43
+ * 12 processors
44
+ * 24000 MB of memory
45
+ * 350 GB disk
46
+ * Do not share mac camera
47
+ - [ ] Install MacOS like you would on real hardware.
48
+ * Apple ID: 'Set Up Later' / Skip
49
+ * Account name: vcpkg
50
+ * A very similar password :)
51
+ - [ ] Install Parallels Tools
52
+ - [ ] Restart the VM
53
+ - [ ] Change the desktop background to a solid color
54
+ - [ ] Enable remote login in System Settings -> General -> Sharing -> Remote Login
55
+ - [ ] Shut down the VM cleanly
56
+ - [ ] Set the VM 'Isolated'
57
+ - [ ] Update the Azure Agent URI in setup-box.sh to the current version. You can find this by going to the agent pool, selecting "New agent", picking macOS, and copying the link. For example https://vstsagentpackage.azureedge.net/agent/3.232.0/vsts-agent-osx-x64-3.232.0.tar.gz
58
+ - [ ] In the guest, set the vcpkg user to be able to use sudo without a password:
59
+ ```sh
60
+ printf 'vcpkg\tALL=(ALL)\tNOPASSWD:\tALL\n' | sudo tee -a '/etc/sudoers.d/vcpkg'
61
+ sudo chmod 0440 '/etc/sudoers.d/vcpkg'
62
+ ```
63
+ - [ ] Copy setup-guest, setup-box.sh, and the xcode installer renamed to 'clt.dmg' to the host, and run setup-guest.sh. For example:
64
+ ```sh
65
+ scp ./setup-guest.sh vcpkg@MACHINE:/Users/vcpkg/Downloads
66
+ scp ./setup-box.sh vcpkg@MACHINE:/Users/vcpkg/Downloads
67
+ scp path/to/console/tools.dmg vcpkg@MACHINE:/Users/vcpkg/Downloads/clt.dmg
68
+ ssh vcpkg@MACHINE
69
+ cd /Users/vcpkg/Downloads
70
+ chmod +x ./setup-guest.sh
71
+ ./setup-guest.sh
72
+ exit
73
+ ```
74
+ - [ ] Shut down the VM cleanly.
75
+ - [ ] In Parallels control center, right click the VM and select "Prepare for Transfer"
76
+ - [ ] In Parallels control center, right click the VM and remove it, but "Keep Files"
77
+ - [ ] Copy the packaged VM to Azure Storage, with something like:
78
+ ```sh
79
+ ssh vcpkg@MACHINE
80
+ brew install azcopy
81
+ azcopy copy ~/Parallels/vcpkg-macos-2024-01-18-amd64.pvmp "https://vcpkgimageminting...../pvms?<SAS>"
82
+ azcopy copy ~/Parallels/vcpkg-macos-2024-01-18-amd64.sha256.txt "https://vcpkgimageminting...../pvms?<SAS>"
83
+ ```
84
+ - [ ] Go to https://dev.azure.com/vcpkg/public/_settings/agentqueues and create a new self hosted Agent pool named `PrOsx-YYYY-MM-DD` based on the current date. Check 'Grant access permission to all pipelines.'
85
+ - [ ] Remove the macOS installer from Applications
86
+ - [ ] Follow the "Deploying images" steps below for each machine in the fleet.
87
+
88
+ ### Instructions (ARM64)
89
+
90
+ - [ ] Go to https://dev.azure.com/vcpkg/public/_settings/agentqueues , pick the current osx queue,
91
+ and delete one of the agents that are idle.
92
+ - [ ] Go to that machine in the KVM. (Passwords are stored as secrets in the CPP_GITHUB\vcpkg\vcpkgmm-passwords key vault)
93
+ - [ ] Update the macos host
94
+ - [ ] (Once only) install `macosvm` to `~` (this tarball is also backed up in our `vcpkg-image-minting` storage account):
95
+ ```sh
96
+ curl -L -o macosvm-0.2-1-arm64-darwin21.tar.gz https://github.com/s-u/macosvm/releases/download/0.2-1/macosvm-0.2-1-arm64-darwin21.tar.gz
97
+ tar xvf macosvm-0.2-1-arm64-darwin21.tar.gz
98
+ rm macosvm-0.2-1-arm64-darwin21.tar.gz
99
+ ```
100
+ - [ ] Download the matching `.ipsw` for the macOS copy to install. See https://mrmacintosh.com/apple-silicon-m1-full-macos-restore-ipsw-firmware-files-database/ ; links there to find the .ipsw. Example: https://updates.cdn-apple.com/2024WinterFCS/fullrestores/042-78241/B45074EB-2891-4C05-BCA4-7463F3AC0982/UniversalMac_14.3_23D56_Restore.ipsw
101
+ - [ ] Determine the VM name using the form "vcpkg-osx-<date>-arm64", for example "vcpkg-osx-2024-01-22-arm64".
102
+ - [ ] Open a terminal and run the following commands to create the VM with vcpkg-osx-2024-01-22-arm64 and UniversalMac_14.3_23D56_Restore.ipsw replaced as appropriate.
103
+ ```sh
104
+ mkdir -p ~/Parallels/vcpkg-osx-2024-01-22-arm64
105
+ cd ~/Parallels/vcpkg-osx-2024-01-22-arm64
106
+ ~/macosvm --disk disk.img,size=500g --aux aux.img -c 8 -r 12g --restore ~/UniversalMac_14.3_23D56_Restore.ipsw ./vm.json
107
+ ~/macosvm -g ./vm.json
108
+ ```
109
+ - [ ] Follow prompts as you would on real hardware.
110
+ * Apple ID: 'Set Up Later' / Skip
111
+ * Account name: vcpkg
112
+ * A very similar password
113
+ * No location services
114
+ * Yes send crash reports
115
+ - [ ] Set the desktop wallpaper to a fixed color from Settings -> Wallpaper . (This makes the KVM a lot easier to use :) )
116
+ - [ ] Enable remote login in the VM: Settings -> General -> Sharing -> Remote Login
117
+ - [ ] Set the vcpkg user to be able to use sudo without a password:
118
+ ```sh
119
+ ssh -o StrictHostKeychecking=no [email protected]
120
+ printf 'vcpkg\tALL=(ALL)\tNOPASSWD:\tALL\n' | sudo tee -a '/etc/sudoers.d/vcpkg'
121
+ sudo chmod 0440 '/etc/sudoers.d/vcpkg'
122
+ exit
123
+ ```
124
+ - [ ] Update the Azure Agent URI in setup-box.sh to the current version. You can find this by going to the agent pool, selecting "New agent", picking macOS, and copying the link. For example https://vstsagentpackage.azureedge.net/agent/3.232.1/vsts-agent-osx-arm64-3.232.1.tar.gz
125
+ - [ ] Copy setup-box.sh and the xcode installer renamed to 'clt.dmg' to the host. For example from a dev workstation:
126
+ ```sh
127
+ scp ./setup-guest.sh vcpkg@MACHINE:/Users/vcpkg
128
+ scp ./setup-box.sh vcpkg@MACHINE:/Users/vcpkg
129
+ scp path/to/console/tools.dmg vcpkg@MACHINE:/Users/vcpkg/clt.dmg
130
+ ssh vcpkg@MACHINE
131
+ chmod +x setup-guest.sh
132
+ ./setup-guest.sh
133
+ rm setup-guest.sh
134
+ rm setup-box.sh
135
+ ```
136
+ - [ ] Shut down the VM cleanly.
137
+ - [ ] Remove the VM in Parallels Control Center, and 'Keep Files'
138
+ - [ ] Mint a SAS token to vcpkgimageminting/pvms with read, add, create, write, and list permissions.
139
+ - [ ] Open a terminal on the host and package the VM into a tarball:
140
+ ```sh
141
+ cd ~/Parallels
142
+ aa archive -d vcpkg-osx-<date>-arm64 -o vcpkg-osx-<date>-arm64.aar -enable-holes
143
+ brew install azcopy
144
+ azcopy copy vcpkg-osx-<date>-arm64.aar "https://vcpkgimageminting.blob.core.windows.net/pvms?<SAS>"
145
+ rm *.aar
146
+ ```
147
+ - [ ] Go to https://dev.azure.com/vcpkg/public/_settings/agentqueues and create a new self hosted Agent pool named `PrOsx-YYYY-MM-DD-arm64` based on the current date. Check 'Grant access permission to all pipelines.'
148
+ - [ ] Follow the "Deploying images" steps below for each machine in the fleet.
149
+
150
+ ## Deploying images
151
+
152
+ ### Running the VM (AMD64)
153
+
154
+ Run these steps on each machine to add to the fleet. Skip steps that were done implicitly above if this machine was used to build a box.
155
+
156
+ - [ ] If this machine was used before, delete it from the pool of which it is a member from https://dev.azure.com/vcpkg/public/_settings/agentqueues
157
+ - [ ] Log in to the machine using the KVM.
158
+ - [ ] Open a terminal and destroy any old vagrant VMs or boxes
159
+ ```sh
160
+ $ cd ~/vagrant
161
+ $ vagrant halt
162
+ $ vagrant destroy
163
+ $ vagrant box list
164
+ $ vagrant box remove <any boxes listed by previous command except the one to use>
165
+ $ brew remove hashicorp-vagrant
166
+ ```
167
+ - [ ] Check for software updates in macOS system settings
168
+ - [ ] Check for software updates in Parallels' UI
169
+ - [ ] Mint a SAS token URI to the box to use from the Azure portal if you don't already have one, and download the VM. (Recommend running this via SSH from domain joined machine due to containing SAS tokens)
170
+ ```sh
171
+ brew install azcopy
172
+ cd ~/Parallels
173
+ azcopy copy "https://vcpkgimageminting.blob.core.windows.net/pvms/vcpkg-osx-<DATE>-amd64.pvmp?<SAS>" .
174
+ azcopy copy "https://vcpkgimageminting.blob.core.windows.net/pvms/vcpkg-osx-<DATE>-amd64.sha256.txt?<SAS>" .
175
+ ```
176
+ - [ ] Open the .pvmp in Parallels, and unpack it.
177
+ - [ ] Start the VM
178
+ - [ ] [grab a PAT][] if you don't already have one
179
+ - [ ] Copy the guest deploy script to the host, and run it with a first parameter of your PAT
180
+ ```sh
181
+ scp ./register-guest.sh vcpkg@MACHINE:/Users/vcpkg
182
+ ssh vcpkg@MACHINE
183
+ chmod +x /Users/vcpkg/register-guest.sh
184
+ /Users/vcpkg/register-guest.sh <PAT>
185
+ ```
186
+ - [ ] Open a terminal window on the host and run the agent
187
+ ```
188
+ ssh -i ~/Parallels/*/id_guest -o StrictHostKeychecking=no vcpkg@`prlctl list --full | sed -nr 's/^.*running *([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/\1/p'`
189
+ ~/myagent/run.sh
190
+ ```
191
+ - [ ] Check that the machine shows up in the pool, and lock the vcpkg user on the host.
192
+ - [ ] Lock the screen on the host.
193
+ - [ ] Update the "vcpkg Macs" spreadsheet line for the machine with the new pool.
194
+
195
+ [grab a PAT]: #getting-an-azure-pipelines-pat
196
+
197
+ ### Running the VM (ARM64)
198
+
199
+ Run these steps on each machine to add to the fleet. Skip steps that were done implicitly above if this machine was used to build a box.
200
+
201
+ - [ ] If this machine was used before, delete it from the pool of which it is a member from https://dev.azure.com/vcpkg/public/_settings/agentqueues
202
+ - [ ] Log in to the machine using the KVM.
203
+ - [ ] Check for software updates in macOS system settings
204
+ - [ ] (Once only) install `macosvm` to `~` (this tarball is also backed up in our `vcpkg-image-minting` storage account):
205
+ ```sh
206
+ curl -L -o macosvm-0.2-1-arm64-darwin21.tar.gz https://github.com/s-u/macosvm/releases/download/0.2-1/macosvm-0.2-1-arm64-darwin21.tar.gz
207
+ tar xvf macosvm-0.2-1-arm64-darwin21.tar.gz
208
+ rm macosvm-0.2-1-arm64-darwin21.tar.gz
209
+ ```
210
+ - [ ] Skip if this is the image building machine. Mint a SAS token URI to the box to use from the Azure portal if you don't already have one, and download the VM. (Recommend running this via SSH from domain joined machine due to containing SAS tokens)
211
+ ```sh
212
+ mkdir -p ~/Parallels
213
+ cd ~/Parallels
214
+ azcopy copy "https://vcpkgimageminting.blob.core.windows.net/pvms/vcpkg-osx-<DATE>-arm64.aar?<SAS>" vcpkg-osx-<DATE>-arm64.aar
215
+ aa extract -d vcpkg-osx-<DATE>-arm64 -i ./vcpkg-osx-<DATE>-arm64.aar -enable-holes
216
+ ```
217
+ - [ ] Open a separate terminal window on the host and start the VM by running:
218
+ ```sh
219
+ cd ~/Parallels/vcpkg-osx-<DATE>-arm64
220
+ ~/macosvm ./vm.json
221
+ ```
222
+ - [ ] [grab a PAT][] if you don't already have one
223
+ - [ ] Copy the guest deploy script to the host, and run it with a first parameter of your PAT. From a developer machine:
224
+ ```sh
225
+ scp ./register-guest.sh vcpkg@MACHINE:/Users/vcpkg
226
+ ssh vcpkg@MACHINE
227
+ chmod +x register-guest.sh
228
+ ./register-guest.sh <PAT>
229
+ rm register-guest.sh
230
+ exit
231
+ ```
232
+ - [ ] In the KVM's terminal, relaunch the VM in ephemeral mode with:
233
+ ```sh
234
+ ~/macosvm --ephemeral ./vm.json
235
+ ```
236
+ - [ ] Open a terminal window on the host and run the agent
237
+ ```sh
238
+ ssh -i ~/Parallels/*/id_guest -o StrictHostKeychecking=no [email protected]
239
+ ~/myagent/run.sh
240
+ ```
241
+ - [ ] Check that the machine shows up in the pool, and lock the vcpkg user on the host.
242
+ - [ ] Lock the screen on the host.
243
+ - [ ] Update the "vcpkg Macs" spreadsheet line for the machine with the new pool.
244
+
245
+ [grab a PAT]: #getting-an-azure-pipelines-pat
246
+
247
+ ## Getting an Azure Pipelines PAT
248
+
249
+ Personal Access Tokens are an important part of this process,
250
+ and they are fairly easy to generate.
251
+ On ADO, under the correct project (in vcpkg's case, "vcpkg"),
252
+ click on the "User Settings" icon, then go to "Personal access tokens".
253
+ It is the icon to the left of your user icon, in the top right corner.
254
+
255
+ Then, create a new token, give it a name, make sure it expires quickly,
256
+ and give it a custom defined scope that includes the
257
+ "Agent pools: Read & manage" permission (you'll need to "Show all scopes"
258
+ to access this).
259
+ You can now copy this token and use it to allow machines to join.
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/osx/azure-pipelines.yml ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+ #
4
+
5
+ parameters:
6
+ - name: vcpkgToolSha
7
+ displayName: 'Custom SHA of vcpkg-tool to use rather than bootstrap'
8
+ type: string
9
+ default: 'use default'
10
+ - name: triplet
11
+ type: string
12
+ default: 'x64-osx'
13
+ - name: jobName
14
+ type: string
15
+ default: 'x64_osx'
16
+ - name: poolName
17
+ type: string
18
+ - name: tripletPattern
19
+ displayName: 'Enable the triplets which contain this substring'
20
+ type: string
21
+ default: ''
22
+
23
+ jobs:
24
+ - job: ${{ parameters.jobName }}
25
+ condition: and(succeeded(), contains('^${{ parameters.triplet }}$', '${{ parameters.tripletPattern }}'))
26
+ pool:
27
+ name: ${{ parameters.poolName }}
28
+ workspace:
29
+ clean: resources
30
+ timeoutInMinutes: 2880 # 2 days
31
+ variables:
32
+ - name: WORKING_ROOT
33
+ value: /Users/vcpkg/Data
34
+ - name: VCPKG_DOWNLOADS
35
+ value: /Users/vcpkg/Data/downloads
36
+ - group: vcpkg-binary-caching-credentials
37
+ - name: X_VCPKG_BINARY_SOURCE_STUB
38
+ value: "x-azblob,$(root-bin-url-wus3),$(sas-bin-wus3)"
39
+ - group: vcpkg-asset-caching-credentials
40
+ - name: X_VCPKG_ASSET_SOURCES
41
+ value: "x-azurl,$(root-url-wus3),$(sas-wus3),readwrite"
42
+
43
+ steps:
44
+ - bash: |
45
+ sudo mkdir ${{ variables.VCPKG_DOWNLOADS }} || 0
46
+ sudo chmod 777 ${{ variables.VCPKG_DOWNLOADS }} || 0
47
+ exit 0
48
+ displayName: 'Create ${{ variables.VCPKG_DOWNLOADS }}'
49
+ - bash: ./bootstrap-vcpkg.sh
50
+ displayName: 'Bootstrap vcpkg'
51
+ condition: eq('use default', '${{ parameters.vcpkgToolSha }}')
52
+ - bash: ./scripts/azure-pipelines/bootstrap-from-source.sh ${{ parameters.vcpkgToolSha }}
53
+ displayName: "Build vcpkg with CMake"
54
+ condition: ne('use default', '${{ parameters.vcpkgToolSha }}')
55
+ - task: PowerShell@2
56
+ displayName: '*** Test Modified Ports'
57
+ inputs:
58
+ failOnStderr: true
59
+ filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
60
+ arguments: >
61
+ -Triplet ${{ parameters.triplet }}
62
+ -BuildReason "$(Build.Reason)"
63
+ -BinarySourceStub "${{ variables.X_VCPKG_BINARY_SOURCE_STUB }}"
64
+ -WorkingRoot "${{ variables.WORKING_ROOT }}"
65
+ -ArtifactStagingDirectory "$(Build.ArtifactStagingDirectory)"
66
+ pwsh: true
67
+ - task: PublishBuildArtifacts@1
68
+ displayName: 'Publish Artifact: failure logs for x64-osx'
69
+ inputs:
70
+ PathtoPublish: '$(Build.ArtifactStagingDirectory)/failure-logs'
71
+ ArtifactName: 'failure logs for ${{ parameters.triplet }}'
72
+ condition: ne(variables['FAILURE_LOGS_EMPTY'], 'True')
73
+ - bash: python3 scripts/file_script.py /Users/vcpkg/Data/installed/vcpkg/info/
74
+ displayName: 'Build a file list for all packages'
75
+ condition: always()
76
+ - task: PublishBuildArtifacts@1
77
+ displayName: 'Publish Artifact: file lists for ${{ parameters.triplet }}'
78
+ condition: always()
79
+ inputs:
80
+ PathtoPublish: scripts/list_files
81
+ ArtifactName: 'file lists for ${{ parameters.triplet }}'
82
+ - task: PublishTestResults@2
83
+ displayName: 'Publish Test Results'
84
+ condition: ne(variables['XML_RESULTS_FILE'], '')
85
+ inputs:
86
+ testRunTitle: ${{ parameters.triplet }}
87
+ testResultsFormat: xUnit
88
+ testResultsFiles: $(XML_RESULTS_FILE)
89
+ platform: ${{ parameters.triplet }}
90
+ configuration: static
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/osx/register-guest.sh ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ if [ -z "$1" ]; then
3
+ echo "PAT missing"
4
+ exit 1
5
+ fi
6
+ export AGENT=`hostname | sed -nr 's/([^.]+).+/\1/p'`
7
+ if [ `uname -m` = 'arm64' ]; then
8
+ export POOL=`echo ~/Parallels/* | sed -nr 's/\/Users\/vcpkg\/Parallels\/vcpkg-osx-([0-9]{4}-[0-9]{2}-[0-9]{2})-arm64/PrOsx-\1-arm64/p'`
9
+ # on arm64, DNS works
10
11
+ else
12
+ export POOL=`echo ~/Parallels/*.pvm | sed -nr 's/\/Users\/vcpkg\/Parallels\/vcpkg-osx-([0-9]{4}-[0-9]{2}-[0-9]{2})-amd64\.pvm/PrOsx-\1/p'`
13
+ # on amd64, DNS does not work, but luckily for us prlctl does know the IP
14
+ export GUEST_IP=`prlctl list --full | sed -nr 's/^.*running *([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/\1/p'`
15
+ export SSH_COOKIE=vcpkg@$GUEST_IP
16
+ fi
17
+ ssh $SSH_COOKIE -i ~/Parallels/*/id_guest -o StrictHostKeychecking=no "~/myagent/config.sh --unattended --url https://dev.azure.com/vcpkg --work ~/Data/work --auth pat --token $1 --pool $POOL --agent $AGENT --replace --acceptTeeEula"
18
+ if [ `uname -m` = 'arm64' ]; then
19
+ ssh $SSH_COOKIE -i ~/Parallels/*/id_guest -o StrictHostKeychecking=no "sudo shutdown -h now"
20
+ fi
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/osx/setup-box.sh ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ hdiutil attach clt.dmg -mountpoint /Volumes/setup-installer
3
+ sudo installer -pkg "/Volumes/setup-installer/Command Line Tools.pkg" -target /
4
+ hdiutil detach /Volumes/setup-installer
5
+ rm clt.dmg
6
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
7
+ if [ `uname -m` = 'arm64' ]; then
8
+ (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/vcpkg/.zprofile
9
+ eval "$(/opt/homebrew/bin/brew shellenv)"
10
+ else
11
+ (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/vcpkg/.zprofile
12
+ eval "$(/usr/local/bin/brew shellenv)"
13
+ fi
14
+ brew install autoconf-archive autoconf automake bison cmake gettext gfortran gperf gtk-doc libtool meson mono nasm ninja pkg-config powershell texinfo yasm
15
+ mkdir ~/Data
16
+ if [ `uname -m` = 'arm64' ]; then
17
+ curl -s -o ~/Downloads/azure-agent.tar.gz https://vstsagentpackage.azureedge.net/agent/3.232.1/vsts-agent-osx-arm64-3.232.1.tar.gz
18
+ else
19
+ curl -s -o ~/Downloads/azure-agent.tar.gz https://vstsagentpackage.azureedge.net/agent/3.232.1/vsts-agent-osx-x64-3.232.1.tar.gz
20
+ fi
21
+ mkdir ~/myagent
22
+ tar xf ~/Downloads/azure-agent.tar.gz -C ~/myagent
23
+ rm ~/Downloads/azure-agent.tar.gz
24
+ rm setup-box.sh
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/osx/setup-guest.sh ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+ export VM_DIRECTORY=`ls ~/Parallels | grep vcpkg-osx`
3
+ export SSH_KEY="$HOME/Parallels/$VM_DIRECTORY/id_guest"
4
+ export SSH_PUBLIC_KEY="$SSH_KEY.pub"
5
+ ssh-keygen -P '' -f "$SSH_KEY"
6
+ if [ `uname -m` = 'arm64' ]; then
7
+ # on arm64, prlctl does not know the IP address, but luckily for us DNS works
8
9
+ else
10
+ # on amd64, DNS does not work, but luckily for us prlctl does know the IP
11
+ export GUEST_IP=`prlctl list --full | sed -nr 's/^.*running *([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/\1/p'`
12
+ export SSH_COOKIE=vcpkg@$GUEST_IP
13
+ fi
14
+ echo Type 'vcpkg' and press enter
15
+ ssh-copy-id -o StrictHostKeychecking=no -i "$SSH_PUBLIC_KEY" $SSH_COOKIE
16
+ echo Keys deployed
17
+ ssh $SSH_COOKIE -o StrictHostKeychecking=no -i "$SSH_KEY" echo hello from \`hostname\`
18
+ scp -o StrictHostKeychecking=no -i "$SSH_KEY" ./setup-box.sh $SSH_COOKIE:/Users/vcpkg/setup-box.sh
19
+ ssh $SSH_COOKIE -o StrictHostKeychecking=no -i "$SSH_KEY" chmod +x /Users/vcpkg/setup-box.sh
20
+ ssh $SSH_COOKIE -o StrictHostKeychecking=no -i "$SSH_KEY" /Users/vcpkg/setup-box.sh
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/test-modified-ports.ps1 ADDED
@@ -0,0 +1,186 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+ #
4
+
5
+ <#
6
+ .SYNOPSIS
7
+ Runs the 'Test Modified Ports' part of the vcpkg CI system for all platforms.
8
+
9
+ .PARAMETER Triplet
10
+ The triplet to test.
11
+
12
+ .PARAMETER WorkingRoot
13
+ The location used as scratch space for 'installed', 'packages', and 'buildtrees' vcpkg directories.
14
+
15
+ .PARAMETER ArtifactStagingDirectory
16
+ The Azure Pipelines artifacts directory. If not supplied, defaults to the current directory.
17
+
18
+ .PARAMETER ArchivesRoot
19
+ Equivalent to '-BinarySourceStub "files,$ArchivesRoot"'
20
+
21
+ .PARAMETER BinarySourceStub
22
+ The type and parameters of the binary source. Shared across runs of this script. If
23
+ this parameter is not set, binary caching will not be used. Example: "files,W:\"
24
+
25
+ .PARAMETER BuildReason
26
+ The reason Azure Pipelines is running this script. For invocations caused by `PullRequest`,
27
+ modified ports are identified by changed hashes with regard to git HEAD~1 (subject to NoParentHashes),
28
+ and ports marked as failing in the CI baseline (or which depend on such ports) are skipped.
29
+ If BinarySourceStub is set and this parameter is set to a non-empty value other than `PullRequest`,
30
+ binary caching will be in write-only mode.
31
+
32
+ .PARAMETER NoParentHashes
33
+ Indicates to not use parent hashes even for pull requests.
34
+
35
+ .PARAMETER PassingIsPassing
36
+ Indicates that 'Passing, remove from fail list' results should not be emitted as failures. (For example, this is used
37
+ when using vcpkg to test a prerelease MSVC++ compiler)
38
+ #>
39
+
40
+ [CmdletBinding(DefaultParameterSetName="ArchivesRoot")]
41
+ Param(
42
+ [Parameter(Mandatory = $true)]
43
+ [ValidateNotNullOrEmpty()]
44
+ [string]$Triplet,
45
+ [Parameter(Mandatory = $true)]
46
+ [ValidateNotNullOrEmpty()]
47
+ $WorkingRoot,
48
+ [ValidateNotNullOrEmpty()]
49
+ $ArtifactStagingDirectory = '.',
50
+ [Parameter(ParameterSetName='ArchivesRoot')]
51
+ $ArchivesRoot = $null,
52
+ [Parameter(ParameterSetName='BinarySourceStub')]
53
+ $BinarySourceStub = $null,
54
+ [String]$BuildReason = $null,
55
+ [switch]$NoParentHashes = $false,
56
+ [switch]$PassingIsPassing = $false,
57
+ [switch]$IsLinuxHost = $false
58
+ )
59
+
60
+ if (-Not ((Test-Path "triplets/$Triplet.cmake") -or (Test-Path "triplets/community/$Triplet.cmake"))) {
61
+ Write-Error "Incorrect triplet '$Triplet', please supply a valid triplet."
62
+ throw
63
+ }
64
+
65
+ if ((-Not [string]::IsNullOrWhiteSpace($ArchivesRoot))) {
66
+ if ((-Not [string]::IsNullOrWhiteSpace($BinarySourceStub))) {
67
+ Write-Error "Only one binary caching setting may be used."
68
+ throw
69
+ }
70
+
71
+ $BinarySourceStub = "files,$ArchivesRoot"
72
+ }
73
+
74
+ $buildtreesRoot = Join-Path $WorkingRoot 'b'
75
+ $installRoot = Join-Path $WorkingRoot 'installed'
76
+ $packagesRoot = Join-Path $WorkingRoot 'p'
77
+
78
+ $commonArgs = @(
79
+ "--x-buildtrees-root=$buildtreesRoot",
80
+ "--x-install-root=$installRoot",
81
+ "--x-packages-root=$packagesRoot",
82
+ "--overlay-ports=scripts/test_ports"
83
+ )
84
+ $cachingArgs = @()
85
+
86
+ $skipFailuresArg = @()
87
+ if ([string]::IsNullOrWhiteSpace($BinarySourceStub)) {
88
+ $cachingArgs = @('--no-binarycaching')
89
+ } else {
90
+ $cachingArgs = @('--binarycaching')
91
+ $binaryCachingMode = 'readwrite'
92
+ if ([string]::IsNullOrWhiteSpace($BuildReason)) {
93
+ Write-Host 'Build reason not specified, defaulting to using binary caching in read write mode.'
94
+ }
95
+ elseif ($BuildReason -eq 'PullRequest') {
96
+ Write-Host 'Build reason was Pull Request, using binary caching in read write mode, skipping failures.'
97
+ $skipFailuresArg = @('--skip-failures')
98
+ }
99
+ else {
100
+ Write-Host "Build reason was $BuildReason, using binary caching in write only mode."
101
+ $binaryCachingMode = 'write'
102
+ }
103
+
104
+ $cachingArgs += @("--binarysource=clear;$BinarySourceStub,$binaryCachingMode")
105
+ }
106
+
107
+ if ($IsLinuxHost) {
108
+ $env:HOME = '/home/agent'
109
+ $executableExtension = [string]::Empty
110
+ }
111
+ elseif ($Triplet -eq 'x64-osx' -or $Triplet -eq 'arm64-osx') {
112
+ $executableExtension = [string]::Empty
113
+ }
114
+ else {
115
+ $executableExtension = '.exe'
116
+ }
117
+
118
+ $failureLogs = Join-Path $ArtifactStagingDirectory 'failure-logs'
119
+ $xunitFile = Join-Path $ArtifactStagingDirectory "$Triplet-results.xml"
120
+
121
+ if ($IsWindows)
122
+ {
123
+ mkdir empty
124
+ cmd /c "robocopy.exe empty `"$buildtreesRoot`" /MIR /NFL /NDL /NC /NP > nul"
125
+ cmd /c "robocopy.exe empty `"$packagesRoot`" /MIR /NFL /NDL /NC /NP > nul"
126
+ cmd /c "robocopy.exe empty `"$installRoot`" /MIR /NFL /NDL /NC /NP > nul"
127
+ rmdir empty
128
+ }
129
+
130
+ & "./vcpkg$executableExtension" x-ci-clean @commonArgs
131
+ if ($LASTEXITCODE -ne 0)
132
+ {
133
+ throw "vcpkg clean failed"
134
+ }
135
+
136
+ $parentHashes = @()
137
+ if (($BuildReason -eq 'PullRequest') -and -not $NoParentHashes)
138
+ {
139
+ $headBaseline = Get-Content "$PSScriptRoot/../ci.baseline.txt" -Raw
140
+
141
+ # Prefetch tools for better output
142
+ foreach ($tool in @('cmake', 'ninja', 'git')) {
143
+ & "./vcpkg$executableExtension" fetch $tool
144
+ if ($LASTEXITCODE -ne 0)
145
+ {
146
+ throw "Failed to fetch $tool"
147
+ }
148
+ }
149
+
150
+ Write-Host "Comparing with HEAD~1"
151
+ & git revert -n -m 1 HEAD | Out-Null
152
+ $parentBaseline = Get-Content "$PSScriptRoot/../ci.baseline.txt" -Raw
153
+ if ($parentBaseline -eq $headBaseline)
154
+ {
155
+ Write-Host "CI baseline unchanged, determining parent hashes"
156
+ $parentHashesFile = Join-Path $ArtifactStagingDirectory 'parent-hashes.json'
157
+ $parentHashes = @("--parent-hashes=$parentHashesFile")
158
+ # The vcpkg.cmake toolchain file is not part of ABI hashing,
159
+ # but changes must trigger at least some testing.
160
+ Copy-Item "scripts/buildsystems/vcpkg.cmake" -Destination "scripts/test_ports/cmake"
161
+ Copy-Item "scripts/buildsystems/vcpkg.cmake" -Destination "scripts/test_ports/cmake-user"
162
+ & "./vcpkg$executableExtension" ci "--triplet=$Triplet" --dry-run "--ci-baseline=$PSScriptRoot/../ci.baseline.txt" @commonArgs --no-binarycaching "--output-hashes=$parentHashesFile"
163
+ }
164
+ else
165
+ {
166
+ Write-Host "CI baseline was modified, not using parent hashes"
167
+ }
168
+ Write-Host "Running CI for HEAD"
169
+ & git reset --hard HEAD
170
+ }
171
+
172
+ # The vcpkg.cmake toolchain file is not part of ABI hashing,
173
+ # but changes must trigger at least some testing.
174
+ Copy-Item "scripts/buildsystems/vcpkg.cmake" -Destination "scripts/test_ports/cmake"
175
+ Copy-Item "scripts/buildsystems/vcpkg.cmake" -Destination "scripts/test_ports/cmake-user"
176
+ & "./vcpkg$executableExtension" ci "--triplet=$Triplet" --failure-logs=$failureLogs --x-xunit=$xunitFile "--ci-baseline=$PSScriptRoot/../ci.baseline.txt" @commonArgs @cachingArgs @parentHashes @skipFailuresArg
177
+
178
+ $failureLogsEmpty = (-Not (Test-Path $failureLogs) -Or ((Get-ChildItem $failureLogs).count -eq 0))
179
+ Write-Host "##vso[task.setvariable variable=FAILURE_LOGS_EMPTY]$failureLogsEmpty"
180
+
181
+ if ($LASTEXITCODE -ne 0)
182
+ {
183
+ throw "vcpkg ci failed"
184
+ }
185
+
186
+ Write-Host "##vso[task.setvariable variable=XML_RESULTS_FILE]$xunitFile"
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/azure-pipelines.yml ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+ #
4
+
5
+ parameters:
6
+ - name: vcpkgToolSha
7
+ displayName: 'Custom SHA of vcpkg-tool to use rather than bootstrap'
8
+ type: string
9
+ default: 'use default'
10
+ - name: triplet
11
+ type: string
12
+ default: 'x86-windows'
13
+ - name: jobName
14
+ type: string
15
+ default: 'x86_windows'
16
+ - name: poolName
17
+ type: string
18
+ - name: tripletPattern
19
+ displayName: 'Enable the triplets which contain this substring'
20
+ type: string
21
+ default: ''
22
+
23
+ jobs:
24
+ - job: ${{ parameters.jobName }}
25
+ condition: and(succeeded(), contains('^${{ parameters.triplet }}$', '${{ parameters.tripletPattern }}'))
26
+ pool:
27
+ name: ${{ parameters.poolName }}
28
+ workspace:
29
+ clean: resources
30
+ timeoutInMinutes: 2880 # 2 days
31
+ variables:
32
+ - name: WORKING_ROOT
33
+ value: D:\
34
+ - name: VCPKG_DOWNLOADS
35
+ value: D:\downloads
36
+ - name: DiffFile
37
+ value: $(Build.ArtifactStagingDirectory)\format.diff
38
+ - name: ExtraChecksTriplet
39
+ value: x86-windows
40
+ - group: vcpkg-asset-caching-credentials
41
+ - name: X_VCPKG_ASSET_SOURCES
42
+ value: "x-azurl,$(root-url-wus3),$(sas-wus3),readwrite"
43
+ - group: vcpkg-binary-caching-credentials
44
+ - name: X_VCPKG_BINARY_SOURCE_STUB
45
+ value: "x-azblob,$(root-bin-url-wus3),$(sas-bin-wus3)"
46
+
47
+ steps:
48
+ - script: .\bootstrap-vcpkg.bat
49
+ displayName: 'Bootstrap vcpkg'
50
+ condition: eq('use default', '${{ parameters.vcpkgToolSha }}')
51
+ - script: .\scripts\azure-pipelines\windows\bootstrap-from-source.cmd ${{ parameters.vcpkgToolSha }}
52
+ displayName: "Build vcpkg with CMake"
53
+ condition: ne('use default', '${{ parameters.vcpkgToolSha }}')
54
+ - script: '.\vcpkg.exe format-manifest --all'
55
+ displayName: 'Format Manifests'
56
+ condition: eq('${{ parameters.triplet }}', '${{ variables.ExtraChecksTriplet }}')
57
+ - task: Powershell@2
58
+ displayName: 'Create Diff'
59
+ condition: eq('${{ parameters.triplet }}', '${{ variables.ExtraChecksTriplet }}')
60
+ inputs:
61
+ filePath: scripts/azure-pipelines/Create-PRDiff.ps1
62
+ arguments: "-DiffFile '$(DiffFile)'"
63
+ pwsh: true
64
+ - task: PublishBuildArtifacts@1
65
+ displayName: 'Publish Format and Documentation Diff'
66
+ condition: and(eq('${{ parameters.triplet }}', '${{ variables.ExtraChecksTriplet }}'), failed())
67
+ inputs:
68
+ PathtoPublish: '$(DiffFile)'
69
+ ArtifactName: 'format.diff'
70
+ - task: PowerShell@2
71
+ displayName: '*** Test Modified Ports'
72
+ inputs:
73
+ failOnStderr: true
74
+ filePath: 'scripts/azure-pipelines/test-modified-ports.ps1'
75
+ arguments: '-Triplet ${{ parameters.triplet }} -BuildReason $(Build.Reason) -BinarySourceStub "$(X_VCPKG_BINARY_SOURCE_STUB)" -WorkingRoot ${{ variables.WORKING_ROOT }} -ArtifactStagingDirectory $(Build.ArtifactStagingDirectory)'
76
+ pwsh: true
77
+ - task: PowerShell@2
78
+ displayName: 'Validate version files'
79
+ condition: eq('${{ parameters.triplet }}', '${{ variables.ExtraChecksTriplet }}')
80
+ inputs:
81
+ filePath: 'scripts/azure-pipelines/windows/validate-version-files.ps1'
82
+ pwsh: true
83
+ - task: PublishBuildArtifacts@1
84
+ displayName: 'Publish Artifact: failure logs for ${{ parameters.triplet }}'
85
+ inputs:
86
+ PathtoPublish: '$(Build.ArtifactStagingDirectory)\failure-logs'
87
+ ArtifactName: 'failure logs for ${{ parameters.triplet }}'
88
+ condition: ne(variables['FAILURE_LOGS_EMPTY'], 'True')
89
+ - task: PowerShell@2
90
+ displayName: 'Build a file list for all packages'
91
+ condition: always()
92
+ inputs:
93
+ targetType: inline
94
+ script: |
95
+ ./vcpkg.exe fetch python3
96
+ & $(.\vcpkg fetch python3) .\scripts\file_script.py D:\installed\vcpkg\info\
97
+ pwsh: true
98
+ - task: PublishBuildArtifacts@1
99
+ displayName: 'Publish Artifact: file lists for ${{ parameters.triplet }}'
100
+ condition: always()
101
+ inputs:
102
+ PathtoPublish: scripts/list_files
103
+ ArtifactName: 'file lists for ${{ parameters.triplet }}'
104
+ - task: PublishTestResults@2
105
+ displayName: 'Publish Test Results'
106
+ condition: ne(variables['XML_RESULTS_FILE'], '')
107
+ inputs:
108
+ testRunTitle: ${{ parameters.triplet }}
109
+ testResultsFormat: xUnit
110
+ testResultsFiles: $(XML_RESULTS_FILE)
111
+ platform: ${{ parameters.triplet }}
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/bootstrap-from-source.cmd ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=x86 -host_arch=x86
2
+ git clone https://github.com/microsoft/vcpkg-tool vcpkg-tool
3
+ git -C vcpkg-tool switch -d %1
4
+ rmdir /s /q build.x86.release > nul 2> nul
5
+ cmake.exe -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DVCPKG_DEVELOPMENT_WARNINGS=OFF -DVCPKG_WARNINGS_AS_ERRORS=OFF -DVCPKG_BUILD_FUZZING=OFF -DVCPKG_BUILD_TLS12_DOWNLOADER=OFF -B build.x86.release -S vcpkg-tool
6
+ ninja.exe -C build.x86.release
7
+ move build.x86.release\vcpkg.exe vcpkg.exe
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/create-image.ps1 ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+ #
4
+
5
+ <#
6
+ .SYNOPSIS
7
+ Creates a Windows virtual machine image, set up for vcpkg's CI.
8
+
9
+ .DESCRIPTION
10
+ create-image.ps1 creates an Azure Windows VM image, set up for vcpkg's CI system.
11
+
12
+ This script assumes you have installed Azure tools into PowerShell by following the instructions
13
+ at https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-3.6.1
14
+ or are running from Azure Cloud Shell.
15
+ #>
16
+
17
+ $Location = 'westus3'
18
+ $DatePrefixComponent = Get-Date -Format 'yyyy-MM-dd'
19
+ $Prefix = "Win-$DatePrefixComponent"
20
+ $GalleryImageVersion = $DatePrefixComponent.Replace('-','.')
21
+ $VMSize = 'Standard_D8ads_v5'
22
+ $ProtoVMName = 'PROTOTYPE'
23
+ $WindowsServerSku = '2022-datacenter-azure-edition'
24
+ $ErrorActionPreference = 'Stop'
25
+
26
+ $ProgressActivity = 'Creating Windows Image'
27
+ $TotalProgress = 17
28
+ $CurrentProgress = 1
29
+
30
+ # Assigning this to another variable helps when running the commands in this script manually for
31
+ # debugging
32
+ $Root = $PSScriptRoot
33
+
34
+ Import-Module "$Root/../create-vmss-helpers.psm1" -DisableNameChecking -Force
35
+
36
+ $AdminPW = New-Password
37
+ $AdminPWSecure = ConvertTo-SecureString $AdminPW -AsPlainText -Force
38
+ $Credential = New-Object System.Management.Automation.PSCredential ("AdminUser", $AdminPWSecure)
39
+
40
+ $VirtualNetwork = Get-AzVirtualNetwork -ResourceGroupName 'vcpkg-image-minting' -Name 'vcpkg-image-mintingNetwork'
41
+
42
+ ####################################################################################################
43
+ Write-Progress `
44
+ -Activity $ProgressActivity `
45
+ -Status 'Creating prototype VM' `
46
+ -PercentComplete (100 / $TotalProgress * $CurrentProgress++)
47
+
48
+ $NicName = $Prefix + 'NIC'
49
+ $Nic = New-AzNetworkInterface `
50
+ -Name $NicName `
51
+ -ResourceGroupName 'vcpkg-image-minting' `
52
+ -Location $Location `
53
+ -Subnet $VirtualNetwork.Subnets[0] `
54
+ -EnableAcceleratedNetworking
55
+
56
+ $VM = New-AzVMConfig -Name $ProtoVMName -VMSize $VMSize -SecurityType TrustedLaunch -IdentityType SystemAssigned
57
+ $VM = Set-AzVMOperatingSystem `
58
+ -VM $VM `
59
+ -Windows `
60
+ -ComputerName $ProtoVMName `
61
+ -Credential $Credential `
62
+ -ProvisionVMAgent
63
+
64
+ $VM = Add-AzVMNetworkInterface -VM $VM -Id $Nic.Id
65
+ $VM = Set-AzVMOSDisk -VM $VM -StorageAccountType 'Premium_LRS' -CreateOption 'FromImage'
66
+ $VM = Set-AzVMSourceImage `
67
+ -VM $VM `
68
+ -PublisherName 'MicrosoftWindowsServer' `
69
+ -Offer 'WindowsServer' `
70
+ -Skus $WindowsServerSku `
71
+ -Version latest
72
+
73
+ $VM = Set-AzVMBootDiagnostic -VM $VM -Disable
74
+ New-AzVm `
75
+ -ResourceGroupName 'vcpkg-image-minting' `
76
+ -Location $Location `
77
+ -VM $VM
78
+
79
+ $VMCreated = Get-AzVM -ResourceGroupName 'vcpkg-image-minting' -Name $ProtoVMName
80
+ $VMCreatedOsDisk = $VMCreated.StorageProfile.OsDisk.Name
81
+
82
+ ####################################################################################################
83
+ Write-Progress `
84
+ -Activity $ProgressActivity `
85
+ -Status 'Granting permissions to use vcpkg-image-minting storage account' `
86
+ -PercentComplete (100 / $TotalProgress * $CurrentProgress++)
87
+
88
+ $VcpkgImageMintingAccount = Get-AzStorageAccount -ResourceGroupName 'vcpkg-image-minting' -Name 'vcpkgimageminting'
89
+
90
+ # Grant 'Storage Blob Data Reader' (RoleDefinitionId 2a2b9908-6ea1-4ae2-8e65-a410df84e7d1) to the VM
91
+ New-AzRoleAssignment `
92
+ -Scope $VcpkgImageMintingAccount.ID `
93
+ -RoleDefinitionId '2a2b9908-6ea1-4ae2-8e65-a410df84e7d1' `
94
+ -ObjectId $VMCreated.Identity.PrincipalId
95
+
96
+ ####################################################################################################
97
+ Write-Progress `
98
+ -Activity $ProgressActivity `
99
+ -Status 'Running provisioning script deploy-tlssettings.ps1 in VM' `
100
+ -PercentComplete (100 / $TotalProgress * $CurrentProgress++)
101
+
102
+ $ProvisionImageResult = Invoke-AzVMRunCommandWithRetries `
103
+ -ResourceGroupName 'vcpkg-image-minting' `
104
+ -VMName $ProtoVMName `
105
+ -CommandId 'RunPowerShellScript' `
106
+ -ScriptPath "$Root\deploy-tlssettings.ps1"
107
+
108
+ Write-Host "deploy-tlssettings.ps1 output: $($ProvisionImageResult.value.Message)"
109
+ Write-Host 'Waiting 1 minute for VM to reboot...'
110
+ Start-Sleep -Seconds 60
111
+
112
+ ####################################################################################################
113
+ Write-Progress `
114
+ -Activity $ProgressActivity `
115
+ -Status 'Running provisioning script deploy-psexec.ps1 in VM' `
116
+ -PercentComplete (100 / $TotalProgress * $CurrentProgress++)
117
+
118
+ $DeployPsExecResult = Invoke-AzVMRunCommandWithRetries `
119
+ -ResourceGroupName 'vcpkg-image-minting' `
120
+ -VMName $ProtoVMName `
121
+ -CommandId 'RunPowerShellScript' `
122
+ -ScriptPath "$Root\deploy-psexec.ps1"
123
+
124
+ Write-Host "deploy-psexec.ps1 output: $($DeployPsExecResult.value.Message)"
125
+
126
+ ####################################################################################################
127
+ function Invoke-ScriptWithPrefix {
128
+ param(
129
+ [string]$ScriptName,
130
+ [switch]$AddAdminPw
131
+ )
132
+
133
+ Write-Progress `
134
+ -Activity $ProgressActivity `
135
+ -Status "Running provisioning script $ScriptName in VM" `
136
+ -PercentComplete (100 / $TotalProgress * $CurrentProgress++)
137
+
138
+ $DropToAdminUserPrefix = Get-Content "$Root\drop-to-admin-user-prefix.ps1" -Encoding utf8NoBOM -Raw
139
+ $UtilityPrefixContent = Get-Content "$Root\utility-prefix.ps1" -Encoding utf8NoBOM -Raw
140
+
141
+ $tempScriptFilename = "$env:TEMP\temp-script.txt"
142
+ try {
143
+ $script = Get-Content "$Root\$ScriptName" -Encoding utf8NoBOM -Raw
144
+ if ($AddAdminPw) {
145
+ $script = $script.Replace('# REPLACE WITH DROP-TO-ADMIN-USER-PREFIX.ps1', $DropToAdminUserPrefix)
146
+ }
147
+
148
+ $script = $script.Replace('# REPLACE WITH UTILITY-PREFIX.ps1', $UtilityPrefixContent);
149
+ Set-Content -Path $tempScriptFilename -Value $script -Encoding utf8NoBOM
150
+
151
+ $parameter = $null
152
+ if ($AddAdminPw) {
153
+ $parameter = @{AdminUserPassword = $AdminPW;}
154
+ }
155
+
156
+ $InvokeResult = Invoke-AzVMRunCommandWithRetries `
157
+ -ResourceGroupName 'vcpkg-image-minting' `
158
+ -VMName $ProtoVMName `
159
+ -CommandId 'RunPowerShellScript' `
160
+ -ScriptPath $tempScriptFilename `
161
+ -Parameter $parameter
162
+
163
+ Write-Host "$ScriptName output: $($InvokeResult.value.Message)"
164
+ } finally {
165
+ Remove-Item $tempScriptFilename -Force
166
+ }
167
+ }
168
+
169
+ Invoke-ScriptWithPrefix -ScriptName 'deploy-azcopy.ps1'
170
+
171
+ ####################################################################################################
172
+ Invoke-ScriptWithPrefix -ScriptName 'deploy-windows-sdks.ps1' -AddAdminPw
173
+
174
+ ####################################################################################################
175
+ Invoke-ScriptWithPrefix -ScriptName 'deploy-visual-studio.ps1' -AddAdminPw
176
+
177
+ ####################################################################################################
178
+ Invoke-ScriptWithPrefix -ScriptName 'deploy-mpi.ps1' -AddAdminPw
179
+
180
+ ####################################################################################################
181
+ Invoke-ScriptWithPrefix -ScriptName 'deploy-cuda.ps1' -AddAdminPw
182
+
183
+ ####################################################################################################
184
+ Invoke-ScriptWithPrefix -ScriptName 'deploy-inteloneapi.ps1' -AddAdminPw
185
+
186
+ ####################################################################################################
187
+ Invoke-ScriptWithPrefix -ScriptName 'deploy-pwsh.ps1' -AddAdminPw
188
+
189
+ ####################################################################################################
190
+ Write-Progress `
191
+ -Activity $ProgressActivity `
192
+ -Status 'Running provisioning script deploy-settings.txt (as a .ps1) in VM' `
193
+ -PercentComplete (100 / $TotalProgress * $CurrentProgress++)
194
+
195
+ $ProvisionImageResult = Invoke-AzVMRunCommandWithRetries `
196
+ -ResourceGroupName 'vcpkg-image-minting' `
197
+ -VMName $ProtoVMName `
198
+ -CommandId 'RunPowerShellScript' `
199
+ -ScriptPath "$Root\deploy-settings.txt"
200
+
201
+ Write-Host "deploy-settings.txt output: $($ProvisionImageResult.value.Message)"
202
+ Restart-AzVM -ResourceGroupName 'vcpkg-image-minting' -Name $ProtoVMName
203
+
204
+ ####################################################################################################
205
+ Write-Progress `
206
+ -Activity $ProgressActivity `
207
+ -Status 'Running provisioning script sysprep.ps1 in VM' `
208
+ -PercentComplete (100 / $TotalProgress * $CurrentProgress++)
209
+
210
+ $SysprepResult = Invoke-AzVMRunCommandWithRetries `
211
+ -ResourceGroupName 'vcpkg-image-minting' `
212
+ -VMName $ProtoVMName `
213
+ -CommandId 'RunPowerShellScript' `
214
+ -ScriptPath "$Root\sysprep.ps1"
215
+
216
+ Write-Host "sysprep.ps1 output: $($SysprepResult.value.Message)"
217
+
218
+ ####################################################################################################
219
+ Write-Progress `
220
+ -Activity $ProgressActivity `
221
+ -Status 'Waiting for VM to shut down' `
222
+ -PercentComplete (100 / $TotalProgress * $CurrentProgress++)
223
+
224
+ Wait-Shutdown -ResourceGroupName 'vcpkg-image-minting' -Name $ProtoVMName
225
+
226
+ ####################################################################################################
227
+ Write-Progress `
228
+ -Activity $ProgressActivity `
229
+ -Status 'Converting VM to Image' `
230
+ -PercentComplete (100 / $TotalProgress * $CurrentProgress++)
231
+
232
+ Stop-AzVM `
233
+ -ResourceGroupName 'vcpkg-image-minting' `
234
+ -Name $ProtoVMName `
235
+ -Force
236
+
237
+ Set-AzVM `
238
+ -ResourceGroupName 'vcpkg-image-minting' `
239
+ -Name $ProtoVMName `
240
+ -Generalized
241
+
242
+ New-AzGalleryImageVersion `
243
+ -ResourceGroupName 'vcpkg-image-minting' `
244
+ -GalleryName 'vcpkg_gallery_wus3' `
245
+ -GalleryImageDefinitionName 'PrWinWus3-TrustedLaunch' `
246
+ -Name $GalleryImageVersion `
247
+ -Location $Location `
248
+ -SourceImageId $VMCreated.ID `
249
+ -ReplicaCount 1 `
250
+ -StorageAccountType 'Premium_LRS' `
251
+ -PublishingProfileExcludeFromLatest
252
+
253
+ ####################################################################################################
254
+ Write-Progress `
255
+ -Activity $ProgressActivity `
256
+ -Status 'Deleting unused temporary resources' `
257
+ -PercentComplete (100 / $TotalProgress * $CurrentProgress++)
258
+
259
+ Remove-AzRoleAssignment `
260
+ -Scope $VcpkgImageMintingAccount.ID `
261
+ -RoleDefinitionId '2a2b9908-6ea1-4ae2-8e65-a410df84e7d1' `
262
+ -ObjectId $VMCreated.Identity.PrincipalId
263
+
264
+ Remove-AzVM -Id $VMCreated.ID -Force
265
+ Remove-AzDisk -ResourceGroupName 'vcpkg-image-minting' -Name $VMCreatedOsDisk -Force
266
+ Remove-AzNetworkInterface -ResourceGroupName 'vcpkg-image-minting' -Name $NicName -Force
267
+
268
+ ####################################################################################################
269
+ Write-Progress -Activity $ProgressActivity -Completed
270
+ Write-Host "Generated Image: $GalleryImageVersion"
271
+ Write-Host 'Finished!'
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-azcopy.ps1 ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ $azcopyZipPath = "$PSScriptRoot\azcopyv10.zip"
2
+ & curl.exe -L -o $azcopyZipPath 'https://azcopyvnext.azureedge.net/releases/release-10.23.0-20240129/azcopy_windows_amd64_10.23.0.zip'
3
+ Expand-Archive -LiteralPath $azcopyZipPath -DestinationPath $env:PROGRAMFILES
4
+ Remove-Item -LiteralPath $azcopyZipPath -Force
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-cuda.ps1 ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # REPLACE WITH DROP-TO-ADMIN-USER-PREFIX.ps1
5
+
6
+ # REPLACE WITH UTILITY-PREFIX.ps1
7
+
8
+ # If you are running this script outside of our Azure VMs, you will need to download cudnn from NVIDIA and place
9
+ # it next to this script.
10
+ $CudnnUrl = 'https://vcpkgimageminting.blob.core.windows.net/assets/cudnn-windows-x86_64-8.8.1.3_cuda12-archive.zip'
11
+
12
+ $CudnnLocalZipPath = "$PSScriptRoot\cudnn-windows-x86_64-8.8.1.3_cuda12-archive.zip"
13
+
14
+ $CudaUrl = 'https://developer.download.nvidia.com/compute/cuda/12.1.0/network_installers/cuda_12.1.0_windows_network.exe'
15
+
16
+ # https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html
17
+ # Intentionally omitted:
18
+ # demo_suite_12.1
19
+ # documentation_12.1
20
+ # nvvm_samples_12.1
21
+ # Display.Driver
22
+
23
+ $CudaInstallerArgs = @(
24
+ '-s',
25
+ 'cublas_12.1',
26
+ 'cublas_dev_12.1',
27
+ 'cuda_profiler_api_12.1',
28
+ 'cudart_12.1',
29
+ 'cufft_12.1',
30
+ 'cufft_dev_12.1',
31
+ 'cuobjdump_12.1',
32
+ 'cupti_12.1',
33
+ 'curand_12.1',
34
+ 'curand_dev_12.1',
35
+ 'cusolver_12.1',
36
+ 'cusolver_dev_12.1',
37
+ 'cusparse_12.1',
38
+ 'cusparse_dev_12.1',
39
+ 'cuxxfilt_12.1',
40
+ 'npp_12.1',
41
+ 'npp_dev_12.1',
42
+ 'nsight_compute_12.1',
43
+ 'nsight_systems_12.1',
44
+ 'nsight_vse_12.1',
45
+ 'nvcc_12.1',
46
+ 'nvdisasm_12.1',
47
+ 'nvjitlink_12.1',
48
+ 'nvjpeg_12.1',
49
+ 'nvjpeg_dev_12.1',
50
+ 'nvml_dev_12.1',
51
+ 'nvprof_12.1',
52
+ 'nvprune_12.1',
53
+ 'nvrtc_12.1',
54
+ 'nvrtc_dev_12.1',
55
+ 'nvtx_12.1',
56
+ 'occupancy_calculator_12.1',
57
+ 'opencl_12.1',
58
+ 'sanitizer_12.1',
59
+ 'thrust_12.1',
60
+ 'visual_profiler_12.1',
61
+ 'visual_studio_integration_12.1'
62
+ )
63
+
64
+ $destination = "$env:ProgramFiles\NVIDIA GPU Computing Toolkit\CUDA\v12.1"
65
+
66
+ try {
67
+ Write-Host 'Downloading CUDA...'
68
+ [string]$installerPath = Get-TempFilePath -Extension 'exe'
69
+ curl.exe -L -o $installerPath -s -S $CudaUrl
70
+ Write-Host 'Installing CUDA...'
71
+ $proc = Start-Process -FilePath $installerPath -ArgumentList $CudaInstallerArgs -Wait -PassThru
72
+ $exitCode = $proc.ExitCode
73
+ if ($exitCode -eq 0) {
74
+ Write-Host 'Installation successful!'
75
+ }
76
+ else {
77
+ Write-Error "Installation failed! Exited with $exitCode."
78
+ throw
79
+ }
80
+ }
81
+ catch {
82
+ Write-Error "Failed to install CUDA! $($_.Exception.Message)"
83
+ throw
84
+ }
85
+
86
+ try {
87
+ if (Test-Path $CudnnLocalZipPath) {
88
+ $cudnnZipPath = $CudnnLocalZipPath
89
+ } else {
90
+ Write-Host 'Attempting to download cudnn. If this fails, you need to agree to NVidia''s EULA, download cudnn, and place it next to this script.'
91
+ $cudnnZipPath = Get-TempFilePath -Extension 'zip'
92
+ $env:AZCOPY_AUTO_LOGIN_TYPE = 'MSI'
93
+ & "$env:PROGRAMFILES\azcopy_windows_amd64_10.23.0\azcopy.exe" copy $CudnnUrl $cudnnZipPath
94
+ if ($LASTEXITCODE -ne 0) {
95
+ throw 'Failed to download cudnn!'
96
+ }
97
+ }
98
+
99
+ Write-Host "Installing CUDNN to $destination..."
100
+ tar.exe -xvf "$cudnnZipPath" --strip 1 --directory "$destination"
101
+ Write-Host 'Installation successful!'
102
+ }
103
+ catch {
104
+ Write-Error "Failed to install CUDNN! $($_.Exception.Message)"
105
+ throw
106
+ }
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-install-disk.ps1 ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # REPLACE WITH UTILITY-PREFIX.ps1
5
+
6
+ <#
7
+ .SYNOPSIS
8
+ Partitions a new physical disk.
9
+ .DESCRIPTION
10
+ Takes the disk $DiskNumber, turns it on, then partitions it for use with label
11
+ $Label and drive letter $Letter.
12
+ .PARAMETER DiskNumber
13
+ The number of the disk to set up.
14
+ .PARAMETER Letter
15
+ The drive letter at which to mount the disk.
16
+ .PARAMETER Label
17
+ The label to give the disk.
18
+ #>
19
+ Function New-PhysicalDisk {
20
+ Param(
21
+ [int]$DiskNumber,
22
+ [string]$Letter,
23
+ [string]$Label
24
+ )
25
+ if ($Letter.Length -ne 1) {
26
+ throw "Bad drive letter $Letter, expected only one letter. (Did you accidentially add a : ?)"
27
+ }
28
+
29
+ try {
30
+ Write-Host "Attempting to online physical disk $DiskNumber"
31
+ [string]$diskpartScriptPath = Get-TempFilePath -Extension 'txt'
32
+ [string]$diskpartScriptContent =
33
+ "SELECT DISK $DiskNumber`r`n" +
34
+ "ONLINE DISK`r`n"
35
+
36
+ Write-Host "Writing diskpart script to $diskpartScriptPath with content:"
37
+ Write-Host $diskpartScriptContent
38
+ Set-Content -Path $diskpartScriptPath -Value $diskpartScriptContent
39
+ Write-Host 'Invoking DISKPART...'
40
+ & diskpart.exe /s $diskpartScriptPath
41
+
42
+ Write-Host "Provisioning physical disk $DiskNumber as drive $Letter"
43
+ [string]$diskpartScriptContent =
44
+ "SELECT DISK $DiskNumber`r`n" +
45
+ "ATTRIBUTES DISK CLEAR READONLY`r`n" +
46
+ "CREATE PARTITION PRIMARY`r`n" +
47
+ "FORMAT FS=NTFS LABEL=`"$Label`" QUICK`r`n" +
48
+ "ASSIGN LETTER=$Letter`r`n"
49
+ Write-Host "Writing diskpart script to $diskpartScriptPath with content:"
50
+ Write-Host $diskpartScriptContent
51
+ Set-Content -Path $diskpartScriptPath -Value $diskpartScriptContent
52
+ Write-Host 'Invoking DISKPART...'
53
+ & diskpart.exe /s $diskpartScriptPath
54
+ }
55
+ catch {
56
+ Write-Error "Failed to provision physical disk $DiskNumber as drive $Letter! $($_.Exception.Message)"
57
+ }
58
+ }
59
+
60
+ New-PhysicalDisk -DiskNumber 1 -Letter 'E' -Label 'install disk'
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-inteloneapi.ps1 ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # REPLACE WITH DROP-TO-ADMIN-USER-PREFIX.ps1
5
+
6
+ # REPLACE WITH UTILITY-PREFIX.ps1
7
+
8
+ $oneAPIBaseUrl = 'https://registrationcenter-download.intel.com/akdlm/IRC_NAS/19085/w_HPCKit_p_2023.0.0.25931_offline.exe'
9
+ $oneAPIHPCComponents = 'intel.oneapi.win.cpp-compiler:intel.oneapi.win.ifort-compiler'
10
+
11
+ <#
12
+ .SYNOPSIS
13
+ Installs Intel oneAPI compilers and toolsets. Examples for CI can be found here: https://github.com/oneapi-src/oneapi-ci
14
+
15
+ .DESCRIPTION
16
+ InstallInteloneAPI installs the Intel oneAPI Compiler & Toolkit with the components specified as a
17
+ :-separated list of strings in $Components.
18
+
19
+ .PARAMETER Url
20
+ The URL of the Intel Toolkit installer.
21
+
22
+ .PARAMETER Components
23
+ A :-separated list of components to install.
24
+ #>
25
+ Function InstallInteloneAPI {
26
+ Param(
27
+ [String]$Url,
28
+ [String]$Components
29
+ )
30
+
31
+ try {
32
+ [string]$installerPath = Get-TempFilePath -Extension 'exe'
33
+ [string]$extractionPath = [System.IO.Path]::GetTempPath() + [System.IO.Path]::GetRandomFileName()
34
+ Write-Host 'Downloading Intel oneAPI...to: ' $installerPath
35
+ curl.exe -L -o $installerPath -s -S $Url
36
+ Write-Host 'Extracting Intel oneAPI...to folder: ' $extractionPath
37
+ $proc = Start-Process -FilePath $installerPath -ArgumentList @('-s ', '-x ', '-f ' + $extractionPath , '--log extract.log') -Wait -PassThru
38
+ Write-Host 'Install Intel oneAPI...from folder: ' $extractionPath
39
+ $proc = Start-Process -FilePath $extractionPath/bootstrapper.exe -ArgumentList @('-s ', '--action install', "--components=$Components" , '--eula=accept', '-p=NEED_VS2017_INTEGRATION=0', '-p=NEED_VS2019_INTEGRATION=0', '-p=NEED_VS2022_INTEGRATION=0', '--log-dir=.') -Wait -PassThru
40
+ $exitCode = $proc.ExitCode
41
+ if ($exitCode -eq 0) {
42
+ Write-Host 'Installation successful!'
43
+ }
44
+ else {
45
+ Write-Error "Installation failed! Exited with $exitCode."
46
+ throw
47
+ }
48
+ }
49
+ catch {
50
+ Write-Error "Failed to install Intel oneAPI! $($_.Exception.Message)"
51
+ throw
52
+ }
53
+ }
54
+
55
+ InstallInteloneAPI -Url $oneAPIBaseUrl -Components $oneAPIHPCComponents
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-mpi.ps1 ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # REPLACE WITH DROP-TO-ADMIN-USER-PREFIX.ps1
5
+
6
+ # REPLACE WITH UTILITY-PREFIX.ps1
7
+
8
+ $MpiUrl = 'https://download.microsoft.com/download/a/5/2/a5207ca5-1203-491a-8fb8-906fd68ae623/msmpisetup.exe'
9
+
10
+ <#
11
+ .SYNOPSIS
12
+ Installs MPI
13
+
14
+ .DESCRIPTION
15
+ Downloads the MPI installer located at $Url, and installs it with the
16
+ correct flags.
17
+
18
+ .PARAMETER Url
19
+ The URL of the installer.
20
+ #>
21
+ Function InstallMpi {
22
+ Param(
23
+ [String]$Url
24
+ )
25
+
26
+ try {
27
+ Write-Host 'Downloading MPI...'
28
+ [string]$installerPath = Get-TempFilePath -Extension 'exe'
29
+ curl.exe -L -o $installerPath -s -S $Url
30
+ Write-Host 'Installing MPI...'
31
+ $proc = Start-Process -FilePath $installerPath -ArgumentList @('-force', '-unattend') -Wait -PassThru
32
+ $exitCode = $proc.ExitCode
33
+ if ($exitCode -eq 0) {
34
+ Write-Host 'Installation successful!'
35
+ }
36
+ else {
37
+ Write-Error "Installation failed! Exited with $exitCode."
38
+ throw
39
+ }
40
+ }
41
+ catch {
42
+ Write-Error "Failed to install MPI! $($_.Exception.Message)"
43
+ throw
44
+ }
45
+ }
46
+
47
+ InstallMpi -Url $MpiUrl
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-psexec.ps1 ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ $ErrorActionPreference = 'Stop'
5
+ $ProgressPreference = 'SilentlyContinue'
6
+ $PsExecPath = 'C:\PsExec64.exe'
7
+ Write-Host "Downloading psexec to: $PsExecPath"
8
+ & curl.exe -L -o $PsExecPath -s -S https://live.sysinternals.com/PsExec64.exe
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-pwsh.ps1 ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # REPLACE WITH DROP-TO-ADMIN-USER-PREFIX.ps1
5
+
6
+ # REPLACE WITH UTILITY-PREFIX.ps1
7
+
8
+ $PwshUrl = 'https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/PowerShell-7.4.1-win-x64.msi'
9
+ InstallMSI -Url $PwshUrl -Name 'PowerShell Core'
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-tlssettings.ps1 ADDED
@@ -0,0 +1,738 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************************************************
2
+ # This script supports the TLS 1.2 everywhere project
3
+ # It does the following:
4
+ # * By default it disables TLS 1.O, TLS 1.1, SSLv2, SSLv3 and Enables TLS1.2
5
+ # * The CipherSuite order is set to the SDL approved version.
6
+ # * The FIPS MinEncryptionLevel is set to 3.
7
+ # * RC4 is disabled
8
+ # * A log with a transcript of all actions taken is generated
9
+ #***************************************************************************************************************
10
+
11
+ #************************************************ SCRIPT USAGE ************************************************
12
+ # .\TLSSettings.ps1
13
+ # -SetCipherOrder : Excellence/Min-Bar, default(Excellence), use B to set Min-Bar. (Min-Bar ordering prefers ciphers with smaller key sizes to improve performance over security)
14
+ # -RebootIfRequired : $true/$false, default($true), use $false to disable auto-reboot (Settings won't take effect until a reboot is completed)
15
+ # -EnableOlderTlsVersions : $true/$false, default($false), use $true to explicitly Enable TLS1.0, TLS1.1
16
+ #***************************************************************************************************************
17
+
18
+ #***************************TEAM CAN DETERMINE WHAT CIPHER SUITE ORDER IS CHOSEN ******************************
19
+ # Option B provides the min-bar configuration (small trade-off: performance over security)
20
+ # Syntax: .\TLSSettings.ps1 -SetCipherOrder B
21
+ # if no option is supplied, you will get the opportunity for excellence cipher order (small trade-off: security over performance)
22
+ # Syntax: .\TLSSettings.ps1
23
+ #***************************************************************************************************************
24
+
25
+ param (
26
+ [string]$SetCipherOrder = " ",
27
+ [bool]$RebootIfRequired = $true,
28
+ [bool]$EnableOlderTlsVersions = $false
29
+ )
30
+
31
+ #******************* FUNCTION THAT ACTUALLY UPDATES KEYS; WILL RETURN REBOOT FLAG IF CHANGES ***********************
32
+ Function Set-CryptoSetting {
33
+ param (
34
+ $regKeyName,
35
+ $value,
36
+ $valuedata,
37
+ $valuetype
38
+ )
39
+
40
+ $restart = $false
41
+
42
+ # Check for existence of registry key, and create if it does not exist
43
+ If (!(Test-Path -Path $regKeyName)) {
44
+ New-Item $regKeyName | Out-Null
45
+ }
46
+
47
+
48
+ # Get data of registry value, or null if it does not exist
49
+ $val = (Get-ItemProperty -Path $regKeyName -Name $value -ErrorAction SilentlyContinue).$value
50
+
51
+
52
+ If ($val -eq $null) {
53
+ # Value does not exist - create and set to desired value
54
+ New-ItemProperty -Path $regKeyName -Name $value -Value $valuedata -PropertyType $valuetype | Out-Null
55
+ $restart = $true
56
+ }
57
+ Else {
58
+ # Value does exist - if not equal to desired value, change it
59
+ If ($val -ne $valuedata) {
60
+ Set-ItemProperty -Path $regKeyName -Name $value -Value $valuedata
61
+ $restart = $true
62
+ }
63
+ }
64
+
65
+
66
+ $restart
67
+ }
68
+ #***************************************************************************************************************
69
+
70
+
71
+ #******************* FUNCTION THAT DISABLES RC4 ***********************
72
+ Function DisableRC4 {
73
+
74
+ $restart = $false
75
+ $subkeys = Get-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL"
76
+ $ciphers = $subkeys.OpenSubKey("Ciphers", $true)
77
+
78
+ Write-Log -Message "----- Checking the status of RC4 -----" -Logfile $logLocation -Severity Information
79
+
80
+ $RC4 = $false
81
+ if ($ciphers.SubKeyCount -eq 0) {
82
+ $k1 = $ciphers.CreateSubKey("RC4 128/128")
83
+ $k1.SetValue("Enabled", 0, [Microsoft.Win32.RegistryValueKind]::DWord)
84
+ $restart = $true
85
+ $k2 = $ciphers.CreateSubKey("RC4 64/128")
86
+ $k2.SetValue("Enabled", 0, [Microsoft.Win32.RegistryValueKind]::DWord)
87
+ $k3 = $ciphers.CreateSubKey("RC4 56/128")
88
+ $k3.SetValue("Enabled", 0, [Microsoft.Win32.RegistryValueKind]::DWord)
89
+ $k4 = $ciphers.CreateSubKey("RC4 40/128")
90
+ $k4.SetValue("Enabled", 0, [Microsoft.Win32.RegistryValueKind]::DWord)
91
+
92
+ Write-Log -Message "RC4 was disabled " -Logfile $logLocation -Severity Information
93
+ $RC4 = $true
94
+ }
95
+
96
+ If ($RC4 -ne $true) {
97
+ Write-Log -Message "There was no change for RC4 " -Logfile $logLocation -Severity Information
98
+ }
99
+
100
+ $restart
101
+ }
102
+ #***************************************************************************************************************
103
+
104
+ #******************* FUNCTION CHECKS FOR PROBLEMATIC FIPS SETTING AND FIXES IT ***********************
105
+ Function Test-RegistryValueForFipsSettings {
106
+
107
+ $restart = $false
108
+
109
+ $fipsPath = @(
110
+ "HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp",
111
+ "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services",
112
+ "HKLM:\System\CurrentControlSet\Control\Terminal Server\DefaultUserConfiguration"
113
+ )
114
+
115
+ $fipsValue = "MinEncryptionLevel"
116
+
117
+
118
+ foreach ($path in $fipsPath) {
119
+
120
+ Write-Log -Message "Checking to see if $($path)\$fipsValue exists" -Logfile $logLocation -Severity Information
121
+
122
+ $ErrorActionPreference = "stop"
123
+ Try {
124
+
125
+ $result = Get-ItemProperty -Path $path | Select-Object -ExpandProperty $fipsValue
126
+ if ($result -eq 4) {
127
+ set-itemproperty -Path $path -Name $fipsValue -value 3
128
+ Write-Log -Message "Regkey $($path)\$fipsValue was changed from value $result to a value of 3" -Logfile $logLocation -Severity Information
129
+ $restart = $true
130
+ }
131
+ else {
132
+ Write-Log -Message "Regkey $($path)\$fipsValue left at value $result" -Logfile $logLocation -Severity Information
133
+ }
134
+
135
+ }
136
+ Catch [System.Management.Automation.ItemNotFoundException] {
137
+
138
+ Write-Log -Message "Reg path $path was not found" -Logfile $logLocation -Severity Information
139
+ }
140
+ Catch [System.Management.Automation.PSArgumentException] {
141
+
142
+ Write-Log -Message "Regkey $($path)\$fipsValue was not found" -Logfile $logLocation -Severity Information
143
+ }
144
+ Catch {
145
+ Write-Log -Message "Error of type $($Error[0].Exception.GetType().FullName) trying to get $($path)\$fipsValue" -Logfile $logLocation -Severity Information
146
+ }
147
+ Finally {$ErrorActionPreference = "Continue"
148
+ }
149
+ }
150
+ $restart
151
+ }
152
+ #***************************************************************************************************************
153
+
154
+ #********************************** FUNCTION THAT CREATE LOG DIRECTORY IF IT DOES NOT EXIST *******************************
155
+ function CreateLogDirectory {
156
+
157
+ $TARGETDIR = "$env:HOMEDRIVE\Logs"
158
+ if ( -Not (Test-Path -Path $TARGETDIR ) ) {
159
+ New-Item -ItemType directory -Path $TARGETDIR | Out-Null
160
+ }
161
+
162
+ $TARGETDIR = $TARGETDIR + "\" + "TLSSettingsLogFile.csv"
163
+
164
+ return $TARGETDIR
165
+ }
166
+ #***************************************************************************************************************
167
+
168
+
169
+ #********************************** FUNCTION THAT LOGS WHAT THE SCRIPT IS DOING *******************************
170
+ function Write-Log {
171
+ [CmdletBinding()]
172
+ param(
173
+ [Parameter()]
174
+ [ValidateNotNullOrEmpty()]
175
+ [string]$Message,
176
+
177
+ [Parameter()]
178
+ [ValidateNotNullOrEmpty()]
179
+ [string]$LogFile,
180
+
181
+ [Parameter()]
182
+ [ValidateNotNullOrEmpty()]
183
+ [ValidateSet('Information', 'Warning', 'Error')]
184
+ [string]$Severity = 'Information'
185
+ )
186
+
187
+
188
+ [pscustomobject]@{
189
+ Time = (Get-Date -f g)
190
+ Message = $Message
191
+ Severity = $Severity
192
+ } | ConvertTo-Csv -NoTypeInformation | Select-Object -Skip 1 | Out-File -Append -FilePath $LogFile
193
+ }
194
+
195
+ #********************************TLS CipherSuite Settings *******************************************
196
+
197
+ # CipherSuites for windows OS < 10
198
+ function Get-BaseCipherSuitesOlderWindows()
199
+ {
200
+ param
201
+ (
202
+ [Parameter(Mandatory=$true, Position=0)][bool] $isExcellenceOrder
203
+ )
204
+ $cipherorder = @()
205
+
206
+ if ($isExcellenceOrder -eq $true)
207
+ {
208
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384_P384"
209
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256_P256"
210
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384_P384"
211
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256_P256"
212
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384"
213
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256"
214
+ }
215
+ else
216
+ {
217
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256_P256"
218
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384_P384"
219
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256_P256"
220
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384_P384"
221
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256"
222
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384"
223
+ }
224
+
225
+ # Add additional ciphers when EnableOlderTlsVersions flag is set to true
226
+ if ($EnableOlderTlsVersions)
227
+ {
228
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA_P256"
229
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA_P256"
230
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256"
231
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA_P256"
232
+ $cipherorder += "TLS_RSA_WITH_AES_256_GCM_SHA384"
233
+ $cipherorder += "TLS_RSA_WITH_AES_128_GCM_SHA256"
234
+ $cipherorder += "TLS_RSA_WITH_AES_256_CBC_SHA256"
235
+ $cipherorder += "TLS_RSA_WITH_AES_128_CBC_SHA256"
236
+ $cipherorder += "TLS_RSA_WITH_AES_256_CBC_SHA"
237
+ $cipherorder += "TLS_RSA_WITH_AES_128_CBC_SHA"
238
+ }
239
+ return $cipherorder
240
+ }
241
+
242
+ # Ciphersuites needed for backwards compatibility with Firefox, Chrome
243
+ # Server 2012 R2 doesn't support TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
244
+ # Both firefox and chrome negotiate ECDHE_RSA_AES_256_CBC_SHA1, Edge negotiates ECDHE_RSA_AES_256_CBC_SHA384
245
+ function Get-BrowserCompatCipherSuitesOlderWindows()
246
+ {
247
+ param
248
+ (
249
+ [Parameter(Mandatory=$true, Position=0)][bool] $isExcellenceOrder
250
+ )
251
+ $cipherorder = @()
252
+
253
+ if ($isExcellenceOrder -eq $true)
254
+ {
255
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384" # (uses SHA-1)
256
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA_P256" # (uses SHA-1)
257
+ }
258
+ else
259
+ {
260
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA_P256" # (uses SHA-1)
261
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384" # (uses SHA-1)
262
+ }
263
+ return $cipherorder
264
+ }
265
+
266
+ # Ciphersuites for OS versions windows 10 and above
267
+ function Get-BaseCipherSuitesWin10Above()
268
+ {
269
+ param
270
+ (
271
+ [Parameter(Mandatory=$true, Position=0)][bool] $isExcellenceOrder
272
+ )
273
+
274
+ $cipherorder = @()
275
+
276
+ if ($isExcellenceOrder -eq $true)
277
+ {
278
+
279
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
280
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"
281
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
282
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
283
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384"
284
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"
285
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384"
286
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
287
+ }
288
+ else
289
+ {
290
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"
291
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
292
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
293
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
294
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"
295
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384"
296
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256"
297
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384"
298
+ }
299
+ # Add additional ciphers when EnableOlderTlsVersions flag is set to true
300
+ if ($EnableOlderTlsVersions)
301
+ {
302
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA_P256"
303
+ $cipherorder += "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA_P256"
304
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256"
305
+ $cipherorder += "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA_P256"
306
+ $cipherorder += "TLS_RSA_WITH_AES_256_GCM_SHA384"
307
+ $cipherorder += "TLS_RSA_WITH_AES_128_GCM_SHA256"
308
+ $cipherorder += "TLS_RSA_WITH_AES_256_CBC_SHA256"
309
+ $cipherorder += "TLS_RSA_WITH_AES_128_CBC_SHA256"
310
+ $cipherorder += "TLS_RSA_WITH_AES_256_CBC_SHA"
311
+ $cipherorder += "TLS_RSA_WITH_AES_128_CBC_SHA"
312
+ }
313
+
314
+ return $cipherorder
315
+ }
316
+
317
+
318
+ #******************************* TLS Version Settings ****************************************************
319
+
320
+ function Get-RegKeyPathForTls12()
321
+ {
322
+ $regKeyPath = @(
323
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2",
324
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client",
325
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server"
326
+ )
327
+ return $regKeyPath
328
+ }
329
+
330
+ function Get-RegKeyPathForTls11()
331
+ {
332
+ $regKeyPath = @(
333
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1",
334
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client",
335
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server"
336
+ )
337
+ return $regKeyPath
338
+ }
339
+
340
+ function Get-RegKeypathForTls10()
341
+ {
342
+ $regKeyPath = @(
343
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0",
344
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client",
345
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server"
346
+ )
347
+ return $regKeyPath
348
+ }
349
+
350
+ function Get-RegKeyPathForSsl30()
351
+ {
352
+ $regKeyPath = @(
353
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0",
354
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Client",
355
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Server"
356
+ )
357
+ return $regKeyPath
358
+ }
359
+
360
+ function Get-RegKeyPathForSsl20()
361
+ {
362
+ $regKeyPath = @(
363
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0",
364
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client",
365
+ "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server"
366
+ )
367
+ return $regKeyPath
368
+ }
369
+
370
+ #Initialize reboot value to false
371
+ $reboot = $false
372
+
373
+ #*****************************Create the logfile if not does not exist***************************************
374
+ $logLocation = CreateLogDirectory
375
+
376
+
377
+ #Start writing to the logs
378
+ Write-Log -Message "========== Start of logging for a script execution ==========" -Logfile $logLocation -Severity Information
379
+
380
+ $registryPathGoodGuys = @()
381
+ $registryPathBadGuys = @()
382
+
383
+ # we enable TLS 1.2 and disable SSL 2.0, 3.0 in any case
384
+ $registryPathGoodGuys += Get-RegKeyPathForTls12
385
+
386
+ $registryPathBadGuys += Get-RegKeyPathForSsl20
387
+ $registryPathBadGuys += Get-RegKeyPathForSsl30
388
+
389
+ # add TLS 1.0/1.1 to good/bad depending on user's preference
390
+ # default is adding TLS 1.0/1.1 to bad
391
+ if ($EnableOlderTlsVersions)
392
+ {
393
+ $registryPathGoodGuys += Get-RegKeypathForTls10
394
+ $registryPathGoodGuys += Get-RegKeyPathForTls11
395
+ Write-Log -Message "Enabling TLS1.2, TLS1.1, TLS1.0. Disabling SSL3.0, SSL2.0" -Logfile $logLocation -Severity Information
396
+ }
397
+ else
398
+ {
399
+ $registryPathBadGuys += Get-RegKeypathForTls10
400
+ $registryPathBadGuys += Get-RegKeyPathForTls11
401
+ Write-Log -Message "Enabling TLS1.2. Disabling TLS1.1, TLS1.0, SSL3.0, SSL2.0" -Logfile $logLocation -Severity Information
402
+ }
403
+
404
+
405
+ Write-Log -Message "Check which registry keys exist already and which registry keys need to be created." -Logfile $logLocation -Severity Information
406
+
407
+ #******************* CREATE THE REGISTRY KEYS IF THEY DON'T EXIST********************************
408
+ # Check for existence of GoodGuy registry keys, and create if they do not exist
409
+ For ($i = 0; $i -lt $registryPathGoodGuys.Length; $i = $i + 1) {
410
+
411
+ Write-Log -Message "Checking for existing of key: $($registryPathGoodGuys[$i]) " -Logfile $logLocation -Severity Information
412
+ If (!(Test-Path -Path $registryPathGoodGuys[$i])) {
413
+ New-Item $registryPathGoodGuys[$i] | Out-Null
414
+ Write-Log -Message "Creating key: $($registryPathGoodGuys[$i]) " -Logfile $logLocation -Severity Information
415
+ }
416
+ }
417
+
418
+ # Check for existence of BadGuy registry keys, and create if they do not exist
419
+ For ($i = 0; $i -lt $registryPathBadGuys.Length; $i = $i + 1) {
420
+
421
+ Write-Log -Message "Checking for existing of key: $($registryPathBadGuys[$i]) " -Logfile $logLocation -Severity Information
422
+ If (!(Test-Path -Path $registryPathBadGuys[$i])) {
423
+ Write-Log -Message "Creating key: $($registryPathBadGuys[$i]) " -Logfile $logLocation -Severity Information
424
+ New-Item $registryPathBadGuys[$i] | Out-Null
425
+ }
426
+ }
427
+
428
+ #******************* EXPLICITLY DISABLE SSLV2, SSLV3, TLS10 AND TLS11 ********************************
429
+ For ($i = 0; $i -lt $registryPathBadGuys.Length; $i = $i + 1) {
430
+
431
+ if ($registryPathBadGuys[$i].Contains("Client") -Or $registryPathBadGuys[$i].Contains("Server")) {
432
+
433
+ Write-Log -Message "Disabling this key: $($registryPathBadGuys[$i]) " -Logfile $logLocation -Severity Information
434
+ $result = Set-CryptoSetting $registryPathBadGuys[$i].ToString() Enabled 0 DWord
435
+ $result = Set-CryptoSetting $registryPathBadGuys[$i].ToString() DisabledByDefault 1 DWord
436
+ $reboot = $reboot -or $result
437
+ }
438
+ }
439
+
440
+ #********************************* EXPLICITLY Enable TLS12 ****************************************
441
+ For ($i = 0; $i -lt $registryPathGoodGuys.Length; $i = $i + 1) {
442
+
443
+ if ($registryPathGoodGuys[$i].Contains("Client") -Or $registryPathGoodGuys[$i].Contains("Server")) {
444
+
445
+ Write-Log -Message "Enabling this key: $($registryPathGoodGuys[$i]) " -Logfile $logLocation -Severity Information
446
+ $result = Set-CryptoSetting $registryPathGoodGuys[$i].ToString() Enabled 1 DWord
447
+ $result = Set-CryptoSetting $registryPathGoodGuys[$i].ToString() DisabledByDefault 0 DWord
448
+ $reboot = $reboot -or $result
449
+ }
450
+ }
451
+
452
+ #************************************** Disable RC4 ************************************************
453
+ $result = DisableRC4
454
+ $reboot = $reboot -or $result
455
+
456
+
457
+ #************************************** Set Cipher Suite Order **************************************
458
+ Write-Log -Message "----- starting ciphersuite order calculation -----" -Logfile $logLocation -Severity Information
459
+ $configureExcellenceOrder = $true
460
+ if ($SetCipherOrder.ToUpper() -eq "B")
461
+ {
462
+ $configureExcellenceOrder = $false
463
+ Write-Host "The min bar cipher suite order was chosen."
464
+ Write-Log -Message "The min bar cipher suite order was chosen." -Logfile $logLocation -Severity Information
465
+ }
466
+ else
467
+ {
468
+ Write-Host "The opportunity for excellence cipher suite order was chosen."
469
+ Write-Log -Message "The opportunity for excellence cipher suite order was chosen." -Logfile $logLocation -Severity Information
470
+ }
471
+ $cipherlist = @()
472
+
473
+ if ([Environment]::OSVersion.Version.Major -lt 10)
474
+ {
475
+ $cipherlist += Get-BaseCipherSuitesOlderWindows -isExcellenceOrder $configureExcellenceOrder
476
+ $cipherlist += Get-BrowserCompatCipherSuitesOlderWindows -isExcellenceOrder $configureExcellenceOrder
477
+ }
478
+ else
479
+ {
480
+ $cipherlist += Get-BaseCipherSuitesWin10Above -isExcellenceOrder $configureExcellenceOrder
481
+ }
482
+ $cipherorder = [System.String]::Join(",", $cipherlist)
483
+ Write-Host "Appropriate ciphersuite order : $cipherorder"
484
+ Write-Log -Message "Appropriate ciphersuite order : $cipherorder" -Logfile $logLocation -Severity Information
485
+
486
+ $CipherSuiteRegKey = "HKLM:\SOFTWARE\Policies\Microsoft\Cryptography\Configuration\SSL\00010002"
487
+
488
+ if (!(Test-Path -Path $CipherSuiteRegKey))
489
+ {
490
+ New-Item $CipherSuiteRegKey | Out-Null
491
+ $reboot = $True
492
+ Write-Log -Message "Creating key: $($CipherSuiteRegKey) " -Logfile $logLocation -Severity Information
493
+ }
494
+
495
+ $val = (Get-Item -Path $CipherSuiteRegKey -ErrorAction SilentlyContinue).GetValue("Functions", $null)
496
+ Write-Log -Message "Previous cipher suite value: $val " -Logfile $logLocation -Severity Information
497
+ Write-Log -Message "New cipher suite value : $cipherorder " -Logfile $logLocation -Severity Information
498
+
499
+ if ($val -ne $cipherorder)
500
+ {
501
+ Write-Log -Message "Cipher suite order needs to be updated. " -Logfile $logLocation -Severity Information
502
+ Write-Host "The original cipher suite order needs to be updated", `n, $val
503
+ Set-ItemProperty -Path $CipherSuiteRegKey -Name Functions -Value $cipherorder
504
+ Write-Log -Message "Cipher suite value was updated. " -Logfile $logLocation -Severity Information
505
+ $reboot = $True
506
+ }
507
+ else
508
+ {
509
+ Write-Log -Message "Cipher suite order does not need to be updated. " -Logfile $logLocation -Severity Information
510
+ Write-Log -Message "Cipher suite value was not updated as there was no change. " -Logfile $logLocation -Severity Information
511
+ }
512
+
513
+ #****************************** CHECK THE FIPS SETTING WHICH IMPACTS RDP'S ALLOWED CIPHERS **************************
514
+ #Check for FipsSettings
515
+ Write-Log -Message "Checking to see if reg keys exist and if MinEncryptionLevel is set to 4" -Logfile $logLocation -Severity Information
516
+ $result = Test-RegistryValueForFipsSettings
517
+ $reboot = $reboot -or $result
518
+
519
+
520
+ #************************************** REBOOT **************************************
521
+
522
+ if ($RebootIfRequired)
523
+ {
524
+ Write-Log -Message "You set the RebootIfRequired flag to true. If changes are made, the system will reboot " -Logfile $logLocation -Severity Information
525
+ # If any settings were changed, reboot
526
+ If ($reboot)
527
+ {
528
+ Write-Log -Message "Rebooting now... " -Logfile $logLocation -Severity Information
529
+ Write-Log -Message "Using this command: shutdown.exe /r /t 5 /c ""Crypto settings changed"" /f /d p:2:4 " -Logfile $logLocation -Severity Information
530
+ Write-Host "Rebooting now..."
531
+ shutdown.exe /r /t 5 /c "Crypto settings changed" /f /d p:2:4
532
+ }
533
+ Else
534
+ {
535
+ Write-Host "Nothing get updated."
536
+ Write-Log -Message "Nothing get updated. " -Logfile $logLocation -Severity Information
537
+ }
538
+ }
539
+ else
540
+ {
541
+
542
+ Write-Log -Message "You set the RebootIfRequired flag to false. If changes are made, the system will NOT reboot " -Logfile $logLocation -Severity Information
543
+ Write-Log -Message "No changes will take effect until a reboot has been completed. " -Logfile $logLocation -Severity Information
544
+ Write-Log -Message "Script does not include a reboot by design" -Logfile $logLocation -Severity Information
545
+ }
546
+ Write-Log -Message "========== End of logging for a script execution ==========" -Logfile $logLocation -Severity Information
547
+ # SIG # Begin signature block
548
+ # MIIjhgYJKoZIhvcNAQcCoIIjdzCCI3MCAQExDzANBglghkgBZQMEAgEFADB5Bgor
549
+ # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
550
+ # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAHtlEJwNffjnOP
551
+ # Sr2t1yq5EfE0ll4GozyZt3UXO9BXKKCCDYEwggX/MIID56ADAgECAhMzAAABh3IX
552
+ # chVZQMcJAAAAAAGHMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
553
+ # VQQIEwpXYXNoaW5ndG9u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PDeY4VX8Da2n
735
+ # cPY7mrv6YAI+ydZ+mUdBp2yjas7+/N8MntcNtAO0HpWFXQTAmb77RrSssfeZphRA
736
+ # mBD+gLx5C3q4uSmuOqaQxUaF0y8FeuetHp0bw2sfce6GlMXJwzTpC6HvXnaVtMy0
737
+ # pgzd/KPHW7EgSvmRVKmvwiQGiZBoRG/Gcg8=
738
+ # SIG # End signature block
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-visual-studio.ps1 ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # REPLACE WITH DROP-TO-ADMIN-USER-PREFIX.ps1
5
+
6
+ # REPLACE WITH UTILITY-PREFIX.ps1
7
+
8
+ $VisualStudioBootstrapperUrl = 'https://download.visualstudio.microsoft.com/download/pr/03aef663-a3da-4cdd-ac33-9ff2935267ba/d08ca31938fde015b2fec26b18149cfd21a99b69309ac2726c00658d67e7ed4c/vs_Enterprise.exe'
9
+ $Workloads = @(
10
+ 'Microsoft.VisualStudio.Workload.NativeDesktop',
11
+ 'Microsoft.VisualStudio.Workload.Universal',
12
+ 'Microsoft.VisualStudio.Component.UWP.VC.ARM64',
13
+ 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
14
+ 'Microsoft.VisualStudio.Component.VC.Tools.ARM64',
15
+ 'Microsoft.VisualStudio.Component.VC.ASAN',
16
+ 'Microsoft.VisualStudio.Component.VC.ATL',
17
+ 'Microsoft.VisualStudio.Component.VC.ATLMFC',
18
+ 'Microsoft.VisualStudio.Component.VC.ATL.ARM64',
19
+ 'Microsoft.VisualStudio.Component.VC.MFC.ARM64',
20
+ "Microsoft.VisualStudio.Component.Windows11SDK.22621",
21
+ "Microsoft.VisualStudio.Component.Windows10SDK.20348",
22
+ 'Microsoft.Net.Component.4.8.SDK',
23
+ 'Microsoft.Net.Component.4.7.2.TargetingPack',
24
+ 'Microsoft.Component.NetFX.Native',
25
+ 'Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset',
26
+ 'Microsoft.VisualStudio.Component.VC.Llvm.Clang',
27
+ 'Microsoft.VisualStudio.ComponentGroup.UWP.VC.BuildTools',
28
+ 'Microsoft.VisualStudio.Component.VC.CMake.Project'
29
+ )
30
+
31
+ <#
32
+ .SYNOPSIS
33
+ Install Visual Studio.
34
+
35
+ .DESCRIPTION
36
+ InstallVisualStudio takes the $Workloads array, and installs it with the
37
+ installer that's pointed at by $BootstrapperUrl.
38
+
39
+ .PARAMETER Workloads
40
+ The set of VS workloads to install.
41
+
42
+ .PARAMETER BootstrapperUrl
43
+ The URL of the Visual Studio installer, i.e. one of vs_*.exe.
44
+
45
+ .PARAMETER InstallPath
46
+ The path to install Visual Studio at.
47
+
48
+ .PARAMETER Nickname
49
+ The nickname to give the installation.
50
+ #>
51
+ Function InstallVisualStudio {
52
+ Param(
53
+ [String[]]$Workloads,
54
+ [String]$BootstrapperUrl,
55
+ [String]$InstallPath = $null,
56
+ [String]$Nickname = $null
57
+ )
58
+
59
+ try {
60
+ Write-Host 'Downloading Visual Studio...'
61
+ [string]$bootstrapperExe = Get-TempFilePath -Extension 'exe'
62
+ curl.exe -L -o $bootstrapperExe -s -S $BootstrapperUrl
63
+ Write-Host 'Installing Visual Studio...'
64
+ $vsArgs = @('/c', $bootstrapperExe, '--quiet', '--norestart', '--wait', '--nocache')
65
+ foreach ($workload in $Workloads) {
66
+ $vsArgs += '--add'
67
+ $vsArgs += $workload
68
+ }
69
+
70
+ if (-not ([String]::IsNullOrWhiteSpace($InstallPath))) {
71
+ $vsArgs += '--installpath'
72
+ $vsArgs += $InstallPath
73
+ }
74
+
75
+ if (-not ([String]::IsNullOrWhiteSpace($Nickname))) {
76
+ $vsArgs += '--nickname'
77
+ $vsArgs += $Nickname
78
+ }
79
+
80
+ $proc = Start-Process -FilePath cmd.exe -ArgumentList $vsArgs -Wait -PassThru
81
+ PrintMsiExitCodeMessage $proc.ExitCode
82
+ }
83
+ catch {
84
+ Write-Error "Failed to install Visual Studio! $($_.Exception.Message)"
85
+ throw
86
+ }
87
+ }
88
+
89
+ InstallVisualStudio -Workloads $Workloads -BootstrapperUrl $VisualStudioBootstrapperUrl -Nickname 'Stable'
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/deploy-windows-sdks.ps1 ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ # REPLACE WITH DROP-TO-ADMIN-USER-PREFIX.ps1
5
+
6
+ # REPLACE WITH UTILITY-PREFIX.ps1
7
+
8
+ <#
9
+ .SYNOPSIS
10
+ Installs Windows PSDK/WDK
11
+
12
+ .DESCRIPTION
13
+ Downloads the Windows PSDK/DDK installer located at $Url, and installs it with the
14
+ correct flags.
15
+
16
+ .PARAMETER Url
17
+ The URL of the installer.
18
+ #>
19
+ Function InstallWindowsDK {
20
+ Param(
21
+ [String]$Url
22
+ )
23
+
24
+ try {
25
+ Write-Host "Downloading Windows PSDK or DDK $Url..."
26
+ [string]$installerPath = Get-TempFilePath -Extension 'exe'
27
+ curl.exe -L -o $installerPath -s -S $Url
28
+ Write-Host 'Installing...'
29
+ $proc = Start-Process -FilePath $installerPath -ArgumentList @('/features', '+', '/q') -Wait -PassThru
30
+ $exitCode = $proc.ExitCode
31
+ if ($exitCode -eq 0) {
32
+ Write-Host 'Installation successful!'
33
+ }
34
+ else {
35
+ Write-Error "Installation failed! Exited with $exitCode."
36
+ throw
37
+ }
38
+ }
39
+ catch {
40
+ Write-Error "Failed to install Windows PSDK or DDK! $($_.Exception.Message)"
41
+ throw
42
+ }
43
+ }
44
+
45
+ # Windows 10 WDK, version 2004
46
+ InstallWindowsDK 'https://go.microsoft.com/fwlink/?linkid=2128854'
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/disk-space.ps1 ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+ #
4
+
5
+ <#
6
+ .SYNOPSIS
7
+ Prints total and free disk space for each disk on the system
8
+ #>
9
+
10
+ Function Format-Size {
11
+ [CmdletBinding()]
12
+ Param([long]$Size)
13
+
14
+ if ($Size -lt 1024) {
15
+ $Size = [int]$Size
16
+ return "$Size B"
17
+ }
18
+
19
+ $Size = $Size / 1024
20
+ if ($Size -lt 1024) {
21
+ $Size = [int]$Size
22
+ return "$Size KiB"
23
+ }
24
+
25
+ $Size = $Size / 1024
26
+ if ($Size -lt 1024) {
27
+ $Size = [int]$Size
28
+ return "$Size MiB"
29
+ }
30
+
31
+ $Size = [int]($Size / 1024)
32
+ return "$Size GiB"
33
+ }
34
+
35
+ Get-CimInstance -ClassName Win32_LogicalDisk | Format-Table -Property @{Label="Disk"; Expression={ $_.DeviceID }},@{Label="Label"; Expression={ $_.VolumeName }},@{Label="Size"; Expression={ Format-Size($_.Size) }},@{Label="Free Space"; Expression={ Format-Size($_.FreeSpace) }}
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/drop-to-admin-user-prefix.ps1 ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ param(
2
+ [string]$AdminUserPassword = $null
3
+ )
4
+
5
+ $ErrorActionPreference = 'Stop'
6
+ $ProgressPreference = 'SilentlyContinue'
7
+ if (-Not [string]::IsNullOrEmpty($AdminUserPassword)) {
8
+ $PsExecPath = 'C:\PsExec64.exe'
9
+ $PsExecArgs = @(
10
+ '-u',
11
+ 'AdminUser',
12
+ '-p',
13
+ $AdminUserPassword,
14
+ '-accepteula',
15
+ '-i',
16
+ '-h',
17
+ 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe',
18
+ '-ExecutionPolicy',
19
+ 'Unrestricted',
20
+ '-File',
21
+ $PSCommandPath
22
+ )
23
+
24
+ Write-Host "Executing: $PsExecPath $PsExecArgs"
25
+ $proc = Start-Process -FilePath $PsExecPath -ArgumentList $PsExecArgs -Wait -PassThru
26
+ exit $proc.ExitCode
27
+ }
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/provision-entire-image.ps1 ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This script runs all the scripts we run on Azure machines to deploy prerequisites,
2
+ # and assumes it is being run as an admin user.
3
+
4
+ . "$PSScriptRoot\utility-prefix.ps1"
5
+
6
+ . "$PSScriptRoot\deploy-tlssettings.ps1" -RebootIfRequired 0
7
+ . "$PSScriptRoot\deploy-azcopy.ps1"
8
+ . "$PSScriptRoot\deploy-windows-sdks.ps1"
9
+ . "$PSScriptRoot\deploy-visual-studio.ps1"
10
+ . "$PSScriptRoot\deploy-mpi.ps1"
11
+ . "$PSScriptRoot\deploy-cuda.ps1"
12
+ . "$PSScriptRoot\deploy-inteloneapi.ps1"
13
+ . "$PSScriptRoot\deploy-pwsh.ps1"
14
+ try {
15
+ Copy-Item "$PSScriptRoot\deploy-settings.txt" "$PSScriptRoot\deploy-settings.ps1"
16
+ . "$PSScriptRoot\deploy-settings.ps1"
17
+ } finally {
18
+ Remove-Item "$PSScriptRoot\deploy-settings.ps1"
19
+ }
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/sysprep.ps1 ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (c) Microsoft Corporation.
2
+ # SPDX-License-Identifier: MIT
3
+ #
4
+
5
+ <#
6
+ .SYNOPSIS
7
+ Prepares the virtual machine for imaging.
8
+
9
+ .DESCRIPTION
10
+ Runs the `sysprep` utility to prepare the system for imaging.
11
+ See https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/sysprep--system-preparation--overview
12
+ for more information.
13
+ #>
14
+
15
+ $ErrorActionPreference = 'Stop'
16
+ Write-Host 'Running sysprep'
17
+ & C:\Windows\system32\sysprep\sysprep.exe /oobe /generalize /mode:vm /shutdown
cc-multilingual-main/cc_net/vcpkg/scripts/azure-pipelines/windows/validate-version-files.ps1 ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ./vcpkg.exe --feature-flags=versions x-ci-verify-versions --verbose |
2
+ ForEach-Object -Begin {
3
+ $long_error = ''
4
+ } -Process {
5
+ if ($long_error -ne '' -and $_ -match '^$|^ ') {
6
+ # Extend multi-line message
7
+ $long_error = -join($long_error, "%0D%0A", $_ -replace '^ ','' `
8
+ -replace '(git add) [^ ]*\\ports\\([^ ]*)', '$1 ports/$2' )
9
+ } else {
10
+ if ($long_error -ne '') {
11
+ # Flush multi-line message
12
+ $long_error
13
+ $long_error = ''
14
+ }
15
+ if ($_ -match '^Error: ') {
16
+ # Start multi-line message
17
+ $long_error = $_ -replace '^Error: ', '##vso[task.logissue type=error]' `
18
+ -replace '(^##vso[^\]]*)](.*) [^ ]*\\versions\\(.-)\\(.*.json)(.*)', '$1;sourcepath=versions/$3/$4;linenumber=2]$2 version/$3/$4$5'
19
+ } else {
20
+ # Normal line
21
+ $_
22
+ }
23
+ }
24
+ } -End {
25
+ if ($long_error -ne '') {
26
+ # Flush multi-line message
27
+ $long_error
28
+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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [CmdletBinding()]
2
+ param (
3
+ $libraries = @(),
4
+ $version = "1.84.0",
5
+ $portsDir = $null
6
+ )
7
+
8
+ $ErrorActionPreference = 'Stop'
9
+
10
+ $scriptsDir = split-path -parent $MyInvocation.MyCommand.Definition
11
+ if ($null -eq $portsDir) {
12
+ $portsDir = "$scriptsDir/../../ports"
13
+ }
14
+
15
+ if ($IsWindows) {
16
+ $vcpkg = "$scriptsDir/../../vcpkg.exe"
17
+ $curl = "curl.exe"
18
+ }
19
+ else {
20
+ $vcpkg = "$scriptsDir/../../vcpkg"
21
+ $curl = "curl"
22
+ }
23
+
24
+ # Beta builds contains a text in the version string
25
+ $semverVersion = ($version -replace "(\d+(\.\d+){1,3}).*", "`$1")
26
+
27
+ # Clear this array when moving to a new boost version
28
+ $defaultPortVersion = 0
29
+ $portVersions = @{
30
+ 'boost-modular-build-helper' = 3;
31
+ }
32
+
33
+ function Get-PortVersion {
34
+ param (
35
+ [string]$PortName
36
+ )
37
+
38
+ $nonDefault = $portVersions[$PortName]
39
+ if ($null -ne $nonDefault) {
40
+ return $nonDefault
41
+ }
42
+
43
+ return $defaultPortVersion
44
+ }
45
+
46
+ $portData = @{
47
+ "boost" = @{
48
+ "features" = @{
49
+ "mpi" = @{
50
+ "description" = "Build with MPI support";
51
+ "dependencies" = @("boost-mpi", "boost-graph-parallel", "boost-property-map-parallel");
52
+ }
53
+ }
54
+ };
55
+ "boost-asio" = @{
56
+ "features" = @{
57
+ "ssl" = @{
58
+ "description" = "Build with SSL support";
59
+ "dependencies" = @(@{ "name" = "openssl"; "platform" = "!emscripten" });
60
+ }
61
+ }
62
+ };
63
+ "boost-beast" = @{ "supports" = "!emscripten" };
64
+ "boost-fiber" = @{
65
+ "supports" = "!uwp & !(arm & windows) & !emscripten";
66
+ "features" = @{
67
+ "numa" = @{
68
+ "description" = "Enable NUMA support";
69
+ }
70
+ }
71
+ };
72
+ "boost-filesystem" = @{ "supports" = "!uwp" };
73
+ "boost-iostreams" = @{
74
+ "default-features" = @("bzip2", "lzma", "zlib", "zstd");
75
+ "supports" = "!uwp";
76
+ "features" = @{
77
+ "bzip2" = @{
78
+ "description" = "Support bzip2 filters";
79
+ "dependencies" = @("bzip2");
80
+ };
81
+ "lzma" = @{
82
+ "description" = "Support LZMA/xz filters";
83
+ "dependencies" = @("liblzma");
84
+ };
85
+ "zlib" = @{
86
+ "description" = "Support zlib filters";
87
+ "dependencies" = @("zlib");
88
+ };
89
+ "zstd" = @{
90
+ "description" = "Support zstd filters";
91
+ "dependencies" = @("zstd");
92
+ };
93
+ };
94
+ };
95
+ "boost-cobalt" = @{ "supports" = "!osx & !ios & !android" };
96
+ "boost-context" = @{ "supports" = "!uwp & !emscripten" };
97
+ "boost-coroutine" = @{ "supports" = "!(arm & windows) & !uwp & !emscripten" };
98
+ "boost-coroutine2" = @{ "supports" = "!emscripten" };
99
+ "boost-log" = @{ "supports" = "!uwp & !emscripten" };
100
+ "boost-locale" = @{
101
+ "dependencies" = @(@{ "name" = "libiconv"; "platform" = "!uwp & !windows & !mingw" });
102
+ "supports" = "!uwp";
103
+ "features" = @{
104
+ "icu" = @{
105
+ "description" = "ICU backend for Boost.Locale";
106
+ "dependencies" = @("icu");
107
+ }
108
+ }
109
+ };
110
+ "boost-mpi" = @{
111
+ "dependencies" = @("mpi");
112
+ "supports" = "!uwp";
113
+ "features" = @{
114
+ "python3" = @{
115
+ "description" = "Build Python3 bindings";
116
+ "supports" = "!static";
117
+ "dependencies" = @(@{ "name" = "boost-python"; "features" = @( "python3" ); "platform" = "!uwp & !emscripten & !ios & !android" }, "python3");
118
+ }
119
+ }
120
+ };
121
+ "boost-graph-parallel" = @{
122
+ "dependencies" = @("mpi");
123
+ "supports" = "!uwp";
124
+ };
125
+ "boost-odeint" = @{
126
+ "features" = @{
127
+ "mpi" = @{
128
+ "description" = "Support parallelization with MPI";
129
+ "dependencies" = @("boost-mpi");
130
+ }
131
+ }
132
+ };
133
+ "boost-parameter-python" = @{ "supports" = "!emscripten" };
134
+ "boost-process" = @{ "supports" = "!emscripten" };
135
+ "boost-python" = @{
136
+ "default-features" = @("python3");
137
+ "supports" = "!uwp & !emscripten & !ios & !android";
138
+ "features" = @{
139
+ "python2" = @{
140
+ "description" = "Build with Python2 support";
141
+ "supports" = "!(arm & windows)";
142
+ "dependencies" = @("python2");
143
+ };
144
+ "python3" = @{
145
+ "description" = "Build with Python3 support";
146
+ "dependencies" = @("python3");
147
+ }
148
+ }
149
+ };
150
+ "boost-random" = @{ "supports" = "!uwp" };
151
+ "boost-regex" = @{
152
+ "features" = @{
153
+ "icu" = @{
154
+ "description" = "ICU backend for Boost.Regex";
155
+ "dependencies" = @("icu");
156
+ }
157
+ }
158
+ }
159
+ "boost-stacktrace" = @{ "supports" = "!uwp" };
160
+ "boost-test" = @{ "supports" = "!uwp" };
161
+ "boost-wave" = @{ "supports" = "!uwp" };
162
+ }
163
+
164
+ function GeneratePortName() {
165
+ param (
166
+ [string]$Library
167
+ )
168
+ "boost-" + ($Library -replace "_", "-")
169
+ }
170
+
171
+ function GeneratePortDependency() {
172
+ param (
173
+ [string]$Library
174
+ )
175
+ $portName = GeneratePortName $Library
176
+ if ($portData.Contains($portName) -and $portData[$portName].Contains('supports')) {
177
+ @{name = $portName; platform = $portData[$portName]['supports'] }
178
+ }
179
+ else {
180
+ $portName
181
+ }
182
+ }
183
+
184
+ function AddBoostVersionConstraints() {
185
+ param (
186
+ $Dependencies = @()
187
+ )
188
+
189
+ $updatedDependencies = @()
190
+ foreach ($dependency in $Dependencies) {
191
+ if ($dependency.Contains("name")) {
192
+ if ($dependency.name.StartsWith("boost")) {
193
+ $dependency["version>="] = $semverVersion
194
+ }
195
+ }
196
+ else {
197
+ if ($dependency.StartsWith("boost")) {
198
+ $dependency = @{
199
+ "name" = $dependency
200
+ "version>=" = $semverVersion
201
+ }
202
+ }
203
+ }
204
+ $updatedDependencies += $dependency
205
+ }
206
+ $updatedDependencies
207
+ }
208
+
209
+ function GeneratePortManifest() {
210
+ param (
211
+ [string]$PortName,
212
+ [string]$Homepage,
213
+ [string]$Description,
214
+ [string]$License,
215
+ $Dependencies = @()
216
+ )
217
+ $manifest = @{
218
+ "`$comment" = "Automatically generated by scripts/boost/generate-ports.ps1"
219
+ "name" = $PortName
220
+ "homepage" = $Homepage
221
+ "description" = $Description
222
+ }
223
+ if ($version -eq $semverVersion) {
224
+ $manifest["version"] = $version
225
+ }
226
+ else {
227
+ $manifest["version-string"] = $version
228
+ }
229
+ if ($License) {
230
+ $manifest["license"] += $License
231
+ }
232
+ if ($portData.Contains($PortName)) {
233
+ $manifest += $portData[$PortName]
234
+ }
235
+ $thisPortVersion = Get-PortVersion $PortName
236
+ if ($thisPortVersion -ne 0) {
237
+ $manifest["port-version"] = $thisPortVersion
238
+ }
239
+ if ($Dependencies.Count -gt 0) {
240
+ $manifest["dependencies"] += $Dependencies
241
+ }
242
+ # Remove from the dependencies the ports that are included in the feature dependencies
243
+ if ($manifest.Contains('features') -and $manifest.Contains('dependencies')) {
244
+ foreach ($feature in $manifest.features.Keys) {
245
+ $feature_dependencies = $manifest.features.$feature["dependencies"]
246
+ foreach ($dependency in $feature_dependencies) {
247
+ if ($dependency.Contains("name")) {
248
+ $dep_name = $dependency.name
249
+ }
250
+ else {
251
+ $dep_name = $dependency
252
+ }
253
+ $manifest["dependencies"] = $manifest["dependencies"] `
254
+ | Where-Object {
255
+ if ($_.Contains("name")) {
256
+ $_.name -notmatch "$dep_name"
257
+ } else {
258
+ $_ -notmatch "$dep_name"
259
+ }
260
+ }
261
+ }
262
+ }
263
+ }
264
+
265
+ # Add version constraints to boost dependencies
266
+ $manifest["dependencies"] = @(AddBoostVersionConstraints $manifest["dependencies"])
267
+ foreach ($feature in $manifest.features.Keys) {
268
+ $manifest.features.$feature["dependencies"] = @(AddBoostVersionConstraints $manifest.features.$feature["dependencies"])
269
+ }
270
+
271
+ $manifest | ConvertTo-Json -Depth 10 -Compress `
272
+ | Out-File -Encoding UTF8 "$portsDir/$PortName/vcpkg.json"
273
+ & $vcpkg format-manifest "$portsDir/$PortName/vcpkg.json"
274
+ }
275
+
276
+ function GeneratePort() {
277
+ param (
278
+ [string]$Library,
279
+ [string]$Hash,
280
+ [bool]$NeedsBuild,
281
+ $Dependencies = @()
282
+ )
283
+
284
+ $portName = GeneratePortName $Library
285
+
286
+ New-Item -ItemType "Directory" "$portsDir/$portName" -erroraction SilentlyContinue | out-null
287
+
288
+ # Generate vcpkg.json
289
+ GeneratePortManifest `
290
+ -PortName $portName `
291
+ -Homepage "https://github.com/boostorg/$Library" `
292
+ -Description "Boost $Library module" `
293
+ -License "BSL-1.0" `
294
+ -Dependencies $Dependencies
295
+
296
+ $portfileLines = @(
297
+ "# Automatically generated by scripts/boost/generate-ports.ps1"
298
+ ""
299
+ )
300
+
301
+ if ($Library -eq "system") {
302
+ $portfileLines += @(
303
+ "vcpkg_buildpath_length_warning(37)"
304
+ ""
305
+ )
306
+ }
307
+
308
+ $portfileLines += @(
309
+ "vcpkg_from_github("
310
+ " OUT_SOURCE_PATH SOURCE_PATH"
311
+ " REPO boostorg/$Library"
312
+ " REF boost-`${VERSION}"
313
+ " SHA512 $Hash"
314
+ " HEAD_REF master"
315
+ )
316
+ [Array]$patches = Get-Item -Path "$portsDir/$portName/*.patch"
317
+ if ($null -eq $patches -or $patches.Count -eq 0) {
318
+ }
319
+ elseif ($patches.Count -eq 1) {
320
+ $portfileLines += @(" PATCHES $($patches.name)")
321
+ }
322
+ else {
323
+ $portfileLines += @(" PATCHES")
324
+ foreach ($patch in $patches) {
325
+ $portfileLines += @(" $($patch.name)")
326
+ }
327
+ }
328
+ $portfileLines += @(
329
+ ")"
330
+ ""
331
+ )
332
+
333
+ if (Test-Path "$scriptsDir/post-source-stubs/$Library.cmake") {
334
+ $portfileLines += @(Get-Content "$scriptsDir/post-source-stubs/$Library.cmake")
335
+ }
336
+
337
+ if ($NeedsBuild) {
338
+ $portfileLines += @(
339
+ "include(`${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)"
340
+ )
341
+ # b2-options.cmake contains port-specific build options
342
+ if (Test-Path "$portsDir/$portName/b2-options.cmake") {
343
+ $portfileLines += @(
344
+ "boost_modular_build("
345
+ " SOURCE_PATH `${SOURCE_PATH}"
346
+ " BOOST_CMAKE_FRAGMENT `"`${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake`""
347
+ ")"
348
+ )
349
+ }
350
+ elseif (Test-Path "$portsDir/$portName/b2-options.cmake.in") {
351
+ $portfileLines += @(
352
+ 'configure_file('
353
+ ' "${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake.in"'
354
+ ' "${CURRENT_BUILDTREES_DIR}/vcpkg-b2-options.cmake"'
355
+ ' @ONLY'
356
+ ')'
357
+ 'boost_modular_build('
358
+ ' SOURCE_PATH ${SOURCE_PATH}'
359
+ ' BOOST_CMAKE_FRAGMENT "${CURRENT_BUILDTREES_DIR}/vcpkg-b2-options.cmake"'
360
+ ')'
361
+ )
362
+ }
363
+ else {
364
+ $portfileLines += @(
365
+ "boost_modular_build(SOURCE_PATH `${SOURCE_PATH})"
366
+ )
367
+ }
368
+ }
369
+
370
+ $portfileLines += @(
371
+ "include(`${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)"
372
+ "boost_modular_headers(SOURCE_PATH `${SOURCE_PATH})"
373
+ )
374
+
375
+ if (Test-Path "$scriptsDir/post-build-stubs/$Library.cmake") {
376
+ $portfileLines += @(Get-Content "$scriptsDir/post-build-stubs/$Library.cmake")
377
+ }
378
+
379
+ $portfileLines += @("")
380
+ Set-Content -LiteralPath "$portsDir/$portName/portfile.cmake" `
381
+ -Value "$($portfileLines -join "`n")" `
382
+ -Encoding UTF8 `
383
+ -NoNewline
384
+ }
385
+
386
+ if (!(Test-Path "$scriptsDir/boost")) {
387
+ "Cloning boost..."
388
+ Push-Location $scriptsDir
389
+ try {
390
+ git clone https://github.com/boostorg/boost --branch boost-$version
391
+ }
392
+ finally {
393
+ Pop-Location
394
+ }
395
+ }
396
+ else {
397
+ Push-Location $scriptsDir/boost
398
+ try {
399
+ git fetch
400
+ git checkout -f boost-$version
401
+ }
402
+ finally {
403
+ Pop-Location
404
+ }
405
+ }
406
+
407
+ $foundLibraries = Get-ChildItem $scriptsDir/boost/libs -directory | ForEach-Object name | ForEach-Object {
408
+ if ($_ -eq "numeric") {
409
+ "numeric_conversion"
410
+ "interval"
411
+ "odeint"
412
+ "ublas"
413
+ }
414
+ elseif ($_ -eq "headers") {
415
+ }
416
+ else {
417
+ $_
418
+ }
419
+ }
420
+
421
+ New-Item -ItemType "Directory" $scriptsDir/downloads -erroraction SilentlyContinue | out-null
422
+
423
+ $updateServicePorts = $false
424
+
425
+ if ($libraries.Length -eq 0) {
426
+ $libraries = $foundLibraries
427
+ $updateServicePorts = $true
428
+ }
429
+
430
+ $boostPortDependencies = @()
431
+
432
+ foreach ($library in $libraries) {
433
+ "Handling boost/$library..."
434
+ $archive = "$scriptsDir/downloads/$library-boost-$version.tar.gz"
435
+ if (!(Test-Path $archive)) {
436
+ "Downloading boost/$library..."
437
+ & $curl -L "https://github.com/boostorg/$library/archive/boost-$version.tar.gz" --output "$scriptsDir/downloads/$library-boost-$version.tar.gz"
438
+ }
439
+ $hash = & $vcpkg --x-wait-for-lock hash $archive
440
+ # Remove prefix "Waiting to take filesystem lock on <path>/.vcpkg-root... "
441
+ if ($hash -is [Object[]]) {
442
+ $hash = $hash[1]
443
+ }
444
+
445
+ $unpacked = "$scriptsDir/libs/$library-boost-$version"
446
+ if (!(Test-Path $unpacked)) {
447
+ "Unpacking boost/$library..."
448
+ New-Item -ItemType "Directory" $scriptsDir/libs -erroraction SilentlyContinue | out-null
449
+ Push-Location $scriptsDir/libs
450
+ try {
451
+ cmake -E tar xf $archive
452
+ }
453
+ finally {
454
+ Pop-Location
455
+ }
456
+ }
457
+ Push-Location $unpacked
458
+ try {
459
+ $usedLibraries = Get-ChildItem -Recurse -Path include, src -File `
460
+ | Where-Object { $_ -is [System.IO.FileInfo] } `
461
+ | ForEach-Object {
462
+ Write-Verbose "${library}: processing file: $_"
463
+ Get-Content -LiteralPath $_
464
+ } `
465
+ | Where-Object {
466
+ $_ -match ' *# *include *[<"]boost\/'
467
+ } `
468
+ | ForEach-Object {
469
+ # Extract path from the line
470
+ Write-Verbose "${library}: processing line: $_"
471
+ $_ -replace " *# *include *[<`"]boost\/([a-zA-Z0-9\.\-_\/]*)[>`"].*", "`$1"
472
+ }`
473
+ | ForEach-Object {
474
+ # Map the path to the library name
475
+ Write-Verbose "${library}: processing path: $_"
476
+ if ($_ -match "^detail\/winapi\/") { "winapi" }
477
+ elseif ($_ -eq "detail/algorithm.hpp") { "graph" }
478
+ elseif ($_ -eq "detail/atomic_count.hpp") { "smart_ptr" }
479
+ elseif ($_ -eq "detail/basic_pointerbuf.hpp") { "lexical_cast" }
480
+ elseif ($_ -eq "detail/call_traits.hpp") { "utility" }
481
+ elseif ($_ -eq "detail/compressed_pair.hpp") { "utility" }
482
+ elseif ($_ -eq "detail/interlocked.hpp") { "winapi" }
483
+ elseif ($_ -eq "detail/iterator.hpp") { "core" }
484
+ elseif ($_ -eq "detail/lcast_precision.hpp") { "lexical_cast" }
485
+ elseif ($_ -eq "detail/lightweight_mutex.hpp") { "smart_ptr" }
486
+ elseif ($_ -eq "detail/lightweight_test.hpp") { "core" }
487
+ elseif ($_ -eq "detail/lightweight_thread.hpp") { "smart_ptr" }
488
+ elseif ($_ -eq "detail/no_exceptions_support.hpp") { "core" }
489
+ elseif ($_ -eq "detail/scoped_enum_emulation.hpp") { "core" }
490
+ elseif ($_ -eq "detail/sp_typeinfo.hpp") { "core" }
491
+ elseif ($_ -eq "detail/ob_compressed_pair.hpp") { "utility" }
492
+ elseif ($_ -eq "detail/quick_allocator.hpp") { "smart_ptr" }
493
+ elseif ($_ -eq "detail/workaround.hpp") { "config" }
494
+ elseif ($_ -match "^functional\/hash\/") { "container_hash" }
495
+ elseif ($_ -eq "functional/hash.hpp") { "container_hash" }
496
+ elseif ($_ -eq "functional/hash_fwd.hpp") { "container_hash" }
497
+ elseif ($_ -match "^graph\/distributed\/") { "graph_parallel" }
498
+ elseif ($_ -match "^graph\/parallel\/") { "graph_parallel" }
499
+ elseif ($_ -eq "graph/accounting.hpp") { "graph_parallel" }
500
+ elseif ($_ -eq "exception/exception.hpp") { "throw_exception" }
501
+ elseif ($_ -match "^numeric\/conversion\/") { "numeric_conversion" }
502
+ elseif ($_ -match "^numeric\/interval\/") { "interval" }
503
+ elseif ($_ -match "^numeric\/odeint\/") { "odeint" }
504
+ elseif ($_ -match "^numeric\/ublas\/") { "ublas" }
505
+ elseif ($_ -eq "numeric/interval.hpp") { "interval" }
506
+ elseif ($_ -eq "numeric/odeint.hpp") { "odeint" }
507
+ elseif ($_ -match "^parameter\/aux_\/python\/") { "parameter_python" }
508
+ elseif ($_ -eq "parameter/python.hpp") { "parameter_python" }
509
+ elseif ($_ -eq "pending/detail/disjoint_sets.hpp") { "graph" }
510
+ elseif ($_ -eq "pending/detail/int_iterator.hpp") { "iterator" }
511
+ elseif ($_ -eq "pending/detail/property.hpp") { "graph" }
512
+ elseif ($_ -eq "pending/bucket_sorter.hpp") { "graph" }
513
+ elseif ($_ -eq "pending/container_traits.hpp") { "graph" }
514
+ elseif ($_ -eq "pending/disjoint_sets.hpp") { "graph" }
515
+ elseif ($_ -eq "pending/fenced_priority_queue.hpp") { "graph" }
516
+ elseif ($_ -eq "pending/fibonacci_heap.hpp") { "graph" }
517
+ elseif ($_ -eq "pending/indirect_cmp.hpp") { "graph" }
518
+ elseif ($_ -eq "pending/integer_log2.hpp") { "integer" }
519
+ elseif ($_ -eq "pending/is_heap.hpp") { "graph" }
520
+ elseif ($_ -eq "pending/iterator_adaptors.hpp") { "iterator" }
521
+ elseif ($_ -eq "pending/iterator_tests.hpp") { "iterator" }
522
+ elseif ($_ -eq "pending/mutable_heap.hpp") { "graph" }
523
+ elseif ($_ -eq "pending/mutable_queue.hpp") { "graph" }
524
+ elseif ($_ -eq "pending/property.hpp") { "graph" }
525
+ elseif ($_ -eq "pending/property_serialize.hpp") { "graph" }
526
+ elseif ($_ -eq "pending/queue.hpp") { "graph" }
527
+ elseif ($_ -eq "pending/relaxed_heap.hpp") { "graph" }
528
+ elseif ($_ -eq "pending/stringtok.hpp") { "graph" }
529
+ elseif ($_ -match "^property_map\/parallel\/") { "property_map_parallel" }
530
+ elseif ($_ -eq "utility/addressof.hpp") { "core" }
531
+ elseif ($_ -eq "utility/declval.hpp") { "type_traits" }
532
+ elseif ($_ -eq "utility/enable_if.hpp") { "core" }
533
+ elseif ($_ -eq "utility/explicit_operator_bool.hpp") { "core" }
534
+ elseif ($_ -eq "utility/swap.hpp") { "core" }
535
+ # Extract first directory name or file name from the path
536
+ else { $_ -replace "([a-zA-Z0-9\.\-_]*).*", "`$1" }
537
+ } `
538
+ | ForEach-Object {
539
+ # Map directory/file name to the library name
540
+ Write-Verbose "${library}: processing name: $_"
541
+ if ($_ -eq "current_function.hpp") { "assert" }
542
+ elseif ($_ -eq "memory_order.hpp") { "atomic" }
543
+ elseif ($_ -match "is_placeholder.hpp|mem_fn.hpp") { "bind" }
544
+ elseif ($_ -eq "circular_buffer_fwd.hpp") { "circular_buffer" }
545
+ elseif ($_ -match "^concept$|concept_archetype.hpp") { "concept_check" }
546
+ elseif ($_ -match "cstdint.hpp|cxx11_char_types.hpp|limits.hpp|version.hpp") { "config" }
547
+ elseif ($_ -eq "contract_macro.hpp") { "contract" }
548
+ elseif ($_ -match "implicit_cast.hpp|polymorphic_cast.hpp|polymorphic_pointer_cast.hpp") { "conversion" }
549
+ elseif ($_ -eq "make_default.hpp") { "convert" }
550
+ elseif ($_ -match "checked_delete.hpp|get_pointer.hpp|iterator.hpp|non_type.hpp|noncopyable.hpp|ref.hpp|swap.hpp|type.hpp|visit_each.hpp") { "core" }
551
+ elseif ($_ -match "blank.hpp|blank_fwd.hpp|cstdlib.hpp") { "detail" }
552
+ elseif ($_ -eq "dynamic_bitset_fwd.hpp") { "dynamic_bitset" }
553
+ elseif ($_ -eq "exception_ptr.hpp") { "exception" }
554
+ elseif ($_ -eq "foreach_fwd.hpp") { "foreach" }
555
+ elseif ($_ -eq "function_equal.hpp") { "function" }
556
+ elseif ($_ -match "integer_fwd.hpp|integer_traits.hpp") { "integer" }
557
+ elseif ($_ -eq "io_fwd.hpp") { "io" }
558
+ elseif ($_ -match "function_output_iterator.hpp|generator_iterator.hpp|indirect_reference.hpp|iterator_adaptors.hpp|next_prior.hpp|pointee.hpp|shared_container_iterator.hpp") { "iterator" }
559
+ elseif ($_ -match "cstdfloat.hpp|math_fwd.hpp") { "math" }
560
+ elseif ($_ -match "multi_index_container.hpp|multi_index_container_fwd.hpp") { "multi_index" }
561
+ elseif ($_ -eq "cast.hpp") { "numeric_conversion" }
562
+ elseif ($_ -match "none.hpp|none_t.hpp") { "optional" }
563
+ elseif ($_ -eq "qvm_lite.hpp") { "qvm" }
564
+ elseif ($_ -eq "nondet_random.hpp") { "random" }
565
+ elseif ($_ -match "cregex.hpp|regex_fwd.hpp") { "regex" }
566
+ elseif ($_ -eq "archive") { "serialization" }
567
+ elseif ($_ -match "last_value.hpp|signal.hpp") { "signals" }
568
+ elseif ($_ -match "enable_shared_from_this.hpp|intrusive_ptr.hpp|make_shared.hpp|make_unique.hpp|pointer_cast.hpp|pointer_to_other.hpp|scoped_array.hpp|scoped_ptr.hpp|shared_array.hpp|shared_ptr.hpp|weak_ptr.hpp") { "smart_ptr" }
569
+ elseif ($_ -eq "cerrno.hpp") { "system" }
570
+ elseif ($_ -eq "progress.hpp") { "timer" }
571
+ elseif ($_ -match "token_functions.hpp|token_iterator.hpp") { "tokenizer" }
572
+ elseif ($_ -match "aligned_storage.hpp") { "type_traits" }
573
+ elseif ($_ -match "unordered_map.hpp|unordered_set.hpp") { "unordered" }
574
+ elseif ($_ -match "call_traits.hpp|compressed_pair.hpp|operators.hpp|operators_v1.hpp") { "utility" }
575
+ # By dafault use the name as is, just remove the file extension if available
576
+ else { $_ -replace "\.hp?p?", "" }
577
+ } `
578
+ | Where-Object {
579
+ $_ -ne $library
580
+ } `
581
+ | Group-Object -NoElement | ForEach-Object Name
582
+
583
+ " [known] " + $($usedLibraries | Where-Object { $foundLibraries -contains $_ })
584
+ "[unknown] " + $($usedLibraries | Where-Object { $foundLibraries -notcontains $_ })
585
+
586
+ $deps = @($usedLibraries | Where-Object { $foundLibraries -contains $_ })
587
+
588
+ # Remove optional dependencies that are only used for tests or examples
589
+ $deps = @($deps | Where-Object {
590
+ -not (
591
+ ($library -eq 'ublas' -and $_ -eq 'compute') -or # PR #29325
592
+ ($library -eq 'gil' -and $_ -eq 'filesystem') # PR #20575
593
+ )
594
+ })
595
+
596
+ # Add dependency to the config for all libraries except the config library itself
597
+ if ($library -ne 'config') {
598
+ # Note: CMake's built-in finder (FindBoost.cmake) looks for Boost header files (boost/version.h or boost/config.h)
599
+ # and stores the result in the Boost_INCLUDE_DIR variable. The files boost/version.h or boost/config.h are owned by the config library.
600
+ # Without these files, the Boost_INCLUDE_DIR variable will not be set and the Boost version will not be detected.
601
+ $deps += @('config')
602
+ $deps = $deps | Select-Object -Unique
603
+ }
604
+
605
+ $deps = @($deps | ForEach-Object { GeneratePortDependency $_ })
606
+ $deps += @("boost-vcpkg-helpers")
607
+
608
+ $needsBuild = $false
609
+ if (((Test-Path $unpacked/build/Jamfile.v2) -or (Test-Path $unpacked/build/Jamfile)) -and $library -notmatch "function_types") {
610
+ $deps += @(
611
+ @{ name = "boost-build"; host = $True },
612
+ @{ name = "boost-modular-build-helper"; host = $True },
613
+ @{ name = "vcpkg-cmake"; host = $True }
614
+ )
615
+ $needsBuild = $true
616
+ }
617
+
618
+ GeneratePort `
619
+ -Library $library `
620
+ -Hash $hash `
621
+ -Dependencies $deps `
622
+ -NeedsBuild $needsBuild
623
+
624
+ $boostPortDependencies += @(GeneratePortDependency $library)
625
+ }
626
+ finally {
627
+ Pop-Location
628
+ }
629
+ }
630
+
631
+ if ($updateServicePorts) {
632
+ # Generate manifest file for master boost port which depends on each individual library
633
+ GeneratePortManifest `
634
+ -PortName "boost" `
635
+ -Homepage "https://boost.org" `
636
+ -Description "Peer-reviewed portable C++ source libraries" `
637
+ -License "BSL-1.0" `
638
+ -Dependencies $boostPortDependencies
639
+
640
+ Set-Content -LiteralPath "$portsDir/boost/portfile.cmake" `
641
+ -Value "set(VCPKG_POLICY_EMPTY_PACKAGE enabled)`n" `
642
+ -Encoding UTF8 `
643
+ -NoNewline
644
+
645
+ # Generate manifest files for boost-uninstall
646
+ GeneratePortManifest `
647
+ -PortName "boost-uninstall" `
648
+ -Description "Internal vcpkg port used to uninstall Boost" `
649
+ -License "MIT"
650
+
651
+ # Generate manifest files for boost-vcpkg-helpers
652
+ GeneratePortManifest `
653
+ -PortName "boost-vcpkg-helpers" `
654
+ -Description "Internal vcpkg port used to modularize Boost" `
655
+ -License "MIT" `
656
+ -Dependencies @("boost-uninstall")
657
+
658
+ # Generate manifest files for boost-modular-build-helper
659
+ GeneratePortManifest `
660
+ -PortName "boost-modular-build-helper" `
661
+ -Description "Internal vcpkg port used to build Boost libraries" `
662
+ -License "MIT" `
663
+ -Dependencies @("boost-uninstall", @{ name = "vcpkg-cmake"; host = $True }, @{ name = "vcpkg-cmake-get-vars"; host = $True })
664
+
665
+ # Generate manifest files for boost-build
666
+ GeneratePortManifest `
667
+ -PortName "boost-build" `
668
+ -Homepage "https://github.com/boostorg/build" `
669
+ -Description "Boost.Build" `
670
+ -License "BSL-1.0" `
671
+ -Dependencies @("boost-uninstall")
672
+ }
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/atomic.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ file(READ "${SOURCE_PATH}/build/Jamfile.v2" _contents)
2
+ string(REPLACE "import config : requires" "import ../config/checks/config : requires" _contents "${_contents}")
3
+ string(REPLACE "project.load [ path.join [ path.make $(here:D) ] ../../config/checks/architecture ]" "project.load [ path.join [ path.make $(here:D) ] ../config/checks/architecture ]" _contents "${_contents}")
4
+ file(WRITE "${SOURCE_PATH}/build/Jamfile.v2" "${_contents}")
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/cobalt.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile"
2
+ "import ../../config/checks/config"
3
+ "import ../config/checks/config"
4
+ )
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/context.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile.v2"
2
+ "import ../../config/checks/config"
3
+ "import ../config/checks/config"
4
+ )
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/fiber.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile.v2"
2
+ "import ../../config/checks/config"
3
+ "import ../config/checks/config"
4
+ )
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/json.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile"
2
+ "import ../../config/checks/config"
3
+ "import ../config/checks/config"
4
+ )
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/locale.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile.v2"
2
+ "import config : requires"
3
+ "import ../config/checks/config : requires"
4
+ )
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/log.cmake ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ file(READ "${SOURCE_PATH}/build/Jamfile.v2" _contents)
2
+ string(REPLACE "import config : requires" "import ../config/checks/config : requires" _contents "${_contents}")
3
+ string(REPLACE " <conditional>@select-arch-specific-sources" "#<conditional>@select-arch-specific-sources" _contents "${_contents}")
4
+ file(WRITE "${SOURCE_PATH}/build/Jamfile.v2" "${_contents}")
5
+ vcpkg_replace_string("${SOURCE_PATH}/build/log-arch-config.jam"
6
+ "project.load [ path.join [ path.make $(here:D) ] ../../config/checks/architecture ]"
7
+ "project.load [ path.join [ path.make $(here:D) ] ../config/checks/architecture ]"
8
+ )
9
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/nowide.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile.v2"
2
+ "import ../../config/checks/config"
3
+ "import ../config/checks/config"
4
+ )
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/serialization.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ file(READ "${SOURCE_PATH}/build/Jamfile.v2" _contents)
2
+ string(REPLACE "import ../../config/checks/config" "import ../config/checks/config" _contents "${_contents}")
3
+ string(REPLACE "check-target-builds ../../config/checks//std_wstreambuf" "check-target-builds ../config/checks//std_wstreambuf" _contents "${_contents}")
4
+ file(WRITE "${SOURCE_PATH}/build/Jamfile.v2" "${_contents}")
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/stacktrace.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile.v2"
2
+ "import ../../config/checks/config"
3
+ "import ../config/checks/config"
4
+ )
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/url.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ vcpkg_replace_string("${SOURCE_PATH}/Jamfile"
2
+ "import ../../config/checks/config"
3
+ "import config/checks/config"
4
+ )
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/boost/post-source-stubs/wave.cmake ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile.v2"
2
+ "import ../../config/checks/config"
3
+ "import ../config/checks/config"
4
+ )
5
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/make_wrapper/cl_cpp_wrapper ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/bash
2
+ # cl_cpp_wrapper
3
+ # Wrapper around MS's cl.exe to make it act more like Unix cpp
4
+
5
+ PATH="$PATH:/usr/bin"
6
+
7
+ case $MACHTYPE in
8
+ *-msys)
9
+ slash="-"
10
+ ;;
11
+ *)
12
+ slash="/"
13
+ ;;
14
+ esac
15
+
16
+ # prog specifies the program that should be run cl.exe
17
+ prog=cl.exe
18
+ debug=
19
+ cppopt=("${slash}nologo")
20
+ cppopt+=("${slash}E")
21
+ verbose=
22
+ shared_index=-1
23
+
24
+ processargs()
25
+ {
26
+ ### Run through every option and convert it to the proper MS one
27
+ while test $# -gt 0; do
28
+ case "$1" in
29
+ -D*) optarg= ;;
30
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
31
+ *) optarg= ;;
32
+ esac
33
+ gotparam=1
34
+ case "$1" in
35
+ --help)
36
+ usage
37
+ exit 0
38
+ ;;
39
+ --verbose)
40
+ verbose=1
41
+ ;;
42
+ -*)
43
+ # Remaining '-' options are passed to the compiler
44
+ if test x$optarg != x ; then
45
+ cppopt+=("${slash}${1:1}=$optarg")
46
+ else
47
+ cppopt+=("${slash}${1:1}")
48
+ fi
49
+ ;;
50
+
51
+ /*)
52
+ # All '/' options are assumed to be for cpp and are passed through
53
+ cppopt+=("${slash}${1:1}")
54
+ ;;
55
+
56
+ *)
57
+ file=$1
58
+ #cppopt+=("$1")
59
+ ;;
60
+ esac
61
+ shift
62
+ done
63
+ }
64
+
65
+ # Whitespace in paths is dealt with by setting IFS and using bash arrays
66
+
67
+ # processargs $CPP_FLAGS
68
+ IFS=""
69
+ processargs $@
70
+
71
+ if test x$V = x1 ; then
72
+ verbose=1
73
+ fi
74
+
75
+ if test -n "$verbose" ; then
76
+ echo -n "$prog"
77
+ for opt in "${cppopt[@]}" ; do
78
+ echo -n " \"$opt\""
79
+ done
80
+ echo ""
81
+ fi
82
+
83
+ [ $# -ge 1 -a -f "$1" ] && input="$file" || input="-"
84
+
85
+ input_file="${file:-/proc/self/fd/0}"
86
+ if [ "$input_file" == "/proc/self/fd/0" ]; then
87
+ #echo "STDIN"
88
+ # CL does not support reading from STDIN so it is wrapped here.
89
+ tmpout=cpp_wrapper_$RANDOM.h
90
+ /usr/bin/cp $input_file $tmpout
91
+ # from https://stackoverflow.com/questions/36313562/how-to-redirect-stdin-to-file-in-bash
92
+ #exec 3> cppstdtmp.h
93
+ #while IFS= read -r line; do
94
+ # printf '%s' "$line"
95
+ #done
96
+ #exec 3<&-
97
+ #echo "$(</dev/stdin)" > cppstdtmp.h
98
+ exec $prog ${cppopt[@]} $tmpout
99
+ rm -f $tmpout
100
+ else
101
+ #echo "FILE"
102
+ exec $prog ${cppopt[@]} $input_file
103
+ fi
104
+
cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/make_wrapper/windres-rc ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #! /bin/sh
2
+ # Wrapper for windres to rc which do not understand '-i -o --output-format'.
3
+ # cvtres is invoked by the linker
4
+ scriptversion=2022-08-24.12; # UTC
5
+
6
+
7
+ nl='
8
+ '
9
+
10
+ # We need space, tab and new line, in precisely that order. Quoting is
11
+ # there to prevent tools from complaining about whitespace usage.
12
+ IFS=" "" $nl"
13
+
14
+ file_conv=
15
+
16
+ # func_file_conv build_file lazy
17
+ # Convert a $build file to $host form and store it in $file
18
+ # Currently only supports Windows hosts. If the determined conversion
19
+ # type is listed in (the comma separated) LAZY, no conversion will
20
+ # take place.
21
+ func_file_conv ()
22
+ {
23
+ file=$1
24
+ case $file in
25
+ / | /[!/]*) # absolute file, and not a UNC file
26
+ if test -z "$file_conv"; then
27
+ # lazily determine how to convert abs files
28
+ case `uname -s` in
29
+ MINGW*)
30
+ file_conv=mingw
31
+ ;;
32
+ CYGWIN* | MSYS*)
33
+ file_conv=cygwin
34
+ ;;
35
+ *)
36
+ file_conv=wine
37
+ ;;
38
+ esac
39
+ fi
40
+ case $file_conv/,$2, in
41
+ *,$file_conv,*)
42
+ ;;
43
+ mingw/*)
44
+ file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
45
+ ;;
46
+ cygwin/* | msys/*)
47
+ file=`cygpath -m "$file" || echo "$file"`
48
+ ;;
49
+ wine/*)
50
+ file=`winepath -w "$file" || echo "$file"`
51
+ ;;
52
+ esac
53
+ ;;
54
+ esac
55
+ }
56
+
57
+ # func_windres_wrapper rc args...
58
+ # Adjust compile command to suit rc instead of windres
59
+ func_windres_wrapper ()
60
+ {
61
+ # Assume a capable shell
62
+ bin=
63
+ in=
64
+ out=
65
+
66
+ for arg
67
+ do
68
+ if test -z "$bin"; then
69
+ bin=$1
70
+ elif test -n "$eat"; then
71
+ eat=
72
+ else
73
+ case $1 in
74
+ --output-format=*)
75
+ ;;
76
+ --define*)
77
+ eat=1
78
+ set -- "$@" "-d $2"
79
+ ;;
80
+ --include-dir*)
81
+ eat=1
82
+ func_file_conv "$2"
83
+ set -- "$@" "-I $file"
84
+ ;;
85
+ -o)
86
+ eat=1
87
+ func_file_conv "$2"
88
+ out="$file"
89
+ echo "OUTPUT:$file"
90
+ ;;
91
+ *.obj)
92
+ func_file_conv "$1"
93
+ out="$file"
94
+ echo "OUTPUT:$file"
95
+ ;;
96
+ -i)
97
+ eat=1
98
+ func_file_conv "$2" mingw
99
+ in="$file"
100
+ echo "INPUT:$file"
101
+ ;;
102
+ -*)
103
+ set -- "$@" "${1//\\\"/\"}"
104
+ ;;
105
+ *)
106
+ # libtool reorders arguments; save unqualified one as input
107
+ func_file_conv "$1"
108
+ in="$file"
109
+ echo "INPUT:$file"
110
+ ;;
111
+ esac
112
+ fi
113
+ shift
114
+ done
115
+ echo "$bin" "$@" -fo "$out" "$in"
116
+ exec "$bin" "$@" -fo "$out" "$in"
117
+ exit 1
118
+ }
119
+
120
+ eat=
121
+
122
+ func_windres_wrapper "$@"
123
+
124
+
125
+ # Local Variables:
126
+ # mode: shell-script
127
+ # sh-indentation: 2
128
+ # eval: (add-hook 'before-save-hook 'time-stamp)
129
+ # time-stamp-start: "scriptversion="
130
+ # time-stamp-format: "%:y-%02m-%02d.%02H"
131
+ # time-stamp-time-zone: "UTC0"
132
+ # time-stamp-end: "; # UTC"
133
+ # End:
cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/meson/meson.template.in ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [binaries]
2
+ cmake = ['@CMAKE_COMMAND@']
3
+ python = ['@PYTHON3@']
4
+ ninja = ['@NINJA@']
5
+ pkgconfig= ['@PKGCONFIG@']
6
+ @MESON_MT@
7
+ @MESON_AR@
8
+ @MESON_RC@
9
+ @MESON_C@
10
+ @MESON_C_LD@
11
+ @MESON_CXX@
12
+ @MESON_CXX_LD@
13
+ @MESON_OBJC@
14
+ @MESON_OBJC_LD@
15
+ @MESON_OBJCPP@
16
+ @MESON_OBJCPP_LD@
17
+ @MESON_FC@
18
+ @MESON_FC_LD@
19
+ @MESON_WINDRES@
20
+ @MESON_ADDITIONAL_BINARIES@
21
+ [properties]
22
+ cmake_toolchain_file = '@SCRIPTS@/buildsystems/vcpkg.cmake'
23
+ [cmake]
24
+ VCPKG_TARGET_TRIPLET = '@TARGET_TRIPLET@'
25
+ VCPKG_HOST_TRIPLET = '@_HOST_TRIPLET@'
26
+ VCPKG_CHAINLOAD_TOOLCHAIN_FILE = '@VCPKG_CHAINLOAD_TOOLCHAIN_FILE@'
27
+ VCPKG_CRT_LINKAGE = '@VCPKG_CRT_LINKAGE@'
28
+ _VCPKG_INSTALLED_DIR = '@_VCPKG_INSTALLED_DIR@'
29
+ @MESON_HOST_MACHINE@
30
+ @MESON_BUILD_MACHINE@
31
+ [built-in options]
32
+ default_library = '@MESON_DEFAULT_LIBRARY@'
33
+ werror = false
34
+ @MESON_CFLAGS@
35
+ @MESON_CXXFLAGS@
36
+ @MESON_FCFLAGS@
37
+ @MESON_OBJCFLAGS@
38
+ @MESON_OBJCPPFLAGS@
39
+ # b_vscrt
40
+ @MESON_VSCRT_LINKAGE@
41
+ # c_winlibs/cpp_winlibs
42
+ @MESON_WINLIBS@
cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/meson/none.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # native file used to make the build machine compiler unusable
2
+
3
+ [host_machine]
4
+ system = 'none'
5
+ cpu_family = 'none'
6
+ cpu = 'none'
7
+ endian = 'little'
8
+
9
+ [properties]
10
+
11
+ [binaries]
12
+ c = ['false']
13
+ cpp = ['false']
14
+ objc = ['false']
15
+ objcpp = ['false']
16
+ ar = ['false']
17
+ pkgconfig = ['false']
18
+ cmake = ['false']
19
+ ninja = ['false']
cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/msbuild/applocal.ps1 ADDED
@@ -0,0 +1,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [cmdletbinding()]
2
+ param([string]$targetBinary, [string]$installedDir, [string]$tlogFile, [string]$copiedFilesLog)
3
+
4
+ $g_searched = @{}
5
+ # Note: installedDir is actually the bin\ directory.
6
+ $g_install_root = Split-Path $installedDir -parent
7
+ $g_is_debug = (Split-Path $g_install_root -leaf) -eq 'debug'
8
+
9
+ # Ensure we create the copied files log, even if we don't end up copying any files
10
+ if ($copiedFilesLog)
11
+ {
12
+ Set-Content -Path $copiedFilesLog -Value "" -Encoding UTF8
13
+ }
14
+
15
+ function computeHash([System.Security.Cryptography.HashAlgorithm]$alg, [string]$str) {
16
+ $bytes = [System.Text.Encoding]::UTF8.GetBytes($str)
17
+ $hash = $alg.ComputeHash($bytes)
18
+ return [Convert]::ToBase64String($hash)
19
+ }
20
+
21
+ function getMutex([string]$targetDir) {
22
+ try {
23
+ $sha512Hash = [System.Security.Cryptography.SHA512]::Create()
24
+ if ($sha512Hash) {
25
+ $hash = (computeHash $sha512Hash $targetDir) -replace ('/' ,'-')
26
+ $mtxName = "VcpkgAppLocalDeployBinary-" + $hash
27
+ return New-Object System.Threading.Mutex($false, $mtxName)
28
+ }
29
+
30
+ return New-Object System.Threading.Mutex($false, "VcpkgAppLocalDeployBinary")
31
+ }
32
+ catch {
33
+ Write-Error -Message $_ -ErrorAction Stop
34
+ }
35
+ }
36
+
37
+ # Note: this function signature is depended upon by the qtdeploy.ps1 script introduced in 5.7.1-7
38
+ function deployBinary([string]$targetBinaryDir, [string]$SourceDir, [string]$targetBinaryName) {
39
+ try {
40
+ $mtx = getMutex($targetBinaryDir)
41
+ if ($mtx) {
42
+ $mtx.WaitOne() | Out-Null
43
+ }
44
+
45
+ $sourceBinaryFilePath = Join-Path $SourceDir $targetBinaryName
46
+ $targetBinaryFilePath = Join-Path $targetBinaryDir $targetBinaryName
47
+ if (Test-Path $targetBinaryFilePath) {
48
+ $sourceModTime = (Get-Item $sourceBinaryFilePath).LastWriteTime
49
+ $destModTime = (Get-Item $targetBinaryFilePath).LastWriteTime
50
+ if ($destModTime -lt $sourceModTime) {
51
+ Write-Verbose " ${targetBinaryName}: Updating from $sourceBinaryFilePath"
52
+ Copy-Item $sourceBinaryFilePath $targetBinaryDir
53
+ } else {
54
+ Write-Verbose " ${targetBinaryName}: already present"
55
+ }
56
+ }
57
+ else {
58
+ Write-Verbose " ${targetBinaryName}: Copying $sourceBinaryFilePath"
59
+ Copy-Item $sourceBinaryFilePath $targetBinaryDir
60
+ }
61
+ if ($copiedFilesLog) { Add-Content $copiedFilesLog $targetBinaryFilePath -Encoding UTF8 }
62
+ if ($tlogFile) { Add-Content $tlogFile $targetBinaryFilePath -Encoding Unicode }
63
+ } finally {
64
+ if ($mtx) {
65
+ $mtx.ReleaseMutex() | Out-Null
66
+ $mtx.Dispose() | Out-Null
67
+ }
68
+ }
69
+ }
70
+
71
+
72
+ Write-Verbose "Resolving base path $targetBinary..."
73
+ try
74
+ {
75
+ $baseBinaryPath = Resolve-Path $targetBinary -erroraction stop
76
+ $baseTargetBinaryDir = Split-Path $baseBinaryPath -parent
77
+ }
78
+ catch [System.Management.Automation.ItemNotFoundException]
79
+ {
80
+ return
81
+ }
82
+
83
+ # Note: this function signature is depended upon by the qtdeploy.ps1 script
84
+ function resolve([string]$targetBinary) {
85
+ Write-Verbose "Resolving $targetBinary..."
86
+ try
87
+ {
88
+ $targetBinaryPath = Resolve-Path $targetBinary -erroraction stop
89
+ }
90
+ catch [System.Management.Automation.ItemNotFoundException]
91
+ {
92
+ return
93
+ }
94
+ $targetBinaryDir = Split-Path $targetBinaryPath -parent
95
+
96
+ if (Get-Command "dumpbin" -ErrorAction SilentlyContinue) {
97
+ $a = $(dumpbin /DEPENDENTS $targetBinaryPath| ? { $_ -match "^ [^ ].*\.dll" } | % { $_ -replace "^ ","" })
98
+ } elseif (Get-Command "llvm-objdump" -ErrorAction SilentlyContinue) {
99
+ $a = $(llvm-objdump -p $targetBinary| ? { $_ -match "^ {4}DLL Name: .*\.dll" } | % { $_ -replace "^ {4}DLL Name: ","" })
100
+ } elseif (Get-Command "objdump" -ErrorAction SilentlyContinue) {
101
+ $a = $(objdump -p $targetBinary| ? { $_ -match "^\tDLL Name: .*\.dll" } | % { $_ -replace "^\tDLL Name: ","" })
102
+ } else {
103
+ Write-Error "Neither dumpbin, llvm-objdump nor objdump could be found. Can not take care of dll dependencies."
104
+ }
105
+ $a | % {
106
+ if ([string]::IsNullOrEmpty($_)) {
107
+ return
108
+ }
109
+ if ($g_searched.ContainsKey($_)) {
110
+ Write-Verbose " ${_}: previously searched - Skip"
111
+ return
112
+ }
113
+ $g_searched.Set_Item($_, $true)
114
+ $installedItemFilePath = Join-Path $installedDir $_
115
+ $targetItemFilePath = Join-Path $targetBinaryDir $_
116
+ if (Test-Path $installedItemFilePath) {
117
+ deployBinary $baseTargetBinaryDir $installedDir "$_"
118
+ if (Test-Path function:\deployPluginsIfQt) { deployPluginsIfQt $baseTargetBinaryDir (Join-Path $g_install_root 'plugins') "$_" }
119
+ if (Test-Path function:\deployOpenNI2) { deployOpenNI2 $targetBinaryDir "$g_install_root" "$_" }
120
+ if (Test-Path function:\deployPluginsIfMagnum) {
121
+ if ($g_is_debug) {
122
+ deployPluginsIfMagnum $targetBinaryDir (Join-Path (Join-Path "$g_install_root" 'bin') 'magnum-d') "$_"
123
+ } else {
124
+ deployPluginsIfMagnum $targetBinaryDir (Join-Path (Join-Path "$g_install_root" 'bin') 'magnum') "$_"
125
+ }
126
+ }
127
+ if (Test-Path function:\deployAzureKinectSensorSDK) { deployAzureKinectSensorSDK $targetBinaryDir "$g_install_root" "$_" }
128
+ resolve (Join-Path $baseTargetBinaryDir "$_")
129
+ } elseif (Test-Path $targetItemFilePath) {
130
+ Write-Verbose " ${_}: $_ not found in $g_install_root; locally deployed"
131
+ resolve "$targetItemFilePath"
132
+ } else {
133
+ Write-Verbose " ${_}: $installedItemFilePath not found"
134
+ }
135
+ }
136
+ Write-Verbose "Done Resolving $targetBinary."
137
+ }
138
+
139
+ # Note: This is a hack to make Qt5 work.
140
+ # Introduced with Qt package version 5.7.1-7
141
+ if (Test-Path "$g_install_root\plugins\qtdeploy.ps1") {
142
+ . "$g_install_root\plugins\qtdeploy.ps1"
143
+ }
144
+
145
+ # Note: This is a hack to make OpenNI2 work.
146
+ if (Test-Path "$g_install_root\bin\OpenNI2\openni2deploy.ps1") {
147
+ . "$g_install_root\bin\OpenNI2\openni2deploy.ps1"
148
+ }
149
+
150
+ # Note: This is a hack to make Magnum work.
151
+ if (Test-Path "$g_install_root\bin\magnum\magnumdeploy.ps1") {
152
+ . "$g_install_root\bin\magnum\magnumdeploy.ps1"
153
+ } elseif (Test-Path "$g_install_root\bin\magnum-d\magnumdeploy.ps1") {
154
+ . "$g_install_root\bin\magnum-d\magnumdeploy.ps1"
155
+ }
156
+
157
+ # Note: This is a hack to make Azure Kinect Sensor SDK work.
158
+ if (Test-Path "$g_install_root\tools\azure-kinect-sensor-sdk\k4adeploy.ps1") {
159
+ . "$g_install_root\tools\azure-kinect-sensor-sdk\k4adeploy.ps1"
160
+ }
161
+
162
+ resolve($targetBinary)
163
+ Write-Verbose $($g_searched | out-string)
164
+
165
+ # SIG # Begin signature block
166
+ # MIIntwYJKoZIhvcNAQcCoIInqDCCJ6QCAQExDzANBglghkgBZQMEAgEFADB5Bgor
167
+ # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
168
+ # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAw4oRiVyZP7w6g
169
+ # qWIJMRXurO+EoO/lf/MY7lRybXYZ/aCCDYEwggX/MIID56ADAgECAhMzAAACUosz
170
+ # qviV8znbAAAAAAJSMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
171
+ # VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
172
+ # b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29m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GdHvXML+Ou8
370
+ # Emrocd+XorK0YmAUOP5yhytSIruzyDd4tLCfz8OUSug4dA8u7HWxPx31L10/Qpaq
371
+ # EE+TEUNWDaRunnV+ZY7YkyQkdsN+I1Mbe2/KC85Eiy2X04qwPd5ACF68aMrdSGvI
372
+ # e4eO5pJEHRGkimm9Mm44QCLrxx0zbQIU16GBOWbSyD/oy54MkOreoiIuWhCVS6lN
373
+ # oJrOEaFbCsrUVMcGAc13YgcLbCw0V/YZNRLMakT9sbjYqfn4xRE3DO8PmyHlzDw8
374
+ # g6CzIZQExAVkyxY+ZHXf8HcR5n3DHfLGMxCu7o4O7+os0axGBrdSmHJBVuSF+0Q3
375
+ # 0OaF2MDIrMNYfhlQt5DxB2sw8EnyLctrW2Ve7wuq02gBM+BT2Ln66a9wzNK7HPKs
376
+ # rSkQg2stGl0hoCRPZ9geSm++3pbtFhzUMosPpfA9mirBELDpWg5YRF9gftRdUfJZ
377
+ # bLYStWVOB5OFNv2LpxoOdvVzqiigK3+LRrnlcWxPt6/6QqlC5EIFYOkMUw==
378
+ # SIG # End signature block
cc-multilingual-main/cc_net/vcpkg/scripts/buildsystems/msbuild/vcpkg-general.xml ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Rule Name="VcpkgOptions" DisplayName="vcpkg" PageTemplate="generic" Description="Vcpkg"
3
+ xmlns="http://schemas.microsoft.com/build/2009/properties">
4
+
5
+ <Rule.Categories>
6
+ <Category Name="General" DisplayName="General" Description="General Vcpkg Configuration" />
7
+ <Category Name="Conditional" DisplayName="Target and Configuration Specific" Description="Conditional Vcpkg Configuration" />
8
+ </Rule.Categories>
9
+
10
+ <Rule.DataSource>
11
+ <!-- Note: HasConfigurationCondition must be either "true" or ommitted. Otherwise, the vcpkg property sheet will not be displayed. -->
12
+ <!-- Note: Remove all instances of 'Label="Vcpkg"' from this file if the vcpkg property sheet does not display any values. -->
13
+ <DataSource Persistence="ProjectFile" Label="Vcpkg" HasConfigurationCondition="true" />
14
+ </Rule.DataSource>
15
+
16
+ <BoolProperty Name="VcpkgEnabled" DisplayName="Use Vcpkg" Category="General" Default="true"
17
+ Description="Use Vcpkg for includes and libraries.">
18
+ <BoolProperty.DataSource>
19
+ <DataSource Persistence="ProjectFile" Label="Vcpkg" HasConfigurationCondition="false" />
20
+ </BoolProperty.DataSource>
21
+ </BoolProperty>
22
+
23
+ <BoolProperty Name="VcpkgEnableManifest" DisplayName="Use Vcpkg Manifest" Category="General" Default="false"
24
+ Description="Use the vcpkg manifest file to define your dependencies.">
25
+ <BoolProperty.DataSource>
26
+ <DataSource Persistence="ProjectFile" Label="Vcpkg" HasConfigurationCondition="false" />
27
+ </BoolProperty.DataSource>
28
+ </BoolProperty>
29
+
30
+ <BoolProperty Name="VcpkgManifestInstall" DisplayName="Install Vcpkg Dependencies" Category="General" Default="true"
31
+ Description="Install dependencies from the vcpkg manifest.">
32
+ <BoolProperty.DataSource>
33
+ <DataSource Persistence="ProjectFile" Label="Vcpkg" HasConfigurationCondition="false" />
34
+ </BoolProperty.DataSource>
35
+ </BoolProperty>
36
+
37
+ <BoolProperty Name="VcpkgAutoLink" DisplayName="Use AutoLink" Category="General" Default="true"
38
+ Description="Enables automatic linking with libraries build using Vcpkg. Does not work with lld-link.exe.">
39
+ <BoolProperty.DataSource>
40
+ <DataSource Persistence="ProjectFile" Label="Vcpkg" HasConfigurationCondition="false" />
41
+ </BoolProperty.DataSource>
42
+ </BoolProperty>
43
+
44
+ <BoolProperty Name="VcpkgApplocalDeps" DisplayName="App-locally deploy DLLs" Category="General" Default="true"
45
+ Description="Copies DLL dependencies from the vcpkg installed tree to the project output directory.">
46
+ <BoolProperty.DataSource>
47
+ <DataSource Persistence="ProjectFile" Label="Vcpkg" HasConfigurationCondition="false" />
48
+ </BoolProperty.DataSource>
49
+ </BoolProperty>
50
+
51
+ <BoolProperty Name="VcpkgXUseBuiltInApplocalDeps" DisplayName="Use built-in app-local deployment" Category="General" Default="false"
52
+ Description="(experimental) When copying DLL dependencies, use built-in-to-vcpkg implementation rather than PowerShell script.">
53
+ <BoolProperty.DataSource>
54
+ <DataSource Persistence="ProjectFile" Label="Vcpkg" HasConfigurationCondition="false" />
55
+ </BoolProperty.DataSource>
56
+ </BoolProperty>
57
+
58
+ <StringProperty Name="VcpkgRoot" DisplayName="Vcpkg Root" Category="General" Subtype="folder" Visible="false"
59
+ Description="Root path where Vcpkg is located. Be careful with changing this one. It is, for example, unable to update this property page from the new location without restarting visual studio.">
60
+ <StringProperty.DataSource>
61
+ <DataSource Persistence="ProjectFile" Label="Vcpkg" HasConfigurationCondition="false" />
62
+ </StringProperty.DataSource>
63
+ </StringProperty>
64
+
65
+ <StringProperty Name="VcpkgManifestRoot" DisplayName="Vcpkg Manifest Root" Category="General" Subtype="folder" Visible="false"
66
+ Description="The path to the directory which contains the manifest file, and the vcpkg_installed directory.">
67
+ <StringProperty.DataSource>
68
+ <DataSource Persistence="ProjectFile" Label="Vcpkg" HasConfigurationCondition="false" />
69
+ </StringProperty.DataSource>
70
+ </StringProperty>
71
+
72
+ <StringProperty Name="VcpkgInstalledDir" DisplayName="Installed Directory" Category="General" Subtype="folder" Visible="true"
73
+ Description="The location where headers and binaries will be consumed from. In manifest mode, this directory will be created and populated based on vcpkg.json.">
74
+ </StringProperty>
75
+
76
+ <BoolProperty Name="VcpkgUseStatic" DisplayName="Use Static Libraries" Category="Conditional" Default="false"
77
+ Description="Vcpkg can build static libraries (e.g. x64-windows-static). This options changes the default triplet to use these static libraries by appending -static to $(VcpkgTriplet). This will not be shown in the evaluation of the Triplet within the UI." />
78
+
79
+ <BoolProperty Name="VcpkgUseMD" DisplayName="Use Dynamic CRT" Category="Conditional" Default="false"
80
+ Description="Only effective if 'Use Static Libraries' is selected. Vcpkg can build static libraries compiled against MSVC runtime (e.g. x64-windows-static-md). This options changes the default triplet to use these static libraries by appending -md to $(VcpkgTriplet). This will not be shown in the evaluation of the Triplet within the UI." />
81
+
82
+ <StringProperty Name="VcpkgTriplet" DisplayName="Triplet" Category="Conditional" Subtype="Text"
83
+ Description="Specifies the triplet used by Vcpkg. Does not include the '-static' or '-static-md' suffixes that may be added by the 'Use static libraries' and 'Use Dynamic CRT' flags." />
84
+
85
+ <StringProperty Name="VcpkgHostTriplet" DisplayName="Host Triplet" Category="Conditional" Subtype="Text"
86
+ Description="Specifies the host triplet used by Vcpkg. If empty, this will be automatically determined." />
87
+
88
+ <StringProperty Name="VcpkgAdditionalInstallOptions" DisplayName="Additional Options" Category="General" Subtype="Text"
89
+ Description="Additional command line options to be passed to the underlying vcpkg tool when installing in manifest mode." />
90
+
91
+ <EnumProperty Name="VcpkgConfiguration" DisplayName="Vcpkg Configuration" Category="Conditional"
92
+ Description="Specifies if release or debug libraries build with vcpkg should be used.">
93
+ <EnumValue Name="Release" Description="Uses release libraries" />
94
+ <EnumValue Name="Debug" Description="Uses debug libraries" />
95
+ </EnumProperty>
96
+
97
+ </Rule>