meson: add zlib to gstreamer-1.0.pc if found
authorTim-Philipp Müller <tim@centricular.com>
Sat, 11 Aug 2018 23:21:58 +0000 (00:21 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 11 Aug 2018 23:21:58 +0000 (00:21 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=793995

pkgconfig/meson.build

index 04abfbe..f5b8ece 100644 (file)
@@ -7,6 +7,7 @@ pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
 pkgconf.set('GST_API_VERSION', api_version)
 pkgconf.set('VERSION', gst_version)
 pkgconf.set('LIBM', libm.found() ? '-lm' : '')
+pkgconf.set('ZLIB_LIBS', zlib_dep.found() ? '-lz' : '')
 pkgconf.set('ORC_PC', have_orcc ? 'orc-0.4' : '')
 
 # needed for generating -uninstalled.pc files