diff options
author | Thomas White <taw@physics.org> | 2020-07-28 17:06:53 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | ca83debe2cb3430764949fceb535d8a887cb8312 (patch) | |
tree | 46564bfdf49c506b6b575ebe2c26428743550749 /libcrystfel/meson.build | |
parent | aa26f3b52a44ee220b5f9476adeb294e3ff5cbc3 (diff) |
Add Doxygen for Meson
Diffstat (limited to 'libcrystfel/meson.build')
-rw-r--r-- | libcrystfel/meson.build | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/libcrystfel/meson.build b/libcrystfel/meson.build index c325f632..c17d0ca4 100644 --- a/libcrystfel/meson.build +++ b/libcrystfel/meson.build @@ -97,6 +97,27 @@ libcrystfeldep = declare_dependency(include_directories : libcrystfel_includes, link_with : libcrystfel) + +# API documentation (Doxygen) +doxygen = find_program('doxygen') + +index_md = files('doc/index.md') +coding_md = files('doc/coding.md') + +doc_data = configuration_data() +doc_data.set('DOX_TOP', join_paths(meson.current_source_dir(), 'src')) +doc_data.set('INDEX_MD', join_paths(meson.current_source_dir(), 'doc/index.md')) +doc_data.set('CODING_MD', join_paths(meson.current_source_dir(), 'doc/coding.md')) +doc_data.set('OUTPUT_DIR', join_paths(meson.current_build_dir(), 'docs')) +doc_data.set('VERSION', meson.project_version()) + +doxyfile = configure_file(input: 'doc/Doxyfile.in', + output: 'Doxyfile', + configuration: doc_data, + install: false) + +api_docs = run_target('api-docs', command : [doxygen, doxyfile]) + + # FIXME: pkgconfig file -# FIXME: API documents (Doxygen) # FIXME: install headers |