mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-06 05:17:11 +00:00
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@redhat.com> Acked-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
This commit is contained in:
parent
47e149705a
commit
402bc6b237
@ -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,
|
||||
|
||||
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user