From 4c7aed513523f391a111e8095bec7503b7cc4b9a Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Thu, 25 Oct 2018 16:55:22 -0300 Subject: [PATCH] move variables to doc's meson.build --- docs/meson.build | 4 +++- meson.build | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/meson.build b/docs/meson.build index 07f4d14..dab0a81 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -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 + docs_deps = get_option('valadocs_deps') if docs_deps custom_target('valadoc', input: vala_sources, diff --git a/meson.build b/meson.build index 71cfff2..822adc6 100644 --- a/meson.build +++ b/meson.build @@ -10,9 +10,6 @@ project('sernatur', ) add_global_arguments('-DGETTEXT_PACKAGE="sernatur"', language: 'c') -docs_enabled = get_option('valadocs') -valadoc = find_program('valadoc', required: docs_enabled) - subdir('po') subdir('data') subdir('src')