mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-09 00:35:41 +00:00
ci/windows: Install pango explicitly
Instead of relying on the subproject Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1110>
This commit is contained in:
parent
21e342c947
commit
4f2d974aa6
3 changed files with 32 additions and 4 deletions
|
@ -15,7 +15,8 @@ RUN choco install -y pkgconfiglite nasm llvm
|
|||
RUN setx PATH '%PATH%;C:\Program Files\NASM;C:\gst-install\bin'
|
||||
ENV PKG_CONFIG_PATH="C:\gst-install\lib\pkgconfig"
|
||||
|
||||
COPY install_gst.ps1 install_gtk.ps1 install_dav1d.ps1 C:\
|
||||
COPY install_pango.ps1 install_gst.ps1 install_gtk.ps1 install_dav1d.ps1 C:\
|
||||
RUN C:\install_pango.ps1
|
||||
RUN C:\install_gst.ps1
|
||||
RUN C:\install_gtk.ps1
|
||||
RUN C:\install_dav1d.ps1
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
|
||||
|
||||
# Download gstreamer and all its subprojects
|
||||
$env:MESON_ARGS = "--prefix=C:\gst-install\"
|
||||
|
||||
# Download gtk 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"
|
||||
|
@ -9,8 +11,6 @@ if (!$?) {
|
|||
|
||||
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"
|
||||
|
||||
|
|
27
ci/windows-docker/install_pango.ps1
Normal file
27
ci/windows-docker/install_pango.ps1
Normal file
|
@ -0,0 +1,27 @@
|
|||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
|
||||
|
||||
$env:MESON_ARGS = "--prefix=C:\gst-install\"
|
||||
|
||||
# Download pango all its subprojects
|
||||
git clone -b main --depth 1 https://gitlab.gnome.org/gnome/pango.git C:\pango
|
||||
if (!$?) {
|
||||
Write-Host "Failed to clone pango"
|
||||
Exit 1
|
||||
}
|
||||
|
||||
Set-Location C:\pango
|
||||
|
||||
Write-Output "Building pango"
|
||||
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 pango"
|
||||
Exit 1
|
||||
}
|
||||
|
||||
cd C:\
|
||||
cmd /c rmdir /s /q C:\pango
|
||||
if (!$?) {
|
||||
Write-Host "Failed to remove gtk checkout"
|
||||
Exit 1
|
||||
}
|
Loading…
Reference in a new issue