meson: add some starting build files for GL
[platform/upstream/gstreamer.git] / pkgconfig / meson.build
1 pkgconf = configuration_data()
2
3 pkgconf.set('prefix', get_option('prefix'))
4 pkgconf.set('exec_prefix', '${prefix}')
5 pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
6 pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
7 pkgconf.set('GST_API_VERSION', api_version)
8 pkgconf.set('VERSION', gst_version)
9
10 pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
11
12 pkg_libs = [
13   'bad-audio',
14   'bad-base',
15   'bad-video',
16   'codecparsers',
17   'insertbin',
18   'mpegts',
19   'player',
20   'plugins-bad',
21 ]
22
23 # XXX: requires the meson.build to be parsed/executed after gst-libs/gl/meson.build
24 if build_gstgl
25   pkg_libs += 'gl'
26 endif
27
28 # FIXME: -uninstalled.pc files (if still needed?)
29 foreach p : pkg_libs
30   infile = 'gstreamer-@0@.pc.in'.format(p)
31   outfile = 'gstreamer-@0@-@1@.pc'.format(p, api_version)
32   configure_file(input : infile,
33     output : outfile,
34     configuration : pkgconf,
35     install_dir : pkg_install_dir)
36 endforeach