summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2016-11-04 10:19:17 -0300
committerNirbheek Chauhan <nirbheek@centricular.com>2016-11-10 01:47:47 +0530
commit7610e50fd05212bbd9f4f8e4020c5c1d2964be32 (patch)
tree924f89d78c11c853505a408d6862784387755861
parent9f765e1787da49db9066a129488589c2501edf99 (diff)
meson: Unset the plugin paths to generate the .gir files
Avoiding problems when using subproject: Failed to load plugin 'something.so: file too short
-rw-r--r--meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index a6312d02ef..931437e704 100644
--- a/meson.build
+++ b/meson.build
@@ -294,7 +294,11 @@ gnome = import('gnome')
# Fixme, not very elegant.
build_gir = gir.found() and not meson.is_cross_build() and not get_option('disable_introspection')
-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);' ]
vs_module_defs_dir = meson.current_source_dir() + '/win32/common/'
gst_c_args = ['-DHAVE_CONFIG_H']