[geocode-glib] Generate and install the pkg-config file
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geocode-glib] Generate and install the pkg-config file
- Date: Tue, 18 Jul 2017 16:36:04 +0000 (UTC)
commit dafc37ca91d71288410ff94b3d21a8f4af0ccbf2
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Jul 18 17:31:44 2017 +0100
Generate and install the pkg-config file
No need to use a template file: the pkgconfig module in Meson is
perfectly capable of generating the pc file.
geocode-glib-1.0.pc.in | 13 -------------
geocode-glib/meson.build | 12 ++++++++++++
2 files changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/geocode-glib/meson.build b/geocode-glib/meson.build
index 03ba95e..8ccffca 100644
--- a/geocode-glib/meson.build
+++ b/geocode-glib/meson.build
@@ -56,6 +56,18 @@ libgcglib = shared_library('geocode-glib',
install_headers(headers, subdir: header_subdir)
+pkgconf = import('pkgconfig')
+pkgconf.generate(libraries: libgcglib,
+ version: gclib_version,
+ name: 'geocode-glib',
+ description: 'Helper library for geocoding services',
+ filebase: 'geocode-glib-@0@'.format(gclib_api_version),
+ subdirs: 'geocode-glib-@0@'.format(gclib_api_version),
+ requires: 'gio-2.0',
+ variables: [
+ 'apiversion=' + gclib_api_version,
+ ])
+
gir = find_program('g-ir-scanner', required: false)
cross_build = meson.is_cross_build()
enable_gir = get_option('enable-introspection')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]