pipewire/pkgconfig/meson.build

25 lines
662 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')))
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'
outfile = p + '-0.1.pc'
configure_file(input : infile,
output : outfile,
configuration : pkgconf,
install_dir : pkg_install_dir)
endforeach