From 52eaa596ee44d319f1a78d8019f21d5e6ff6b4d6 Mon Sep 17 00:00:00 2001
From: Dominik Loidolt <dominik.loidolt@univie.ac.at>
Date: Thu, 17 Feb 2022 16:50:36 +0100
Subject: [PATCH] move doxygen in a dir

---
 doc/doxygen/Doxyfile.in | 14 +++++++-------
 doc/doxygen/meson.build |  1 +
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/doc/doxygen/Doxyfile.in b/doc/doxygen/Doxyfile.in
index f4fba51..08f1e39 100644
--- a/doc/doxygen/Doxyfile.in
+++ b/doc/doxygen/Doxyfile.in
@@ -772,7 +772,7 @@ FILE_VERSION_FILTER    = "/bin/sh -c 'git log --pretty=\"format:%ci, author:%aN
 # DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
 # tag is left empty.
 
-LAYOUT_FILE            = @SRCDIR@/doc/DoxygenLayout.xml
+LAYOUT_FILE            = @DOXYDIR@/DoxygenLayout.xml
 
 # The CITE_BIB_FILES tag can be used to specify one or more bib files containing
 # the reference definitions. This must be a list of .bib files. The .bib
@@ -1221,7 +1221,7 @@ HTML_FILE_EXTENSION    = .html
 # of the possible markers and block names see the documentation.
 # This tag requires that the tag GENERATE_HTML is set to YES.
 
-HTML_HEADER            = @SRCDIR@/doc/header.html
+HTML_HEADER            = @DOXYDIR@/header.html
 
 # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
 # generated HTML page. If the tag is left blank doxygen will generate a standard
@@ -1231,7 +1231,7 @@ HTML_HEADER            = @SRCDIR@/doc/header.html
 # that doxygen normally uses.
 # This tag requires that the tag GENERATE_HTML is set to YES.
 
-HTML_FOOTER            = @SRCDIR@/doc/footer.html
+HTML_FOOTER            = @DOXYDIR@/footer.html
 
 # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
 # sheet that is used by each HTML page. It can be used to fine-tune the look of
@@ -1256,7 +1256,7 @@ HTML_STYLESHEET        =
 # list). For an example see the documentation.
 # This tag requires that the tag GENERATE_HTML is set to YES.
 
-HTML_EXTRA_STYLESHEET  = @SRCDIR@/doc/customdoxygen.css
+HTML_EXTRA_STYLESHEET  = @DOXYDIR@/customdoxygen.css
 
 # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
 # other source files which should be copied to the HTML output directory. Note
@@ -1266,9 +1266,9 @@ HTML_EXTRA_STYLESHEET  = @SRCDIR@/doc/customdoxygen.css
 # files will be copied as-is; there are no commands or markers available.
 # This tag requires that the tag GENERATE_HTML is set to YES.
 
-HTML_EXTRA_FILES       = @SRCDIR@/doc/bootstrap.min.css \
-                         @SRCDIR@/doc/bootstrap.min.js \
-                         @SRCDIR@/doc/doxy-boot.js
+HTML_EXTRA_FILES       = @DOXYDIR@/bootstrap.min.css \
+                         @DOXYDIR@/bootstrap.min.js \
+                         @DOXYDIR@/doxy-boot.js
 
 # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
 # will adjust the colors in the style sheet and background images according to
diff --git a/doc/doxygen/meson.build b/doc/doxygen/meson.build
index 33a3495..f7facf3 100644
--- a/doc/doxygen/meson.build
+++ b/doc/doxygen/meson.build
@@ -13,6 +13,7 @@ doc_layout_files = files([
 cdata_doc = configuration_data()
 cdata_doc.set('VERSION', meson.project_version())
 cdata_doc.set('SRCDIR', meson.project_source_root())
+cdata_doc.set('DOXYDIR', meson.current_source_dir())
 cdata_doc.set('BUILDDIR', meson.project_build_root())
 if find_program('dot', required : false).found()
   cdata_doc.set('HAVE_DOT', 'YES')
-- 
GitLab