win32metadata/DoAll.ps1

51 строка
858 B
PowerShell

#Requires -Version 7.0
param
(
[switch]$Clean,
[switch]$ExcludePackages,
[switch]$ExcludeSamples,
[switch]$ExcludeTests,
[switch]$SkipInstallTools,
[ValidateSet("crossarch", "x64", "x86", "arm64")]
[string]
$arch = "crossarch"
)
# Run this script so it throws if VS isn't installed with the required workloads.
& "$PSScriptRoot\scripts\Get-VSPath.ps1" | Out-Null
if ($Clean.IsPresent)
{
.\scripts\CleanOutputs.ps1
}
if (!$SkipInstallTools.IsPresent)
{
. .\scripts\CommonUtils.ps1
Install-BuildTools -Clean:$Clean.IsPresent
}
.\scripts\BuildMetadataBin.ps1 -arch $arch -SkipInstallTools
if (!$ExcludePackages)
{
.\scripts\DoPackages.ps1 -SkipInstallTools
}
if (!$ExcludeSamples)
{
.\scripts\DoSamples.ps1 -SkipInstallTools
}
if (!$ExcludeTests)
{
.\scripts\DoTests.ps1 -SkipInstallTools
}