build: Ensure vala defines are passed through to valadoc
This commit is contained in:
parent
2b15c80718
commit
d17554d30f
1 changed files with 6 additions and 2 deletions
|
|
@ -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@'
|
||||
]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue