qtdemux: Make function foreach method friendly
[platform/upstream/gst-plugins-good.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 # needed for generating -uninstalled.pc files
11 pkgconf.set('abs_top_builddir', join_paths(meson.current_build_dir(), '..'))
12 pkgconf.set('abs_top_srcdir', join_paths(meson.current_source_dir(), '..'))
13
14 pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
15
16 pkg_files = ['gstreamer-plugins-good']
17
18 foreach p : pkg_files
19   infile = p + '-uninstalled.pc.in'
20   outfile = p + '-1.0-uninstalled.pc'
21   configure_file(input : infile,
22     output : outfile,
23     configuration : pkgconf)
24 endforeach