From cf1404814a929536071a3c27536ea6f7fd39688c Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 4 Nov 2016 14:45:19 -0300 Subject: [PATCH] meson: Unset the plugin paths to generate the .gir files Avoiding problems when using subproject: 'Failed to load plugin something.so file too short' --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index fdb05c704a..ec3c3399ea 100644 --- a/meson.build +++ b/meson.build @@ -50,7 +50,11 @@ json_dep = dependency('json-glib-1.0', gst_c_args = ['-DHAVE_CONFIG_H', '-DGST_USE_UNSTABLE_API'] -gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**); gst_init(NULL,NULL);' ] +gir_init_section = [ '--add-init-section=extern void gst_init(gint*,gchar**);' + \ + 'g_setenv("GST_REGISTRY_1.0", "/no/way/this/exists.reg", TRUE);' + \ + 'g_setenv("GST_PLUGIN_PATH_1_0", "", TRUE);' + \ + 'g_setenv("GST_PLUGIN_SYSTEM_PATH_1_0", "", TRUE);' + \ + 'gst_init(NULL,NULL);' ] gir = find_program('g-ir-scanner', required : false) build_gir = gir.found() and not meson.is_cross_build() and not get_option('disable_introspection') gnome = import('gnome')