xwim/doc/meson.build
Armin Friedl c842c02c6f
All checks were successful
continuous-integration/drone/push Build is passing
Update README fix meson build
Project cannot be built until
https://github.com/mesonbuild/meson/pull/7458 lands.
2020-08-01 00:35:34 +02:00

37 lines
1.3 KiB
Meson

doxygen = find_program('doxygen', required : false)
if not doxygen.found()
error('MESON_SKIP_TEST doxygen not found.')
endif
cdata = configuration_data()
cdata.set('VERSION', meson.project_version())
if find_program('dot', required : false).found()
cdata.set('HAVE_DOT', 'YES')
else
cdata.set('HAVE_DOT', 'NO')
endif
cdata.set('PROJECT_NAME', meson.project_name())
cdata.set('PROJECT_SRCDIR', join_paths(meson.current_source_dir(),'..','src'))
cdata.set('PROJECT_DOCDIR', meson.current_source_dir())
cdata.set('PROJECT_TESTDIR', join_paths(meson.current_source_dir(),'..','test'))
doxyfile = configure_file(input: 'Doxyfile.in',
output: 'Doxyfile',
configuration: cdata,
install: false)
datadir = join_paths(get_option('datadir'), 'doc','xwim')
# Must be disabled for now until https://github.com/mesonbuild/meson/pull/7458
# lands
# html_target = custom_target('doc',
# build_always_stale : not meson.is_subproject(),
# input: doxyfile,
# output: 'html',
# command: [doxygen, '@INPUT@'],
# install: not meson.is_subproject(),
# install_dir: datadir,
# compilers: doxygen)