Skip to content

Commit 2045e4c

Browse files
CharityKathureCharity Kathure
authored andcommitted
Use CMake to build project
Signed-off-by: Charity Kathure <[email protected]>
1 parent 072bcba commit 2045e4c

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

azure-pipelines.yml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,58 @@ jobs:
3131
artifact_name: '32-bit'
3232
debug-platform: 'Win32'
3333
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
3586
- task: PowerShell@2
3687
displayName: 'Check Installed Windows SDK Version'
3788
inputs:

0 commit comments

Comments
 (0)