Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #890 from kugel-/gtkdoc-hdr
Generated and ship a GtkDoc header suitable for GObject Introspection.
- Loading branch information
Showing
27 changed files
with
711 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
AC_DEFUN([_GEANY_CHECK_GTKDOC_HEADER_ERROR], | ||
[ | ||
AC_MSG_ERROR([GtkDoc header generation enabled but $1]) | ||
]) | ||
|
||
dnl GEANY_CHECK_GTKDOC_HEADER | ||
dnl checks for GtkDoc header generation requirements and define | ||
dnl ENABLE_GTKDOC_HEADER Automake conditional as appropriate | ||
AC_DEFUN([GEANY_CHECK_GTKDOC_HEADER], | ||
[ | ||
AC_REQUIRE([GEANY_CHECK_DOXYGEN]) | ||
AC_ARG_ENABLE([gtkdoc-header], | ||
[AS_HELP_STRING([--enable-gtkdoc-header], | ||
[generate the GtkDoc header suitable for GObject introspection [default=auto]])], | ||
[geany_enable_gtkdoc_header="$enableval"], | ||
[geany_enable_gtkdoc_header="auto"]) | ||
AS_IF([test "x$geany_enable_gtkdoc_header$geany_with_doxygen" = "xyesno"], | ||
[_GEANY_CHECK_GTKDOC_HEADER_ERROR([Doxygen support not available])], | ||
[test "x$geany_enable_gtkdoc_header" != "xno"], | ||
[ | ||
dnl python | ||
AM_PATH_PYTHON([2.7], [have_python=yes], [have_python=no]) | ||
dnl lxml module | ||
AS_IF([test "x$have_python" = xyes], | ||
[have_python_and_lxml=yes | ||
AC_MSG_CHECKING([for python lxml package]) | ||
AS_IF([$PYTHON -c 'import lxml' 2>&1 >/dev/null], | ||
[have_python_and_lxml=yes], | ||
[have_python_and_lxml=no]) | ||
AC_MSG_RESULT([$have_python_and_lxml])], | ||
[have_python_and_lxml=no]) | ||
dnl final result | ||
AS_IF([test "x$geany_enable_gtkdoc_header$have_python_and_lxml" = "xyesno"], | ||
[_GEANY_CHECK_GTKDOC_HEADER_ERROR([python or its lxml module not found])], | ||
[geany_enable_gtkdoc_header=yes]) | ||
]) | ||
AM_CONDITIONAL([ENABLE_GTKDOC_HEADER], [test "x$geany_enable_gtkdoc_header" = "xyes"]) | ||
GEANY_STATUS_ADD([Generate GtkDoc header], [$geany_enable_gtkdoc_header]) | ||
]) |
Oops, something went wrong.