typefindfunctions: build gio xdgmime typefinder again
authorTim-Philipp Müller <tim@centricular.com>
Sun, 8 Dec 2019 00:00:37 +0000 (00:00 +0000)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 9 Dec 2019 07:33:55 +0000 (07:33 +0000)
And add gio-typefinder option to disable it. HAVE_GIO
was never set, at least not in the Meson build.

gst/typefind/meson.build
meson_options.txt

index ad9853f..3c5a5d2 100644 (file)
@@ -1,8 +1,15 @@
+typefindfunctions_extra_defs = []
+typefindfunctions_extra_deps = []
+if not get_option('gio-typefinder').disabled()
+  typefindfunctions_extra_defs += ['-DHAVE_GIO']
+  typefindfunctions_extra_deps += [gio_dep]
+endif
+
 gsttypefind = library('gsttypefindfunctions',
   'gsttypefindfunctions.c',
-  c_args : gst_plugins_base_args,
+  c_args : gst_plugins_base_args + typefindfunctions_extra_defs,
   include_directories: [configinc, libsinc],
-  dependencies : [pbutils_dep, gst_base_dep],
+  dependencies : [pbutils_dep, gst_base_dep, typefindfunctions_extra_deps],
   install : true,
   install_dir : plugins_install_dir,
 )
index 73de93f..ad519d5 100644 (file)
@@ -38,6 +38,7 @@ option('audiotestsrc', type : 'feature', value : 'auto')
 option('compositor', type : 'feature', value : 'auto')
 option('encoding', type : 'feature', value : 'auto')
 option('gio', type : 'feature', value : 'auto')
+option('gio-typefinder', type : 'feature', value : 'auto')
 option('overlaycomposition', type : 'feature', value : 'auto')
 option('pbtypes', type : 'feature', value : 'auto')
 option('playback', type : 'feature', value : 'auto')
@@ -85,4 +86,4 @@ option('package-name', type : 'string', yield : true,
 option('package-origin', type : 'string', value : 'Unknown package origin', yield : true,
        description : 'package origin URL to use in plugins')
 option('doc', type : 'feature', value : 'auto', yield: true,
-       description: 'Enable documentation.')
\ No newline at end of file
+       description: 'Enable documentation.')