[at-spi2-core: 1/2] meson: Generate a pkg-config file



commit 8a2107d67cf7a574f14836252d1952a5adea889f
Author: Soapux <nulldomain gmail com>
Date:   Thu Sep 6 11:56:49 2018 -0500

    meson: Generate a pkg-config file
    
    Use Meson's pkgconfig module to generate the pkg-config file
    for us instead of using a template.

 atspi-2.pc.in     | 11 -----------
 atspi/meson.build | 10 ++++++++++
 meson.build       | 14 --------------
 3 files changed, 10 insertions(+), 25 deletions(-)
---
diff --git a/atspi/meson.build b/atspi/meson.build
index 1f8d021..b7a9357 100644
--- a/atspi/meson.build
+++ b/atspi/meson.build
@@ -113,3 +113,13 @@ if have_gir
   )
 endif
 
+pkgconfig = import('pkgconfig')
+pkgconfig.generate(
+  name: 'atspi',
+  description: 'Accessibility Technology software library',
+  version: meson.project_version(),
+  libraries: atspi,
+  requires: 'dbus-1 glib-2.0',
+  subdirs: 'at-spi-2.0',
+  filebase: 'atspi-2',
+)
diff --git a/meson.build b/meson.build
index 2b6ef8a..8ef8ae3 100644
--- a/meson.build
+++ b/meson.build
@@ -109,20 +109,6 @@ xgettext = find_program('xgettext', required : false)
 
 configure_file(output: 'config.h', configuration: at_spi_conf)
 
-# Compat variables for pkgconfig
-pkgconf = configuration_data()
-pkgconf.set('prefix', get_option('prefix'))
-pkgconf.set('exec_prefix', get_option('prefix'))
-pkgconf.set('libdir', atspi_libdir)
-pkgconf.set('includedir', atspi_includedir)
-pkgconf.set('VERSION', meson.project_version())
-
-configure_file(input: 'atspi-2.pc.in',
-               output: 'atspi-2.pc',
-               configuration: pkgconf,
-               install: true,
-               install_dir: join_paths(get_option('libdir'), 'pkgconfig'))
-
 gnome = import('gnome')
 
 subdir('dbind')


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