mirror of
https://github.com/Chuyu-Team/VC-LTL5.git
synced 2026-10-19 23:02:14 +08:00
27 lines
561 B
PowerShell
27 lines
561 B
PowerShell
param($OutDir, $arch, $WindowsTargetPlatformMinVersion="", $CleanImport="")
|
|
|
|
&"${PSScriptRoot}\PowerShellInitUnitTest.ps1" -arch $arch -WindowsTargetPlatformMinVersion $WindowsTargetPlatformMinVersion -CleanImport $CleanImport
|
|
if($lastexitcode -ne 0)
|
|
{
|
|
Write-Error "nmake失败"
|
|
exit $lastexitcode
|
|
}
|
|
|
|
&pushd "${PSScriptRoot}\..\Example\NMake"
|
|
$env:OutDir = $OutDir
|
|
|
|
|
|
if (-not (Test-Path $env:OutDir))
|
|
{
|
|
mkdir -p "$env:OutDir"
|
|
}
|
|
& nmake -f Example.mak
|
|
&popd
|
|
|
|
if($lastexitcode -ne 0)
|
|
{
|
|
Write-Error "nmake失败"
|
|
exit $lastexitcode
|
|
}
|
|
|
|
exit 0 |