meson: Always require the gmodule dependency
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Apr 2019 09:51:33 +0000 (12:51 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Apr 2019 09:51:33 +0000 (12:51 +0300)
It's needed by the dvdread plugin but also by the x264 plugin in certain
circumstances. As it's part of GLib and always available, simply move it
as a hard dependency to the top-level meson.build.

ext/dvdread/meson.build
meson.build

index ae5a7a6..e385572 100644 (file)
@@ -1,5 +1,3 @@
-gmodule_dep = dependency('gmodule-2.0', fallback : ['glib', 'libgmodule_dep'],
-                         required : get_option('dvdread'))
 dvdread_dep = dependency('dvdread', version : '>= 0.5.0', required : get_option('dvdread'))
 
 if gmodule_dep.found() and dvdread_dep.found()
index 092aaa1..0526f62 100644 (file)
@@ -155,6 +155,8 @@ else
   cdata.set('DISABLE_ORC', 1)
 endif
 
+gmodule_dep = dependency('gmodule-2.0', fallback : ['glib', 'libgmodule_dep'])
+
 ugly_args = ['-DHAVE_CONFIG_H']
 configinc = include_directories('.')
 libsinc = include_directories('gst-libs')