meson: Fix namespace and add some missing args in the gir generation
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 5 Oct 2017 12:30:43 +0000 (14:30 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 5 Oct 2017 12:56:46 +0000 (13:56 +0100)
gst-libs/gst/insertbin/meson.build
gst-libs/gst/mpegts/meson.build
gst-libs/gst/player/meson.build

index 20d71c6..acf1805 100644 (file)
@@ -24,7 +24,7 @@ if build_gir
     export_packages : 'gstreamer-insertbin-1.0',
     includes : ['Gst-1.0'],
     install : true,
-    extra_args : gir_init_section + ['-DGST_USE_UNSTABLE_API'],
+    extra_args : gir_init_section + ['-DGST_USE_UNSTABLE_API'] + ['--c-include=gst/insertbin/gstinsertbin.h'],
     dependencies : [gst_dep]
   )
   gen_sources += insertbin_gir
index ea430b3..3ff7735 100644 (file)
@@ -47,12 +47,12 @@ if build_gir
     sources : mpegts_sources + mpegts_headers,
     namespace : 'GstMpegts',
     nsversion : api_version,
-    identifier_prefix : 'Gst',
-    symbol_prefix : 'gst',
+    identifier_prefix : 'GstMpegts',
+    symbol_prefix : 'gst_mpegts', #FIXME ['gst_mpegts', 'gst'],
     export_packages : 'gstreamer-mpegts-1.0',
     includes : ['Gst-1.0'],
     install : true,
-    extra_args : gir_init_section + ['-DGST_USE_UNSTABLE_API'],
+    extra_args : gir_init_section + ['-DGST_USE_UNSTABLE_API'] + ['--c-include=gst/mpegts/mpegts.h'],
     dependencies : [gst_dep]
   )
   gen_sources += mpegts_gir
index 5033d1a..57bc55b 100644 (file)
@@ -46,7 +46,7 @@ if build_gir
     includes : ['Gst-1.0', 'GstPbutils-1.0', 'GstBase-1.0', 'GstVideo-1.0',
       'GstAudio-1.0', 'GstTag-1.0'],
     install : true,
-    extra_args : gir_init_section + ['-DGST_USE_UNSTABLE_API'],
+    extra_args : gir_init_section + ['-DGST_USE_UNSTABLE_API'] + ['--c-include=gst/player/player.h'],
     dependencies : [gstbase_dep, gstvideo_dep, gstaudio_dep,
                   gsttag_dep, gstpbutils_dep]
   )