meson: Generate the wayland pc file when needed
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Thu, 5 Jan 2017 15:31:14 +0000 (12:31 -0300)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Thu, 5 Jan 2017 15:31:14 +0000 (12:31 -0300)
pkgconfig/meson.build

index b16d01e407e17a32717d7e7074405c5d2b7f47e7..41539f8b812d4ecb3419a071864f5994f7f137a0 100644 (file)
@@ -40,6 +40,11 @@ if build_gstgl
   pkg_libs += 'gl'
 endif
 
+if use_wayland
+    pkgconf.set('waylandlibdir', join_paths(meson.build_root(), gstwayland.outdir()))
+    pkg_libs += 'wayland'
+endif
+
 foreach p : pkg_libs
   infile = 'gstreamer-@0@.pc.in'.format(p)
   outfile = 'gstreamer-@0@-@1@.pc'.format(p, api_version)