[geary/mjog/port-to-libhandy-1: 10/10] build: Add workaround for libhandy `Since 1.0` version mismatch




commit 3c303a2d52b033e507340d27a9568df9adcf1461
Author: Michael Gratton <mike vee net>
Date:   Tue Aug 18 20:56:57 2020 +1000

    build: Add workaround for libhandy `Since 1.0` version mismatch
    
    Handy's GIR annotations declare Since 1.0, but the version is only 0.90
    at the moment, so disable checks for now if less than v1.0.

 src/meson.build | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/meson.build b/src/meson.build
index 982e41c4a..de17d396b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -26,6 +26,11 @@ geary_vala_args = [
   '--enable-checking',
 ]
 
+# Remove once libhandy 1.0 has been packaged and is widely available
+if libhandy.version().version_compare('<1.0')
+  geary_vala_args += [ '--disable-since-check' ]
+endif
+
 # Symbols for valac's preprocessor must be defined as compiler args,
 # not in the code or in config.h
 if reference_tracking


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]