Skip to content

Commit

Permalink
Add status of build features
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Mar 14, 2011
1 parent cb71dc5 commit a21b20e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 12 additions & 1 deletion build/status.m4
Expand Up @@ -12,6 +12,14 @@ AC_DEFUN([GP_STATUS_FEATURE_ADD],
" "
]) ])


dnl add build feature status message, e.g.
dnl GP_STATUS_BUIL_FEATURE_ADD(build_feature,yes)
AC_DEFUN([GP_STATUS_BUILD_FEATURE_ADD],
[
build_feature_statusmsg+="$1:$2
"
])

dnl indent $1_statusmsg with RHS at col $2 dnl indent $1_statusmsg with RHS at col $2
AC_DEFUN([_GP_STATUS_PRINT_INDENT_], AC_DEFUN([_GP_STATUS_PRINT_INDENT_],
[ [
Expand Down Expand Up @@ -49,9 +57,12 @@ ${PACKAGE}-${VERSION}
Docdir: ${expanded_docdir} Docdir: ${expanded_docdir}
Plugins path: ${geanypluginsdir} Plugins path: ${geanypluginsdir}
Plugins: Build Features:
GPEOF GPEOF
_GP_STATUS_PRINT_INDENT_(build_feature, 34)
echo
echo " Plugins:"
_GP_STATUS_PRINT_INDENT_(plugins, 34) _GP_STATUS_PRINT_INDENT_(plugins, 34)
echo echo
echo " Features:" echo " Features:"
Expand Down
5 changes: 4 additions & 1 deletion build/unittests.m4
@@ -1,7 +1,10 @@
AC_DEFUN([GP_CHECK_UNITTESTS], AC_DEFUN([GP_CHECK_UNITTESTS],
[ [
gp_have_unittests=no
PKG_CHECK_MODULES([CHECK], [check >= $1], PKG_CHECK_MODULES([CHECK], [check >= $1],
[AM_CONDITIONAL(UNITTESTS, true)], [AM_CONDITIONAL(UNITTESTS, true)
gp_have_unittests=yes],
[AM_CONDITIONAL(UNITTESTS, false)]) [AM_CONDITIONAL(UNITTESTS, false)])
GP_STATUS_BUILD_FEATURE_ADD([Unit tests], [$gp_have_unittests])
]) ])


0 comments on commit a21b20e

Please sign in to comment.