]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Fix powershell scripts to build SDV and archive results
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 26 Apr 2019 13:21:26 +0000 (14:21 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Fri, 26 Apr 2019 13:21:26 +0000 (14:21 +0100)
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
msbuild.ps1

index 0302a85accb713f7029770af2a31da5c641e1e43..b51c4406a8c03f77e31cb91a5222b1a38f7778c7 100644 (file)
@@ -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
 }