Browse Source

Updated doxygen autotools integration

Attempt to make the doxygen version filter works with git
Yann Weber 7 years ago
parent
commit
4a0c3a8d7d
2 changed files with 11 additions and 9 deletions
  1. 9
    3
      configure.ac
  2. 2
    6
      docs/Doxyfile.in

+ 9
- 3
configure.ac View File

36
 
36
 
37
 AC_CHECK_PROGS([DOXYGEN], [doxygen])
37
 AC_CHECK_PROGS([DOXYGEN], [doxygen])
38
 if test -z "$DOXYGEN";
38
 if test -z "$DOXYGEN";
39
-	then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
39
+then
40
+	AC_MSG_WARN([Doxygen not found - continuing without Doxygen support])
40
 fi
41
 fi
41
 
42
 
42
 AC_CHECK_PROGS([GIT], [git])
43
 AC_CHECK_PROGS([GIT], [git])
43
-if test -z "$DOXYGEN";
44
-	then AC_MSG_WARN([git not found - continuing without Doxygen support])
44
+if test -z "$GIT";
45
+then 
46
+	AC_MSG_WARN([git not found - continuing without Doxygen support])
47
+	AC_SUBST([DOXYFILE_FILE_VERSION_FILTER], [])
48
+else
49
+	
50
+	AC_SUBST([DOXYFILE_FILE_VERSION_FILTER], ["\"/bin/sh -c 'git log --pretty=\\\"format:%ci, author:%aN <%aE>, commit:%h\\\" -1 --'\""])
45
 fi
51
 fi
46
 
52
 
47
 # Checks for libraries.
53
 # Checks for libraries.

+ 2
- 6
docs/Doxyfile.in View File

669
 # by doxygen. Whatever the program writes to standard output is used as the file
669
 # by doxygen. Whatever the program writes to standard output is used as the file
670
 # version. For an example see the documentation.
670
 # version. For an example see the documentation.
671
 
671
 
672
-if HAVE_GIT
673
-FILE_VERSION_FILTER    = "/bin/sh -c 'git log --pretty=\"format:%ci, author:%aN <%aE>, commit:%h\" -1 \"${1}\" || echo no git'"
674
-else
675
-FILE_VERSION_FILTER    =
676
-fi
672
+FILE_VERSION_FILTER    = @DOXYFILE_FILE_VERSION_FILTER@
677
 
673
 
678
 # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
674
 # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
679
 # by doxygen. The layout file controls the global structure of the generated
675
 # by doxygen. The layout file controls the global structure of the generated
767
 # spaces.
763
 # spaces.
768
 # Note: If this tag is empty the current directory is searched.
764
 # Note: If this tag is empty the current directory is searched.
769
 
765
 
770
-INPUT                  = @top_srcdir@
766
+INPUT                  = @top_builddir@/src
771
 
767
 
772
 # This tag can be used to specify the character encoding of the source files
768
 # This tag can be used to specify the character encoding of the source files
773
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
769
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses

Loading…
Cancel
Save