fix-build-without-wayland
authorMaintainers of GStreamer packages <gst-plugins-bad1.0@packages.debian.org>
Wed, 19 Feb 2025 12:04:59 +0000 (13:04 +0100)
committerMarc Leeman <marc.leeman@gmail.com>
Wed, 19 Feb 2025 12:04:59 +0000 (13:04 +0100)
commit 5cc93d5002f1f3f22738eddc28724191e28cbfb3
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Mon Dec 30 21:59:03 2024 +0100

    meson: Fix build with gtk3 but not wayland

Gbp-Pq: Name 0001-fix-build-without-wayland.patch

ext/gtk/meson.build
tests/examples/gtk/meson.build
tests/examples/meson.build

index 70a45b8c0b887679eb290d7e62ba83029f1e5b99..1ae9739139c0dde33764081991f450ea4eee5b82 100644 (file)
@@ -11,9 +11,11 @@ gtkwayland_sources = [
 ]
 
 gtk_dep = dependency('gtk+-3.0', required : get_option('gtk3'))
-gtk_wayland_dep = dependency('gtk+-wayland-3.0', required : get_option('gtk3'))
+if use_wayland
+  gtk_wayland_dep = dependency('gtk+-wayland-3.0', required : get_option('gtk3'))
+endif
 
-if gtk_dep.found() and gtk_wayland_dep.found()
+if gtk_dep.found() and gtk_wayland_dep.found() and use_wayland
   gstgtkwayland = library('gstgtkwayland',
     gtkwayland_sources,
     c_args :  gst_plugins_bad_args + ['-DGST_USE_UNSTABLE_API'],
index a09fed330583f4cb71ae262e4e14c88e775456f7..08145db43050c5e2d87960155dcd192291172c3d 100644 (file)
@@ -2,7 +2,7 @@ if not use_wayland
   subdir_done()
 endif
 
-if gtk_dep.found() and gtk_wayland_dep.found()
+if gtk_dep.found() and gtk_wayland_dep.found() and use_wayland
   executable('gtkwaylandsink',
     'gtkwaylandsink.c',
     extra_files: ['window.ui'],
index aec685bf65dd3bb59ef727462a65e212ffd1453e..ba82a1ed0e0ea7bc7b0e8210f8fd258a3c8b4107 100644 (file)
@@ -18,7 +18,9 @@ subdir('qsv')
 subdir('qt6d3d11')
 subdir('uvch264')
 subdir('va')
-subdir('waylandsink')
+if use_wayland
+  subdir('waylandsink')
+endif
 subdir('webrtc')
 subdir('wpe')