meson: pkgconfig: add libunwind/libdw to gstreamer-1.0 Requires.private
authorTim-Philipp Müller <tim@centricular.com>
Tue, 11 Jul 2017 15:15:16 +0000 (16:15 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 11 Jul 2017 15:15:16 +0000 (16:15 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=784795

pkgconfig/meson.build

index 32f96cd..ae27ce3 100644 (file)
@@ -7,6 +7,10 @@ pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
 pkgconf.set('GST_API_VERSION', apiversion)
 pkgconf.set('VERSION', gst_version)
 
+# Requires.private
+pkgconf.set('UNWIND_REQUIRE', cdata.has('HAVE_UNWIND') ? 'libunwind' : '')
+pkgconf.set('DW_REQUIRE', cdata.has('HAVE_DW') ? 'libdw' : '')
+
 # needed for generating -uninstalled.pc files
 pkgconf.set('abs_top_builddir', join_paths(meson.current_build_dir(), '..'))
 pkgconf.set('abs_top_srcdir', join_paths(meson.current_source_dir(), '..'))