[Spice-commits] meson.build meson_options.txt
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 8 13:29:15 UTC 2020
meson.build | 9 ++++++++-
meson_options.txt | 5 +++++
2 files changed, 13 insertions(+), 1 deletion(-)
New commits:
commit 402bc6b2371c5e7214c765778f34697fb47cc88e
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Wed Apr 8 08:19:02 2020 +0100
build: Allows to request a greater SPICE protocol version
Containing project can request a greater SPICE protocol version.
This will be taken into account while checking our requirements.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
diff --git a/meson.build b/meson.build
index b60a9fe..c93b8a6 100644
--- a/meson.build
+++ b/meson.build
@@ -95,7 +95,14 @@ endif
glib_version = '2.38'
glib_version_info = '>= @0@'.format(glib_version)
-deps = {'spice-protocol' : '>= 0.12.12',
+spice_protocol_version = '0.12.12'
+
+spice_protocol_version_req = get_option('spice-protocol-version')
+if spice_protocol_version_req.version_compare('> @0@'.format(spice_protocol_version))
+ spice_protocol_version = spice_protocol_version_req
+endif
+
+deps = {'spice-protocol' : '>= @0@'.format(spice_protocol_version),
'glib-2.0' : glib_version_info,
'gio-2.0' : glib_version_info,
'gthread-2.0' : glib_version_info,
diff --git a/meson_options.txt b/meson_options.txt
index d93d74b..9f10a63 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -47,3 +47,8 @@ option('tests',
value : true,
yield : true,
description : 'Enable SPICE tests')
+
+option('spice-protocol-version',
+ type : 'string',
+ value : '0.1', # not existing low number version
+ description : 'Minimal requested SPICE protocol version')
More information about the Spice-commits
mailing list