From ce439995c006b493ba0073c9dfbfe07422a5acda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 20 May 2017 17:57:39 +0100 Subject: [PATCH] meson: check: generate .gir file https://bugzilla.gnome.org/show_bug.cgi?id=782173 --- libs/gst/check/meson.build | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/libs/gst/check/meson.build b/libs/gst/check/meson.build index 4b5de7cbcd..34896b71c1 100644 --- a/libs/gst/check/meson.build +++ b/libs/gst/check/meson.build @@ -47,6 +47,26 @@ gst_check = shared_library('gstcheck-@0@'.format(apiversion), dependencies : [gobject_dep, glib_dep, gst_dep], ) +gst_check_gen_sources = [] + +if build_gir + gst_gir_extra_args = gir_init_section + [ '--c-include=gst/check/check.h' ] + gst_check_gen_sources += [gnome.generate_gir(gst_check, + sources : gst_check_sources + gst_check_headers, + namespace : 'GstCheck', + nsversion : apiversion, + identifier_prefix : 'Gst', + symbol_prefix : 'gst', + export_packages : 'gstreamer-check-1.0', + dependencies : [gst_dep], + include_directories : [configinc, libsinc, privinc], + includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0', 'Gst-1.0'], + install : true, + extra_args : gst_gir_extra_args, + )] +endif + gst_check_dep = declare_dependency(link_with : gst_check, include_directories : [libsinc], - dependencies : [gst_dep]) + dependencies : [gst_dep], + sources : gst_check_gen_sources)