[libgit2-glib] meson: Use meson dependencies as pkg-config requirement
- From: Iñigo Martínez <inigomartinez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgit2-glib] meson: Use meson dependencies as pkg-config requirement
- Date: Sat, 9 Feb 2019 13:01:53 +0000 (UTC)
commit 1706a9efd2c829de361a25c57050ae3e3499cdd1
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Mon Nov 12 15:19:47 2018 +0100
meson: Use meson dependencies as pkg-config requirement
Since recent meson versions, meson's dependencies can be used in the
`requires` property.
The older ad-hoc string has been replaced by dependencies so the
string is generated automatically.
libgit2-glib/meson.build | 2 +-
meson.build | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libgit2-glib/meson.build b/libgit2-glib/meson.build
index a3b9feb..f802a51 100644
--- a/libgit2-glib/meson.build
+++ b/libgit2-glib/meson.build
@@ -232,7 +232,7 @@ pkg.generate(
description: 'libgit2-glib, a a glib wrapper library around the libgit2 git access library.',
filebase: libgit2_glib_api_name,
subdirs: libgit2_glib_api_name,
- requires: ['libgit2 >= ' + git2_req, 'glib-2.0 >= ' + glib_req, 'gobject-2.0 >= ' + glib_req, 'gio-2.0 >=
' + glib_req],
+ requires: platform_deps,
variables: 'exec_prefix=${prefix}',
extra_cflags: cflags,
)
diff --git a/meson.build b/meson.build
index 3b4d2f4..f7bb6d1 100644
--- a/meson.build
+++ b/meson.build
@@ -110,14 +110,13 @@ add_project_arguments(common_flags, language: 'c')
have_termios = cc.has_header('termios.h')
# Required dependencies
-git2_req = '0.25.0'
glib_req = '2.44.0'
glib_dep = dependency('glib-2.0', version: '>=' + glib_req)
gobject_dep = dependency('gobject-2.0', version: '>=' + glib_req)
gio_dep = dependency('gio-2.0', version: '>=' + glib_req)
-libgit2_dep = dependency('libgit2', version: '>=' + git2_req)
+libgit2_dep = dependency('libgit2', version: '>= 0.25.0')
enable_gir = get_option('introspection')
if enable_gir
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]