pipewire/pkgconfig/meson.build

26 lines
751 B
Meson
Raw Normal View History

2016-09-26 12:15:52 +02:00
pkgconf = configuration_data()
pkgconf.set('prefix', get_option('prefix'))
pkgconf.set('exec_prefix', '${prefix}')
pkgconf.set('libdir', '${prefix}/@0@'.format(get_option('libdir')))
pkgconf.set('includedir', '${prefix}/@0@'.format(get_option('includedir')))
pkgconf.set('moduledir', '${prefix}/@0@'.format(modules_install_dir))
2017-05-23 19:15:33 +02:00
pkgconf.set('PIPEWIRE_API_VERSION', apiversion)
pkgconf.set('VERSION', pipewire_version)
2016-09-26 12:15:52 +02:00
pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
2017-01-04 11:34:50 +01:00
pkg_files = [
2017-05-23 19:15:33 +02:00
'libpipewire',
2017-01-04 11:34:50 +01:00
'libspa',
2016-09-26 12:15:52 +02:00
]
foreach p : pkg_files
infile = p + '.pc.in'
2018-07-31 15:05:17 +02:00
outfile = p + '-@0@.pc'.format(apiversion)
2016-09-26 12:15:52 +02:00
configure_file(input : infile,
output : outfile,
configuration : pkgconf,
install_dir : pkg_install_dir)
endforeach