move variables to doc's meson.build

This commit is contained in:
Chris Cromer 2018-10-25 16:55:22 -03:00
parent bd63b6daf3
commit 4c7aed5135
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,7 @@
docs_deps = get_option('valadocs_deps') docs_enabled = get_option('valadocs')
valadoc = find_program('valadoc', required: docs_enabled)
if docs_enabled if docs_enabled
docs_deps = get_option('valadocs_deps')
if docs_deps if docs_deps
custom_target('valadoc', custom_target('valadoc',
input: vala_sources, input: vala_sources,

View File

@ -10,9 +10,6 @@ project('sernatur',
) )
add_global_arguments('-DGETTEXT_PACKAGE="sernatur"', language: 'c') add_global_arguments('-DGETTEXT_PACKAGE="sernatur"', language: 'c')
docs_enabled = get_option('valadocs')
valadoc = find_program('valadoc', required: docs_enabled)
subdir('po') subdir('po')
subdir('data') subdir('data')
subdir('src') subdir('src')