1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[meson] build api using doxygen

This commit is contained in:
Witold Filipczyk 2020-09-23 18:05:08 +02:00
parent 76fe703cba
commit a0d136051d
2 changed files with 11 additions and 2 deletions

View File

@ -7,7 +7,7 @@
DOXYFILE_ENCODING = UTF-8
PROJECT_NAME = ELinks
PROJECT_NUMBER = @VERSION@
OUTPUT_DIRECTORY = api
OUTPUT_DIRECTORY = $(OUTPUT_DIRECTORY)api
CREATE_SUBDIRS = NO
OUTPUT_LANGUAGE = English
BRIEF_MEMBER_DESC = YES

View File

@ -2,8 +2,9 @@ configure_file(input : 'Doxyfile.in',
output : 'Doxyfile',
configuration : conf_data)
pod2html = find_program('pod2html', required: false)
dblatex = find_program('dblatex', required: false)
doxygen = find_program('doxygen', required: false)
pod2html = find_program('pod2html', required: false)
xmlto = find_program('xmlto', required: false)
perl_html = []
@ -231,6 +232,14 @@ if dblatex.found()
command: [dblatex, meson.current_build_dir() + '/manual.xml'])
endif
doxygen_api = []
if doxygen.found()
doxygen_api = custom_target('api',
input: [],
output: 'api',
command: ['OUTPUT_DIRECTORY='+meson.current_build_dir()+'/', doxygen, meson.current_build_dir()+'/Doxyfile'])
endif
txt = alias_target('txt', features_txt, keymap_actions_txt, keymap_defaults_txt)
alias_target('xml', option_command_frag_xml, option_config_frag_xml, option_command_frag_xhtml, option_config_frag_xhtml,
elinks_1_xml, elinks_conf_5_xml, elinkskeys_5_xml, hacking_xml, manual_xml)