mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-21 06:37:42 +01:00
support for projects with different names than directory
This commit is contained in:
parent
1708818096
commit
8368c899c4
13
buildwin.ps1
13
buildwin.ps1
@ -337,6 +337,19 @@ function Build
|
||||
if ($omitArray -NotContains $component)
|
||||
{
|
||||
$vsProject = "$poco_base\$componentDir\$componentName$($platformName)$($suffix).$($extension)"
|
||||
|
||||
if (!(Test-Path -Path $vsProject)) # when VS project name is not same as directory name
|
||||
{
|
||||
$vsProject = "$poco_base\$componentDir$($platformName)$($suffix).$($extension)"
|
||||
if (!(Test-Path -Path $vsProject)) # not found
|
||||
{
|
||||
Write-Host "+------------------------------------------------------------------"
|
||||
Write-Host "| VS project $vsProject not found, skipping."
|
||||
Write-Host "+------------------------------------------------------------------"
|
||||
Return # since Foreach-Object is a function, this is actually loop "continue"
|
||||
}
|
||||
}
|
||||
|
||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||
Write-Host "| Building $vsProject"
|
||||
Write-Host "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
||||
|
Loading…
x
Reference in New Issue
Block a user