[geary/mjog/gmime-stream-write-api-break: 1/2] build: Ensure vala defines are passed through to valadoc




commit 17dac93ad116f96ad7c9640eac299636857af477
Author: Michael Gratton <mike vee net>
Date:   Wed Apr 21 09:11:13 2021 +1000

    build: Ensure vala defines are passed through to valadoc

 src/meson.build | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/meson.build b/src/meson.build
index a67336af2..07f2158f6 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -33,10 +33,14 @@ endif
 
 # Symbols for valac's preprocessor must be defined as compiler args,
 # not in the code or in config.h
+vala_defines = []
+
 if get_option('ref_tracking').enabled()
-  geary_vala_args += [ '--define=REF_TRACKING' ]
+  vala_defines += [ '--define=REF_TRACKING' ]
 endif
 
+geary_vala_args += vala_defines
+
 # Common cc options
 geary_c_args = [
   '-include', 'config.h',
@@ -179,7 +183,7 @@ if valadoc.found()
       '--package-version=@0@'.format(meson.project_version()),
       '-b', meson.current_source_dir(),
       '-o', '@OUTPUT@',
-    ] + valadoc_dep_args + valadoc_vapidir_args + [
+    ] + vala_defines + valadoc_dep_args + valadoc_vapidir_args + [
       '@INPUT@'
     ]
   )


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