Improve Doxygen support in Autotools build system
* Add `m4/geany-doxygen.m4` file * Support `DOXYGEN` environment variable setting which Doxygen to use * Support `--enable-api-docs` to activate building Doxygen docs (off by default)
This commit is contained in:
parent
93560c5e53
commit
595b445984
@ -113,6 +113,8 @@ GEANY_I18N
|
||||
GEANY_DATA_DIR=`eval echo ${datarootdir}/geany`
|
||||
AC_SUBST([GEANY_DATA_DIR])
|
||||
|
||||
GEANY_CHECK_DOXYGEN
|
||||
|
||||
# Output
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
|
24
m4/geany-doxygen.m4
Normal file
24
m4/geany-doxygen.m4
Normal file
@ -0,0 +1,24 @@
|
||||
dnl GEANY_CHECK_DOXYGEN
|
||||
dnl Check for Doxygen availability to generate API docs
|
||||
dnl
|
||||
AC_DEFUN([GEANY_CHECK_DOXYGEN],
|
||||
[
|
||||
AC_ARG_ENABLE([api-docs],
|
||||
[AS_HELP_STRING([--enable-api-docs],
|
||||
[generate API documentation using Doxygen [default=no]])],
|
||||
[geany_with_doxygen="$enableval"],
|
||||
[geany_with_doxygen="no"])
|
||||
|
||||
AC_ARG_VAR([DOXYGEN], [Path to Doxygen executable])
|
||||
|
||||
AS_IF([test "x$geany_with_doxygen" != "xno"],
|
||||
[
|
||||
AS_IF([test "x$DOXYGEN" != "x"],
|
||||
[geany_doxygen_path="$DOXYGEN"], [geany_doxygen_path="doxygen"])
|
||||
AC_PATH_PROG([DOXYGEN], [$geany_doxygen_path], [no])
|
||||
AS_IF([test "x$DOXYGEN" != "xno"], [geany_with_doxygen=yes], [geany_with_doxygen=no])
|
||||
])
|
||||
|
||||
AM_CONDITIONAL([WITH_DOXYGEN], [test "x$geany_with_doxygen" != "xno"])
|
||||
GEANY_STATUS_ADD([Build API documentation], [$geany_with_doxygen])
|
||||
])
|
Loading…
x
Reference in New Issue
Block a user