meson: Generate the wayland pc file when needed

This commit is contained in:
Thibault Saunier 2017-01-05 12:31:14 -03:00
parent e80b474a14
commit 8e40fb0e39

View 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)