mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 04:15:32 +00:00
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.
This commit is contained in:
parent
3fe976505c
commit
3f2481bda9
1 changed files with 13 additions and 15 deletions
|
@ -6,21 +6,19 @@ glib_prefix = dependency('glib-2.0').get_variable(pkgconfig : 'prefix')
|
||||||
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
|
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
|
||||||
docpath = join_paths(get_option('datadir'), '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
|
||||||
# only build the shared library for gtk-doc
|
calls_vala_doc_lib = library('calls-vala-doc',
|
||||||
calls_vala_doc_lib = library('calls-vala-doc',
|
calls_vala_sources,
|
||||||
calls_vala_sources,
|
dependencies: calls_vala_deps)
|
||||||
dependencies: calls_vala_deps)
|
calls_doc_lib = library('calls-doc',
|
||||||
calls_doc_lib = library('calls-doc',
|
[calls_sources, gdbofono_src],
|
||||||
[calls_sources, gdbofono_src],
|
include_directories: calls_includes,
|
||||||
include_directories: calls_includes,
|
link_with: calls_vala_doc_lib,
|
||||||
link_with: calls_vala_doc_lib,
|
dependencies: calls_deps)
|
||||||
dependencies: calls_deps)
|
calls_doc_deps = declare_dependency(sources: [calls_sources, calls_vala_sources],
|
||||||
calls_doc_deps = declare_dependency(sources: [calls_sources, calls_vala_sources],
|
include_directories: calls_includes,
|
||||||
include_directories: calls_includes,
|
link_with: [calls_doc_lib, calls_vala_doc_lib],
|
||||||
link_with: [calls_doc_lib, calls_vala_doc_lib],
|
dependencies: [calls_deps, calls_vala_deps])
|
||||||
dependencies: [calls_deps, calls_vala_deps])
|
|
||||||
endif
|
|
||||||
|
|
||||||
gnome.gtkdoc('calls',
|
gnome.gtkdoc('calls',
|
||||||
main_xml: 'calls-docs.xml',
|
main_xml: 'calls-docs.xml',
|
||||||
|
|
Loading…
Reference in a new issue