- Documentation build enabled as default, so use --disable-document if do not want
Change-Id: I51c83a58d69276065323b0b33999cb987c9dbbb4
pkgconfig_DATA += pkgconfig/pepper-x11.pc
endif
pkgconfig_DATA += pkgconfig/pepper-desktop-shell.pc
+
+if ENABLE_DOCUMENT
+SUBDIRS += doc
+endif
wayland_scanner=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
fi
+# document
+AC_ARG_ENABLE([document],
+ [AC_HELP_STRING([--disable-document],
+ [Disable building the documentation])],
+ [],
+ [enable_document=yes])
+
+AM_CONDITIONAL(ENABLE_DOCUMENT, test x$enable_document = xyes)
+
+if test x$enable_document = xyes; then
+ AC_PATH_PROG(DOXYGEN, [doxygen])
+ if test x$DOXYGEN = x; then
+ AC_MSG_ERROR([Documentation need doxygen, but not found])
+ fi
+fi
+
# Output files
AC_CONFIG_FILES([
Makefile
])
fi
+if test x$enable_document = xyes; then
+ AC_CONFIG_FILES([
+ doc/Makefile
+ doc/doxygen/pepper.doxygen
+ ])
+fi
+
AC_OUTPUT
--- /dev/null
+pepper.doxygen
+html
--- /dev/null
+noinst_DATA = $(top_srcdir)/doc/html/index.html
+
+$(noinst_DATA): $(top_srcdir)/doc/doxygen/pepper.doxygen
+ cd $(top_srcdir)/doc/doxygen && $(DOXYGEN) pepper.doxygen
+
+clean-local:
+ rm -rf $(top_srcdir)/doc/html
--- /dev/null
+PROJECT_NAME = "Pepper"
+OUTPUT_DIRECTORY = @top_builddir@/doc/
+JAVADOC_AUTOBRIEF = YES
+OPTIMIZE_OUTPUT_FOR_C = YES
+INPUT = @top_builddir@/src/
+FILE_PATTERNS = *.h *.c
+EXCLUDE_PATTERNS = */protocol/*
+RECURSIVE = YES
+GENERATE_LATEX = NO
+DOTFILE_DIRS = @top_srcdir@/doc/doxygen
+STRIP_FROM_PATH = @top_srcdir@
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(xkbcommon)
+BuildRequires: doxygen
%description
Pepper is a lightweight and flexible library for developing various types of wayland compositors.