Skip to content

Commit

Permalink
doc: exclude gegl from documentation conditionally
Browse files Browse the repository at this point in the history
Doxyfile is now created by configure. The gegl directory is now only
included in the doxygen input when configured with `--enable-gegl`.
  • Loading branch information
jplloyd committed Mar 31, 2020
1 parent 2004bc4 commit 6c5492b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ AC_ARG_ENABLE(gegl,
[enable GEGL based code in build (yes|no, default=no)])
)

DOXYGEN_EXCLUDED=
if eval "test x$enable_gegl = xyes"; then
AC_MSG_NOTICE([Checking whether gegl-0.4 or gegl-0.3 is available])
# Prioritize gegl-0.4
Expand All @@ -289,13 +290,17 @@ if eval "test x$enable_gegl = xyes"; then
PKG_CHECK_MODULES(GEGL, gegl-0.3, [GEGL_VERSION=0.3])
])
AC_SUBST(GEGL_VERSION)
else
DOXYGEN_EXCLUDED="../../gegl/"
fi
AM_CONDITIONAL(ENABLE_GEGL, test "x$enable_gegl" = "xyes")
AC_SUBST(DOXYGEN_EXCLUDED)

# Set pkg-config variables before generation.
AC_SUBST(PKG_CONFIG_REQUIRES)

AC_CONFIG_FILES([
doc/Doxyfile
doc/Makefile
gegl/libmypaint-gegl-]libmypaint_api_platform_version()[.pc:gegl/libmypaint-gegl.pc.in
gegl/Makefile
Expand Down
1 change: 1 addition & 0 deletions doc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Doxyfile
doxygen/
build/
2 changes: 1 addition & 1 deletion doc/Doxyfile → doc/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ RECURSIVE = YES
# Note that relative paths are relative to the directory from which doxygen is
# run.

EXCLUDE = ../../tests ../../glib/
EXCLUDE = ../../tests ../../glib/ @DOXYGEN_EXCLUDED@

# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
# directories that are symbolic links (a Unix file system feature) are excluded
Expand Down

0 comments on commit 6c5492b

Please sign in to comment.