meson: move gmodule check to top-level
authorTim-Philipp Müller <tim@centricular.com>
Thu, 16 Aug 2018 09:58:47 +0000 (10:58 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 16 Aug 2018 09:58:47 +0000 (10:58 +0100)
It's also needed by the generic/states test and the variable
is currently checked as part of the opengl lib tests so wouldn't
be available if opengl was disabled.

gst-libs/gst/gl/meson.build
meson.build

index 4379a8d..e0bf5e7 100644 (file)
@@ -136,8 +136,6 @@ foreach option : glconf_options
   glconf.set10(option, false)
 endforeach
 
-gmodule_dep = dependency('gmodule-no-export-2.0',
-  fallback: ['glib', 'libgmodule_dep'])
 unneeded_dep = dependency('', required : false)
 if unneeded_dep.found()
   error ('Found unfindable dependency')
index d0873cd..9228868 100644 (file)
@@ -235,6 +235,8 @@ glib_deps = [dependency('glib-2.0', version : glib_req, fallback: ['glib', 'libg
 gio_dep = dependency('gio-2.0', fallback: ['glib', 'libgio_dep'])
 giounix_dep = dependency('gio-unix-2.0', version : glib_req, required : host_system != 'windows',
                          fallback: ['glib', 'libgiounix_dep'])
+gmodule_dep = dependency('gmodule-no-export-2.0',
+                         fallback: ['glib', 'libgmodule_dep'])
 
 # some of the examples can use gdk-pixbuf and GTK+3
 gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0', required : get_option('examples'))