summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-01-23 12:12:06 -0300
committerThibault Saunier <thibault.saunier@osg.samsung.com>2017-01-23 12:48:53 -0300
commitcea4346d84eda7df2f0d02c1c716217fca7c1982 (patch)
tree1491f8fc03cdf48852b2869bcc792f7ef675e3ae /meson.build
parent2ea086e97d0d81da70849befecf5db7eb54b5e7c (diff)
downloadgstreamer-plugins-bad-cea4346d84eda7df2f0d02c1c716217fca7c1982.tar.gz
meson: Build GIR files
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 5c0a9cc4d..5ef874790 100644
--- a/meson.build
+++ b/meson.build
@@ -373,6 +373,14 @@ vs_module_defs_dir = meson.current_source_dir() + '/win32/common/'
# Used by the *_mkenum.py helper scripts
glib_mkenums = find_program('glib-mkenums')
+gir = find_program('g-ir-scanner', required : false)
+gnome = import('gnome')
+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**);' + \
+ 'g_setenv("GST_REGISTRY_1.0", "@0@", TRUE);'.format(meson.current_build_dir() + '/gir_empty_registry.reg') + \
+ 'g_setenv("GST_PLUGIN_PATH_1_0", "", TRUE);' + \
+ 'g_setenv("GST_PLUGIN_SYSTEM_PATH_1_0", "", TRUE);' + \
+ 'gst_init(NULL,NULL);' ]
subdir('gst-libs')
subdir('gst')
subdir('sys')