diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2022-10-19 10:24:33 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2022-10-19 10:24:33 +0300 |
commit | 04f83ac3d592d8d6e8dce6e50598f1401c680d5d (patch) | |
tree | d8a2bb64178789676b4d8322a0a0e0bdddff7d25 /docs | |
parent | 96888e99c5103d9dea5230c917b946732de2d302 (diff) | |
download | rpm-04f83ac3d592d8d6e8dce6e50598f1401c680d5d.tar.gz |
Generate API docs from cmake too
Cmake has its own doxygen routines, lets use that instead of our
locally maintained librpm.doxy.in with a bunch of sed-hacks applied.
Much simpler, and the output looks close enough for government work.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 24603a253..841fdcf65 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -2,6 +2,15 @@ find_program(PANDOC NAMES pandoc) add_subdirectory(man) +find_package(Doxygen) +if (DEFINED DOXYGEN_FOUND) + # XXX API docs should be pre-built in tarballs + file(GLOB headers ${CMAKE_SOURCE_DIR}/include/rpm/*.h) + doxygen_add_docs(apidoc librpm/Doxyheader.h ${headers} + ALL USE_STAMP_FILE) + install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html TYPE DOC) +endif() + set(refman manual/arch_dependencies.md manual/autosetup.md |