diff options
| author | Adonais Romero González <[email protected]> | 2023-01-30 15:00:49 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-01-30 15:00:49 -0800 |
| commit | 07779ee84973f2f63a1f2ced6377463b1c01baaf (patch) | |
| tree | d28fc10efc8f5dee97ec5df162bb533f6e801585 /Build-ProjectSet.ps1 | |
| parent | 2c0c8763300988d92ddd139cadf012f5ab1b12e1 (diff) | |
Build scripts update (#844)
---------
Co-authored-by: Jakob Lichtenberg (170957) <[email protected]>
Diffstat (limited to 'Build-ProjectSet.ps1')
| -rw-r--r-- | Build-ProjectSet.ps1 | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/Build-ProjectSet.ps1 b/Build-ProjectSet.ps1 deleted file mode 100644 index 2557b5b9..00000000 --- a/Build-ProjectSet.ps1 +++ /dev/null @@ -1,65 +0,0 @@ -param( - [hashtable]$ProjectSet, - [string]$Configuration = $env:Configuration, - [string]$Platform = $env:Platform -) - -if ([string]::IsNullOrEmpty($Configuration)) -{ - $Configuration = "Debug" -} - -if ([string]::IsNullOrEmpty($Platform)) -{ - $Platform = "x64" -} - -$oldPreference = $ErrorActionPreference -$ErrorActionPreference = "stop" -try -{ - # Check that msbuild can be called before trying anything. - Get-Command "msbuild" | Out-Null -} -catch -{ - Write-Host "`u{274C} msbuild cannot be called from current environment. Check that msbuild is set in current path (for example, that it is called from a Visual Studio developer command)." - Write-Error "msbuild cannot be called from current environment." - exit 1 -} -finally -{ - $ErrorActionPreference = $oldPreference -} - - -$exclusionsSet = @{} -$failSet = @() -Import-Csv 'exclusions.csv' | ForEach-Object { - $exclusionsSet[$_.Path.Replace($root, '').Trim('\').Replace('\', '.').ToLower()] = $_.Reason -} - -$ProjectSet.GetEnumerator() | ForEach-Object { - $projectName = $_.Key - if ($exclusionsSet.ContainsKey($projectName)) - { - Write-Output "[$projectName] `u{23E9} Excluded and skipped. Reason: $($exclusionsSet[$projectName])" - return; - } - $directory = $_.Value - .\Build-Project -Directory $directory -ProjectName $ProjectName -Configuration $Configuration -Platform $Platform - if ($LASTEXITCODE -ne 0) - { - $failSet += $ProjectName - } -} - -if ($failSet.Count -gt 0) -{ - Write-Output "Some projects were built with errors:" - foreach ($failedProject in $failSet) - { - Write-Output "$failedProject" - } - Write-Error "Some projects were built with errors." -}
\ No newline at end of file |
