Skip to content

Commit

Permalink
meson: generate Doxygen documentation
Browse files Browse the repository at this point in the history
Run 'meson compile doc'
  • Loading branch information
LudovicRousseau committed May 7, 2024
1 parent f3a428b commit a217c5c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/doxygen.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = src
INPUT = ../src pcsclite.h

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down
12 changes: 12 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,15 @@ pkg.generate(
'usbdropdir=' + conf_data.get_unquoted('PCSCLITE_HP_DROPDIR'),
'serialconfdir=' + get_option('serialconfdir')],
description : 'PC/SC smart card interface')

# generate documentation
configure_file(output : 'doxygen.conf',
input : 'doc/doxygen.conf.in',
configuration : confgen_data)
doxygen = find_program('doxygen', required : false)
if doxygen.found()
message('Doxygen found')
run_target('doc', command : [doxygen, 'doxygen.conf'])
else
warning('Documentation disabled without doxygen')
endif

0 comments on commit a217c5c

Please sign in to comment.