[libnotify/abderrahim/fix-pkg-config] meson.build: fix pkg-config generation
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libnotify/abderrahim/fix-pkg-config] meson.build: fix pkg-config generation
- Date: Fri, 1 Feb 2019 13:24:27 +0000 (UTC)
commit 3f71a3b3baa8912edf9df86b0dfe1733095402a0
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Fri Feb 1 14:21:14 2019 +0100
meson.build: fix pkg-config generation
The code was previously using glib_dep.version() as a version for gio which
generates an invalid version like "gio-2.0 2.59.1" in the pkg-config file.
meson.build | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index abc83ce..e5254ed 100644
--- a/meson.build
+++ b/meson.build
@@ -33,9 +33,11 @@ docdir = join_paths(prefix, get_option('datadir'), 'doc', meson.project_name())
libnotify_deps = []
extra_deps = []
+glib_req_version = '>= 2.26.0'
+
gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0')
-glib_dep = dependency('glib-2.0', version: '>= 2.26.0')
-gio_dep = dependency('gio-2.0', version: glib_dep.version())
+glib_dep = dependency('glib-2.0', version: glib_req_version)
+gio_dep = dependency('gio-2.0', version: glib_req_version)
gtk_dep = dependency('gtk+-3.0', version: '>= 2.90', required: get_option('tests'))
libnotify_deps = [gdk_pixbuf_dep, gio_dep, glib_dep]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]