1 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
3 # Download gstreamer and all its subprojects
4 git clone -b $env:DEFAULT_BRANCH --depth 1 https://gitlab.freedesktop.org/gstreamer/gstreamer.git C:\gstreamer
6 Write-Host "Failed to clone gstreamer"
10 Set-Location C:\gstreamer
12 # Copy the cache we already have in the image to avoid massive redownloads
13 Move-Item C:/subprojects/* C:\gstreamer\subprojects
16 Write-Host "Failed to copy subprojects cache"
20 # Update the subprojects cache
21 Write-Output "Running meson subproject reset"
22 meson subprojects update --reset
25 Write-Host "Failed to reset subprojects state"
29 $env:MESON_ARGS = "-Dglib:installed_tests=false " +
30 "-Dlibnice:tests=disabled " +
31 "-Dlibnice:examples=disabled " +
32 "-Dffmpeg:tests=disabled " +
33 "-Dopenh264:tests=disabled " +
34 "-Dpygobject:tests=false " +
38 "-Drtsp_server=enabled " +
39 "-Ddevtools=enabled " +
41 "-Dpython=disabled " +
44 "-Dgst-plugins-base:pango=enabled " +
45 "-Dgst-plugins-good:cairo=enabled " +
48 Write-Output "Building gst"
49 cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=amd64 && meson _build $env:MESON_ARGS && meson compile -C _build && ninja -C _build install"
52 Write-Host "Failed to build and install gst"
59 Write-Host "Failed to git clean"