[Spice-commits] meson.build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 24 13:32:14 UTC 2020


 meson.build |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

New commits:
commit 51ede38ee5763ab0107bd7fdb1c23672b88247fb
Author: Frediano Ziglio <freddy77 at gmail.com>
Date:   Fri Apr 24 12:12:40 2020 +0100

    build: Tell SPICE common the SPICE protocol version we require
    
    This allows SPICE common to request the right version.
    
    Signed-off-by: Frediano Ziglio <freddy77 at gmail.com>

diff --git a/meson.build b/meson.build
index 4177ce6..91501e5 100644
--- a/meson.build
+++ b/meson.build
@@ -32,13 +32,19 @@ spice_gtk_include = [include_directories('.')]
 spice_glib_deps = []
 spice_gtk_deps = []
 spice_acl_deps = []
+spice_protocol_version = '0.14.2'
 
 #
 # Set up subprojects
 #
-spice_common = subproject('spice-common', default_options : ['generate-code=client'])
+spice_common = subproject('spice-common',
+                          default_options : [
+                            'generate-code=client',
+                            'spice-protocol-version=@0@'.format(spice_protocol_version),
+                          ])
 spice_gtk_config_data.merge_from(spice_common.get_variable('spice_common_config_data'))
 spice_glib_deps += spice_common.get_variable('spice_common_client_dep')
+spice_protocol_version = spice_common.get_variable('spice_protocol_version')
 
 subproject('keycodemapdb')
 keymapgen = files('subprojects/keycodemapdb/tools/keymap-gen')
@@ -81,14 +87,11 @@ endforeach
 #
 # check for mandatory dependencies
 #
-spice_protocol_version='>= 0.14.2'
-
 glib_version = '2.46'
 glib_version_info = '>= @0@'.format(glib_version)
 pixman_version = '>= 0.17.7'
 
-deps = {'spice-protocol' : spice_protocol_version,
-        'glib-2.0'       : glib_version_info,
+deps = {'glib-2.0'       : glib_version_info,
         'gio-2.0'        : glib_version_info,
         'gobject-2.0'    : glib_version_info,
         'pixman-1'       : pixman_version,


More information about the Spice-commits mailing list