diff options
author | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-10-20 17:17:27 -0300 |
---|---|---|
committer | Thibault Saunier <thibault.saunier@osg.samsung.com> | 2016-11-09 18:06:19 -0300 |
commit | 6917cb629e83aee7b4d2c6bdfd37f34b9c6d4e83 (patch) | |
tree | e7e734fba86f5c24ff6ba498a8998254b5099b32 /meson.build | |
parent | 54f4d3772c906090870c6a79b6bb7940c105e1f1 (diff) |
meson: Generate girs
https://bugzilla.gnome.org/show_bug.cgi?id=773944
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 5692a3512..7f2dbc0cf 100644 --- a/meson.build +++ b/meson.build @@ -195,6 +195,15 @@ if host_machine.system() == 'windows' pic_args = [] endif +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('ext') |