From: Thibault Saunier Date: Fri, 4 Nov 2016 17:41:13 +0000 (-0300) Subject: meson: Unset the plugin paths to generate the .gir files X-Git-Tag: 1.19.3~493^2~913 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c45705f5291f772a885aea7bb99c67efad975c67;p=platform%2Fupstream%2Fgstreamer.git meson: Unset the plugin paths to generate the .gir files Avoiding problems when using subproject: 'Failed to load plugin something.so file too short' --- diff --git a/meson.build b/meson.build index c8024b4..507edaf 100644 --- a/meson.build +++ b/meson.build @@ -87,7 +87,14 @@ gtkdoc = find_program('gtkdoc-scan', required : false) # 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**);' + \ + 'extern void ges_init(void);' + \ + '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);' + \ + 'ges_init();' ] ges_c_args = ['-DHAVE_CONFIG_H'] plugins_install_dir = '@0@/gstreamer-1.0'.format(get_option('libdir'))