Files
UltraGrid/.github/scripts/Windows/build_aja.ps1
Martin Pulec 972d0432c6 GitHub CI [Win]: AJA build fix
Current MSVS requires explicit target "Rebuild" for some reason.
Explicit target "Build" doesn't work for some reason (perhaps some
error in project file?).
2021-06-08 16:04:43 +02:00

13 lines
363 B
PowerShell

#Set-PSDebug -Trace 1
# Build AJA
if (${env:SDK_URL}) {
Invoke-WebRequest ${env:SDK_URL}/ntv2sdkwin.zip -OutFile aja.zip
Expand-Archive -LiteralPath 'aja.zip' -DestinationPath 'C:\'
Remove-Item aja.zip
mv c:\ntv2sdk* c:\AJA
cd c:\AJA
MSBuild.exe ntv2_vs12.sln -p:PlatformToolset=v142 -p:Configuration=Release -p:Platform=x64 -t:libajantv2:Rebuild
}