Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions scripts/win-installer/build-win-installer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@
<#
.SYNOPSIS

Build the SRT static libraries installer for Windows.
.DESCRIPTION

Build the SRT static libraries installer for Windows.

See README.md for usage details and prerequisites.

.SYNOPSIS

.\build-win-installer.ps1 [-Version DESIRED_VERSION] [-NoBuild] [-NoPause]

.PARAMETER Version

Expand Down Expand Up @@ -197,7 +205,17 @@ if (-not $NoBuild) {
# Compile SRT.
Write-Output "Building for platform $Platform ..."
foreach ($Conf in $LIBDIR.Keys) {
& $MSBuild "$BuildDir\SRT.sln" /nologo /maxcpucount /property:Configuration=$Conf /property:Platform=$Platform /target:srt_static
# The solution file format depends on the CMake version.
# Try new XML solution file format first.
$SolFile = "$BuildDir\SRT.slnx"
if (-not (Test-Path $SolFile)) {
# Try legacy solution file format.
$SolFile = "$BuildDir\SRT.sln"
}
if (-not (Test-Path $SolFile)) {
Exit-Script "Solution file $BuildDir\SRT.sln[x] not found, check CMake output"
}
& $MSBuild $SolFile /nologo /maxcpucount /property:Configuration=$Conf /property:Platform=$Platform /target:srt_static
}
}
}
Expand Down
Loading