[vlc-commits] [Git][videolan/vlc][master] meson: disable xwd if xcb is not enabled

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Jan 28 13:46:03 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
fdf4f657 by Steve Lhomme at 2023-01-28T12:56:27+00:00
meson: disable xwd if xcb is not enabled

It is always disabled for Windows and Darwin targets in configure.

- - - - -


1 changed file:

- modules/codec/meson.build


Changes:

=====================================
modules/codec/meson.build
=====================================
@@ -238,13 +238,17 @@ if rsvg_dep.found() and cairo_dep.found()
 endif
 
 # xwd
-xproto_dep = dependency('xproto', required: get_option('xcb'))
-if xproto_dep.found()
-  vlc_modules += {
-      'name' : 'xwd',
-      'sources' : files('xwd.c'),
-      'dependencies' : [xproto_dep]
-  }
+if (get_option('xcb')
+    .disable_auto_if(host_system in ['darwin', 'windows'])
+    .allowed())
+  xproto_dep = dependency('xproto', required: get_option('xcb'))
+  if xproto_dep.found()
+    vlc_modules += {
+        'name' : 'xwd',
+        'sources' : files('xwd.c'),
+        'dependencies' : [xproto_dep]
+    }
+  endif
 endif
 
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fdf4f657d4a5f70955620d41f8967ba5d8d6212b

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fdf4f657d4a5f70955620d41f8967ba5d8d6212b
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list