[gnome-video-effects] meson: Use configuration_data to create pkgconfig file



commit 458cf0f79d0cf967eb8cfd250a57dd2e56c47b7f
Author: Jeremy Bicha <jbicha ubuntu com>
Date:   Wed Jan 16 07:21:40 2019 -0500

    meson: Use configuration_data to create pkgconfig file

 meson.build | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/meson.build b/meson.build
index bb423f7..207f507 100644
--- a/meson.build
+++ b/meson.build
@@ -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,
-)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]