[gedit-plugins] build: have dependency() calls in one line
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins] build: have dependency() calls in one line
- Date: Mon, 11 Nov 2019 17:48:26 +0000 (UTC)
commit 2e59bd245965bee8b9395b4641c175d0e43f33db
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Nov 11 18:26:40 2019 +0100
build: have dependency() calls in one line
Having the version alongside the pkg-config name is as good as before,
and it is shorter.
appstream_req was actually dead code.
meson.build | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/meson.build b/meson.build
index 6e9d125..f1e277f 100644
--- a/meson.build
+++ b/meson.build
@@ -25,13 +25,8 @@ glibdir = join_paths(datadir, 'glib-2.0')
localedir = join_paths(datadir, 'locale')
# Dependencies
-libpeas_req = '>= 1.14.1'
-gedit_req = '>= 3.16'
-appstream_req = '>= 0.12.1'
-zeitgeist_req = '>= 0.9.12'
-
-libpeas_dep = dependency('libpeas-1.0', version: libpeas_req)
-gedit_dep = dependency('gedit', version: gedit_req)
+libpeas_dep = dependency('libpeas-1.0', version: '>= 1.14.1')
+gedit_dep = dependency('gedit', version: '>= 3.16')
appstream_util = find_program('appstream-util', required: false)
@@ -82,8 +77,7 @@ foreach plugin_name, plugin_metadata : all_plugins
endforeach
zeitgeist_needed = 'zeitgeist' in active_plugins
-zeitgeist_dep = dependency('zeitgeist-2.0', version: zeitgeist_req, required: zeitgeist_needed)
-
+zeitgeist_dep = dependency('zeitgeist-2.0', version: '>= 0.9.12', required: zeitgeist_needed)
if 'python' in extra_languages
python3 = python.find_installation('python3')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]