[Spice-commits] meson.build meson_options.txt

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 13 16:20:35 UTC 2019


 meson.build       |   10 ++++------
 meson_options.txt |    3 +--
 2 files changed, 5 insertions(+), 8 deletions(-)

New commits:
commit 811fff0791391185c06b5831c6a736b0409b90b8
Author: Eduardo Lima (Etrunko) <etrunko at redhat.com>
Date:   Sat Feb 2 11:11:37 2019 -0200

    meson: switch smartcard option to auto feature
    
    In spice-gtk commit dbdf692909f7a2b272b06a674a38a1aeb4303032, the
    smartcard option has been changed from boolean to feature, which
    actually broke the option yeld, because the option type is incompatible
    between superproject and subproject.
    
    Signed-off-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>

diff --git a/meson.build b/meson.build
index 512811e..9474618 100644
--- a/meson.build
+++ b/meson.build
@@ -147,12 +147,10 @@ if get_option('python-checks')
 endif
 
 # smartcard check
-if get_option('smartcard')
-  smartcard_dep = dependency('libcacard', required : false, version : '>= 2.5.1')
-  if smartcard_dep.found()
-    spice_common_deps += smartcard_dep
-    spice_common_config_data.set('USE_SMARTCARD', '1')
-  endif
+smartcard_dep = dependency('libcacard', required : get_option('smartcard'), version : '>= 2.5.1')
+if smartcard_dep.found()
+  spice_common_deps += smartcard_dep
+  spice_common_config_data.set('USE_SMARTCARD', '1')
 endif
 
 #
diff --git a/meson_options.txt b/meson_options.txt
index a90726a..7e9e704 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -27,8 +27,7 @@ option('recorder',
     description: 'Enable recorder instrumentation')
 
 option('smartcard',
-    type : 'boolean',
-    value : true,
+    type : 'feature',
     yield : true,
     description : 'Enable smartcard support')
 


More information about the Spice-commits mailing list