Skip to content

Commit

Permalink
Move doxygen target and related files to toplevel.
Browse files Browse the repository at this point in the history
Note: this also means the target directory changes from
      libgnucash/docs/html
      to
      [toplevel]/doxygen/html
  • Loading branch information
gjanssens committed May 23, 2024
1 parent c816d2b commit 387b498
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
12 changes: 11 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,13 @@ add_definitions (-DHAVE_CONFIG_H)
set (CONFIG_H ${CMAKE_CURRENT_BINARY_DIR}/common/config.h)
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/common/config.h.cmake.in ${CONFIG_H})

# The doxygen developer documentation
find_program(DOXYGEN doxygen)
if (NOT ${DOXYGEN} STREQUAL "DOXYGEN-NOTFOUND")
configure_file(doxygen.cfg.in doxygen.cfg)
add_custom_target(doc ${DOXYGEN} doxygen.cfg)
endif()

# The subdirectories
add_subdirectory (borrowed)
add_subdirectory (data)
Expand Down Expand Up @@ -884,7 +891,10 @@ endif()
set(DIST_FILE "${PACKAGE_PREFIX}.tar")

set(toplvl_DIST_local ${gnucash_DOCS}
CMakeLists.txt README)
doxygen.cfg.in
doxygen_main_page.c
CMakeLists.txt
README)


set_local_dist(toplvl_DIST ${toplvl_DIST_local})
Expand Down
2 changes: 1 addition & 1 deletion libgnucash/doc/doxygen.cfg.in → doxygen.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ PROJECT_LOGO =
# entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used.

OUTPUT_DIRECTORY =
OUTPUT_DIRECTORY = doxygen

# If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096
# sub-directories (in 2 levels) under the output directory of each output format
Expand Down
File renamed without changes.
8 changes: 0 additions & 8 deletions libgnucash/doc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
set(doc_FILES
constderv.html
doxygen.cfg.in
doxygen_main_page.c
finderv.html
finutil.html
README
)

set_local_dist(doc_DIST_local CMakeLists.txt ${doc_FILES})
set(doc_DIST ${doc_DIST_local} ${doc_design_DIST} PARENT_SCOPE)

find_program(DOXYGEN doxygen)
if (NOT ${DOXYGEN} STREQUAL "DOXYGEN-NOTFOUND")
configure_file(doxygen.cfg.in doxygen.cfg)
add_custom_target(doc ${DOXYGEN} doxygen.cfg)
endif()
1 change: 0 additions & 1 deletion po/POTFILES.in
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@ libgnucash/core-utils/gnc-locale-utils.cpp
libgnucash/core-utils/gnc-path.c
libgnucash/core-utils/gnc-prefs.c
libgnucash/core-utils/gnc-version.c
libgnucash/doc/doxygen_main_page.c
libgnucash/engine/Account.cpp
libgnucash/engine/cap-gains.cpp
libgnucash/engine/cashobjects.cpp
Expand Down

0 comments on commit 387b498

Please sign in to comment.