2022-08-17 14:31:28 +00:00
|
|
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
|
|
|
|
|
2022-09-29 00:49:42 +00:00
|
|
|
$env:MESON_ARGS = "--prefix=C:\gst-install\"
|
|
|
|
|
|
|
|
# Download gtk and all its subprojects
|
2023-04-01 10:53:53 +00:00
|
|
|
git clone -b 4.10.1 --depth 1 https://gitlab.gnome.org/gnome/gtk.git C:\gtk
|
2022-08-17 14:31:28 +00:00
|
|
|
if (!$?) {
|
|
|
|
Write-Host "Failed to clone gtk"
|
|
|
|
Exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
Set-Location C:\gtk
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|