make spa-lib versioned

Fixes #60
This commit is contained in:
Wim Taymans 2018-08-13 16:14:14 +02:00
parent 336fd190b4
commit d768a2d6da
4 changed files with 7 additions and 5 deletions

View file

@ -11,13 +11,13 @@ pkgconf.set('VERSION', pipewire_version)
pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
pkg_files = [
'libpipewire',
'libspa',
[ 'libpipewire', apiversion ],
[ 'libspa', spaversion ],
]
foreach p : pkg_files
infile = p + '.pc.in'
outfile = p + '-@0@.pc'.format(apiversion)
infile = p.get(0) + '.pc.in'
outfile = p.get(0) + '-@0@.pc'.format(p.get(1))
configure_file(input : infile,
output : outfile,
configuration : pkgconf,