build: Ensure vala defines are passed through to valadoc

This commit is contained in:
Michael Gratton 2021-04-21 09:11:13 +10:00 committed by Michael James Gratton
parent 2b15c80718
commit d17554d30f

View file

@ -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@'
]
)