|
31 | 31 | artifact_name: '32-bit' |
32 | 32 | debug-platform: 'Win32' |
33 | 33 | steps: |
34 | | - # Install and integrate vcpkg |
| 34 | + - task: PowerShell@2 |
| 35 | + inputs: |
| 36 | + targetType: 'inline' |
| 37 | + script: | |
| 38 | + echo "Cloning and bootstrapping vcpkg" |
| 39 | + git clone https://github.com/microsoft/vcpkg.git $(VCPKG_ROOT) |
| 40 | + cd $(VCPKG_ROOT) |
| 41 | + .\bootstrap-vcpkg.bat |
| 42 | + .\vcpkg.exe integrate install # Integrate vcpkg with MSBuild |
| 43 | +
|
| 44 | + # Install Boost JSON for x64 |
| 45 | + - task: PowerShell@2 |
| 46 | + displayName: 'Install Boost JSON for x64' |
| 47 | + inputs: |
| 48 | + targetType: 'inline' |
| 49 | + script: | |
| 50 | + if (!(Test-Path "$(VCPKG_ROOT)\vcpkg.exe")) { |
| 51 | + Write-Error "vcpkg.exe not found. Exiting..." |
| 52 | + exit 1 |
| 53 | + } |
| 54 | + Write-Output "Installing Boost JSON for x64..." |
| 55 | + $(VCPKG_ROOT)\vcpkg.exe install boost-json:x64-windows |
| 56 | +
|
| 57 | + # Verify vcpkg integration for x64 |
| 58 | + - task: PowerShell@2 |
| 59 | + displayName: 'Verify vcpkg Integration for x64' |
| 60 | + inputs: |
| 61 | + targetType: 'inline' |
| 62 | + script: | |
| 63 | + echo "Verifying vcpkg integration for x64..." |
| 64 | + $(VCPKG_ROOT)\vcpkg.exe integrate install |
| 65 | + if (!(Test-Path "$(VCPKG_ROOT)\installed\x64-windows\include\boost\json.hpp")) { |
| 66 | + Write-Error "Boost JSON header not found in x64-vcpkg integration. Exiting..." |
| 67 | + exit 1 |
| 68 | + } |
| 69 | + Write-Output "vcpkg integration verified for x64." |
| 70 | +
|
| 71 | + - task: PowerShell@2 |
| 72 | + displayName: 'Get vcpkg.cmake contents' |
| 73 | + inputs: |
| 74 | + targetType: 'inline' |
| 75 | + script: | |
| 76 | + $filePath = "C:\vcpkg\scripts\buildsystems\vcpkg.cmake" |
| 77 | + if (Test-Path $filePath) { |
| 78 | + $fileContents = Get-Content $filePath -Raw |
| 79 | + Write-Host "Contents of vcpkg.cmake:" |
| 80 | + Write-Host $fileContents |
| 81 | + } else { |
| 82 | + Write-Host "File not found: $filePath" |
| 83 | + } |
| 84 | +
|
| 85 | + # Get installed Windows SDK version |
35 | 86 | - task: PowerShell@2 |
36 | 87 | displayName: 'Check Installed Windows SDK Version' |
37 | 88 | inputs: |
|
0 commit comments