diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-12-17 20:48:11 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-12-19 12:02:09 +0000 |
commit | e9b740d8a502716b5e43e5527f1a9977721abbcb (patch) | |
tree | c0cb5a88f24fa0442c4f0a88af07d91bd658d6b6 /pkgconfig | |
parent | 656886e78191cbe127e6ccb867e6b3a7b3a7385d (diff) |
meson: set info variables in gstreamer-gl .pc file
Diffstat (limited to 'pkgconfig')
-rw-r--r-- | pkgconfig/meson.build | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgconfig/meson.build b/pkgconfig/meson.build index 7e8dff84a..f167729bc 100644 --- a/pkgconfig/meson.build +++ b/pkgconfig/meson.build @@ -22,7 +22,6 @@ pkgconf.set('rtsplibdir', join_paths(meson.build_root(), gst_rtsp.outdir())) pkgconf.set('sdplibdir', join_paths(meson.build_root(), gstsdp.outdir())) pkgconf.set('taglibdir', join_paths(meson.build_root(), gsttag.outdir())) pkgconf.set('videolibdir', join_paths(meson.build_root(), gstvideo.outdir())) -pkgconf.set('gllibdir', join_paths(meson.build_root(), gstgl.outdir())) pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir')) @@ -39,9 +38,17 @@ pkg_files = [ 'gstreamer-sdp', 'gstreamer-tag', 'gstreamer-video', - 'gstreamer-gl', ] +# XXX: requires the meson.build to be parsed/executed after gst-libs/gl/meson.build +if build_gstgl + pkgconf.set('gllibdir', join_paths(meson.build_root(), gstgl.outdir())) + pkg_files += ['gstreamer-gl'] + pkgconf.set('GL_APIS', ' '.join(enabled_gl_apis)) + pkgconf.set('GL_WINDOWS', ' '.join(enabled_gl_winsys)) + pkgconf.set('GL_PLATFORMS', ' '.join(enabled_gl_platforms)) +endif + foreach p : pkg_files infile = p + '.pc.in' outfile = p + '-1.0.pc' |