1 # This file is a part of Geeqie project (https://www.geeqie.org/).
2 # Copyright (C) 2008 - 2022 The Geeqie Team
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 guideindex_xml = files('docbook/GuideIndex.xml')
17 destdir = join_paths(meson.current_build_dir(), 'html/')
18 iconsdir = join_paths(meson.current_source_dir(), 'icons/')
19 guideindex_ln = join_paths(destdir, 'index.html')
21 option = get_option('yelp-build')
22 if not option.disabled()
23 gnome_doc_tool = find_program('yelp-build', required : false)
24 if gnome_doc_tool.found()
25 run_command(gnome_doc_tool, 'html', '-o', destdir, '-p', iconsdir, guideindex_xml, check : false)
26 run_command(find_program('ln'), '-s', '-f', 'GuideIndex.html', guideindex_ln, check : false)
27 summary({'help' : ['Help files created:', true]}, section : 'Documentation', bool_yn : true)
29 summary({'help' : ['yelp-build not found - Help files created:', false]}, section : 'Documentation', bool_yn : true)
32 summary({'help' : ['disabled - Help files created:', false]}, section : 'Documentation', bool_yn : true)
35 install_subdir(destdir, install_dir : helpdir, exclude_directories : 'lua-api/latex')
38 option = get_option('doxygen')
39 if not option.disabled()
40 doxygen = find_program('doxygen', required : false)
42 srcdir = join_paths(meson.project_source_root())
43 destdir = join_paths(meson.project_build_root(), 'doc', 'html', 'lua-api')
44 run_command(find_program('create-doxygen-lua-api.sh'), srcdir, destdir, check : false)
45 summary({'lua-api' : ['lua-api help file created:', true]}, section : 'Documentation', bool_yn : true)
47 summary({'lua-api' : ['doxygen not found - lua-api help file created:', false]}, section : 'Documentation', bool_yn : true)
50 summary({'lua-api' : ['disabled - lua-api help file created:', false]}, section : 'Documentation', bool_yn : true)
54 script_sources += files('create-doxygen-lua-api.sh',
55 'create-shortcuts-xml.sh')