mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
fix(buildwin.ps1): skip TestLibrary for static build (DLL only); build DataTest library
This commit is contained in:
parent
be52ced34a
commit
71f475745a
13
buildwin.ps1
13
buildwin.ps1
@ -312,6 +312,11 @@ function Exec-MSBuild([string] $vsProject, [string] $projectConfig)
|
||||
function Build-MSBuild([string] $vsProject, [switch] $skipStatic)
|
||||
{
|
||||
if ($linkmode -contains "static" -and $skipStatic) { Return }
|
||||
if ($linkmode.Contains("static") -and $vsProject.Contains("TestLibrary"))
|
||||
{
|
||||
Write-Host "Skipping static build of DLL-only $vsProject"
|
||||
return
|
||||
}
|
||||
|
||||
if ($linkmode -eq 'all')
|
||||
{
|
||||
@ -501,6 +506,14 @@ function Build-Components([string] $extension, [string] $type)
|
||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||
Build-Exec $tool $vsTestProject -skipStatic
|
||||
}
|
||||
elseif ($component -eq "Data") # special case for Data, which needs DataTest lib
|
||||
{
|
||||
$vsTestProject = "$poco_base\$componentDir\testsuite\DataTest\DataTest$($suffix).$($extension)"
|
||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||
Write-Host "| Building $vsTestProject"
|
||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||
Build-Exec $tool $vsTestProject
|
||||
}
|
||||
}
|
||||
ElseIf ($samples -and ($type -eq "sample"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user