From f71709f56c096b17632ab56fda17d884d884c779 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 16 Dec 2019 13:57:24 +0300 Subject: AppVeyor: install kernel modules as well --- .appveyor/build.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '.appveyor/build.ps1') diff --git a/.appveyor/build.ps1 b/.appveyor/build.ps1 index 40233af..432bca3 100644 --- a/.appveyor/build.ps1 +++ b/.appveyor/build.ps1 @@ -1,4 +1,6 @@ param( + [Parameter(Mandatory=$true)] + [string] $InstallDir = $null, [string] $ProjectDir = $null, [string] $Platform = $null, [string] $Configuration = $null, @@ -78,6 +80,8 @@ function Build-Driver { [Parameter(Mandatory=$true)] [string] $ProjectDir, [Parameter(Mandatory=$true)] + [string] $InstallDir, + [Parameter(Mandatory=$true)] [string] $DriverSpec, [Parameter(Mandatory=$true)] [string] $Platform, @@ -91,7 +95,7 @@ function Build-Driver { $solution_path = Get-DriverSolutionPath -ProjectDir $ProjectDir -DriverSpec $DriverSpec $Configuration = Get-DriverConfiguration -Configuration $Configuration -DriverTargetOS $DriverTargetOS - $msbuild_params = "/p:Platform=$Platform;Configuration=$Configuration;SignMode=TestSign" + $msbuild_params = "/p:Platform=$Platform;Configuration=$Configuration;SignMode=TestSign;OutDir=$InstallDir\lib" cd $build_dir Invoke-Exe { msbuild.exe $msbuild_params $solution_path } @@ -102,6 +106,8 @@ function Build-ProjectKernelMode { [Parameter(Mandatory=$true)] [string] $ProjectDir, [Parameter(Mandatory=$true)] + [string] $InstallDir, + [Parameter(Mandatory=$true)] [string] $Platform, [Parameter(Mandatory=$true)] [string] $Configuration, @@ -114,6 +120,7 @@ function Build-ProjectKernelMode { foreach ($driver in $drivers) { Build-Driver ` -ProjectDir $ProjectDir ` + -InstallDir $InstallDir ` -DriverSpec $driver ` -Platform $Platform ` -Configuration $Configuration ` @@ -130,6 +137,7 @@ function Build-ProjectAppVeyor { try { Build-ProjectKernelMode ` -ProjectDir $script:ProjectDir ` + -InstallDir $script:InstallDir ` -Platform $script:Platform ` -Configuration $script:Configuration ` -DriverTargetOS $script:DriverTargetOS -- cgit v1.2.3