forked from mirrors/gstreamer-rs
ccb9e3a7f8
And follow release tags instead of branches. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1110>
27 lines
696 B
PowerShell
27 lines
696 B
PowerShell
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
|
|
|
|
# Download gstreamer and all its subprojects
|
|
git clone -b 4.8.1 --depth 1 https://gitlab.gnome.org/gnome/gtk.git C:\gtk
|
|
if (!$?) {
|
|
Write-Host "Failed to clone gtk"
|
|
Exit 1
|
|
}
|
|
|
|
Set-Location C:\gtk
|
|
|
|
$env:MESON_ARGS = "--prefix=C:\gst-install\"
|
|
|
|
Write-Output "Building gtk"
|
|
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"
|
|
|
|
if (!$?) {
|
|
Write-Host "Failed to build and install gtk"
|
|
Exit 1
|
|
}
|
|
|
|
cd C:\
|
|
cmd /c rmdir /s /q C:\gtk
|
|
if (!$?) {
|
|
Write-Host "Failed to remove gtk checkout"
|
|
Exit 1
|
|
}
|