From 3f2481bda9bf9464f4431504b4562dd48219ac01 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Sun, 6 Feb 2022 02:15:04 +0100 Subject: [PATCH] doc: meson: Get rid of redundant if block We already check at the very top if the 'gtk_doc' option is used, so let's drop it here. --- doc/meson.build | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/doc/meson.build b/doc/meson.build index 2daf99c..d7d728a 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -6,21 +6,19 @@ glib_prefix = dependency('glib-2.0').get_variable(pkgconfig : 'prefix') glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') docpath = join_paths(get_option('datadir'), 'gtk-doc', 'html') -if get_option('gtk_doc') - # only build the shared library for gtk-doc - calls_vala_doc_lib = library('calls-vala-doc', - calls_vala_sources, - dependencies: calls_vala_deps) - calls_doc_lib = library('calls-doc', - [calls_sources, gdbofono_src], - include_directories: calls_includes, - link_with: calls_vala_doc_lib, - dependencies: calls_deps) - calls_doc_deps = declare_dependency(sources: [calls_sources, calls_vala_sources], - include_directories: calls_includes, - link_with: [calls_doc_lib, calls_vala_doc_lib], - dependencies: [calls_deps, calls_vala_deps]) -endif +# only build the shared library for gtk-doc +calls_vala_doc_lib = library('calls-vala-doc', + calls_vala_sources, + dependencies: calls_vala_deps) +calls_doc_lib = library('calls-doc', + [calls_sources, gdbofono_src], + include_directories: calls_includes, + link_with: calls_vala_doc_lib, + dependencies: calls_deps) +calls_doc_deps = declare_dependency(sources: [calls_sources, calls_vala_sources], + include_directories: calls_includes, + link_with: [calls_doc_lib, calls_vala_doc_lib], + dependencies: [calls_deps, calls_vala_deps]) gnome.gtkdoc('calls', main_xml: 'calls-docs.xml',