Complete foundation delivery and record verified project status

This commit is contained in:
dingo
2026-09-19 09:16:26 -04:00
parent 8ab48d3a56
commit 9e412736d9
22 changed files with 581 additions and 128 deletions
+10 -7
View File
@@ -12,17 +12,20 @@ $visualStudioRoot = & $vswherePath -latest -version '[17.0,18.0)' -products '*'
if (!$visualStudioRoot) { throw 'Visual Studio 2022 C++ build tools are required' }
$developerScript = Join-Path $visualStudioRoot 'Common7\Tools\VsDevCmd.bat'
# cmd only initializes compiler environment; all filesystem work stays in PowerShell/CMake.
$environmentCommand = 'call "{0}" -no_logo -arch=x64 -host_arch=x64 && set' -f $developerScript
$environmentLines = & $env:ComSpec /d /c $environmentCommand
if ($LASTEXITCODE -ne 0) { throw 'Visual Studio environment initialization failed' }
foreach ($line in $environmentLines) {
if ($line -match '^([^=]+)=(.*)$') {
[Environment]::SetEnvironmentVariable($matches[1], $matches[2], 'Process')
$configuredRoot = if ($env:VSINSTALLDIR) { $env:VSINSTALLDIR.TrimEnd('\') } else { '' }
if (!$env:VSCMD_VER -or $env:VSCMD_ARG_TGT_ARCH -ne 'x64' -or $configuredRoot -ne $visualStudioRoot.TrimEnd('\')) {
$environmentCommand = 'call "{0}" -no_logo -arch=x64 -host_arch=x64 && set' -f $developerScript
$environmentLines = & $env:ComSpec /d /c $environmentCommand
if ($LASTEXITCODE -ne 0) { throw 'Visual Studio environment initialization failed' }
foreach ($line in $environmentLines) {
if ($line -match '^([^=]+)=(.*)$') {
[Environment]::SetEnvironmentVariable($matches[1], $matches[2], 'Process')
}
}
}
$cmakeRoot = Join-Path $visualStudioRoot 'Common7\IDE\CommonExtensions\Microsoft\CMake'
$llvmRoot = Join-Path $visualStudioRoot 'VC\Tools\Llvm\x64\bin'
$env:Path = "$cmakeRoot\CMake\bin;$cmakeRoot\Ninja;$llvmRoot;$env:Path"
$env:Path = ((@("$cmakeRoot\CMake\bin", "$cmakeRoot\Ninja", $llvmRoot) + $env:Path.Split(';')) | Select-Object -Unique) -join ';'
Push-Location -LiteralPath $repositoryRoot
try {
if ($Action -in @('configure', 'check')) {