From 415d7e12682a226b7794aa192a4fcbe37ae9f29c Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Fri, 26 Apr 2019 14:21:26 +0100 Subject: [PATCH] Fix powershell scripts to build SDV and archive results Signed-off-by: Paul Durrant --- msbuild.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/msbuild.ps1 b/msbuild.ps1 index 0302a85..b51c440 100644 --- a/msbuild.ps1 +++ b/msbuild.ps1 @@ -43,10 +43,12 @@ Function Run-MSBuildSDV { ) $basepath = Get-Location + $versionpath = Join-Path -Path $SolutionPath -ChildPath "version" $projpath = Join-Path -Path $SolutionPath -ChildPath $Name Set-Location $projpath $project = [string]::Format("{0}.vcxproj", $Name) + Run-MSBuild $versionpath "version.vcxproj" $Configuration $Platform "Build" Run-MSBuild $projpath $project $Configuration $Platform "Build" Run-MSBuild $projpath $project $Configuration $Platform "sdv" "/clean" Run-MSBuild $projpath $project $Configuration $Platform "sdv" "/check:default.sdv /debug" @@ -57,6 +59,8 @@ Function Run-MSBuildSDV { Run-MSBuild $projpath $project $Configuration $Platform "sdv" "/refine" } + Copy-Item "*DVL*" -Destination $SolutionPath + Set-Location $basepath } @@ -75,7 +79,15 @@ elseif ($Type -eq "checked") { Run-MSBuild $solutionpath "xenbus.sln" $configuration["checked"] $platform[$Arch] } elseif ($Type -eq "sdv") { + $archivepath = "xenbus" + + if (-Not (Test-Path -Path $archivepath)) { + New-Item -Name $archivepath -ItemType Directory | Out-Null + } + Run-MSBuildSDV $solutionpath "xen" $configuration["sdv"] $platform[$Arch] Run-MSBuildSDV $solutionpath "xenfilt" $configuration["sdv"] $platform[$Arch] Run-MSBuildSDV $solutionpath "xenbus" $configuration["sdv"] $platform[$Arch] + + Copy-Item -Path (Join-Path -Path $SolutionPath -ChildPath "*DVL*") -Destination $archivepath } -- 2.39.5