Commit 458cf0f7 authored by Jeremy Bicha's avatar Jeremy Bicha 🎹 Committed by Michael Catanzaro

meson: Use configuration_data to create pkgconfig file

parent 953fff57
......@@ -14,13 +14,15 @@ pkgconfigdir = join_paths(datadir, 'pkgconfig')
subdir('effects')
subdir('po')
pkg = import('pkgconfig')
# Can't use pkgconfig helper https://github.com/mesonbuild/meson/issues/2253
conf = configuration_data()
conf.set('prefix', prefix)
conf.set('datarootdir', pkgdatadir)
conf.set('VERSION', meson.project_version())
pkg = configure_file(configuration: conf,
input: 'gnome-video-effects.pc.in',
install: true,
install_dir: join_paths(datadir, 'pkgconfig'),
output: 'gnome-video-effects.pc')
pkg.generate(
name: 'gnome-video-effects',
description: 'A collection of GStreamer effects to be used in different GNOME Modules',
version: meson.project_version(),
filebase: meson.project_name(),
variables: ['datarootdir=${prefix}/share', 'effectsdir=${datarootdir}/gnome-video-effects'],
install_dir: pkgconfigdir,
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment