Added options --disable-tests and --disable-examples for quicker builds for the impatient...

Original commit message from CVS:
Added options --disable-tests and --disable-examples for quicker builds for the impatient...
This commit is contained in:
Andrew Mitchell 2001-06-02 13:38:57 +00:00
parent 9d9951d31b
commit 3f4be546de
2 changed files with 31 additions and 1 deletions

View file

@ -14,7 +14,19 @@ else
SUBDIRS_DOCS =
endif
SUBDIRS = include gst libs plugins tools test tests testsuite examples \
if BUILD_TESTS
SUBDIRS_TESTS = test tests testsuite
else
SUBDIRS_TESTS =
endif
if BUILD_EXAMPLES
SUBDIRS_EXAMPLES = examples
else
SUBDIRS_EXAMPLES =
endif
SUBDIRS = include gst libs plugins tools $(SUBDIRS_TESTS) $(SUBDIRS_EXAMPLES) components\
$(SUBDIRS_LGG) $(SUBDIRS_DOCS)
# These are all the possible subdirs

View file

@ -775,7 +775,23 @@ AC_ARG_ENABLE(plugin-docs,
esac],
[BUILD_PLUGIN_DOCS=no]) dnl Default value
AC_ARG_ENABLE(tests,
[ --disable-tests disable building test apps],
[case "${enableval}" in
yes) BUILD_TESTS=no ;;
no) BUILD_TESTS=yes ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;;
esac],
[BUILD_TESTS=yes]) dnl Default value
AC_ARG_ENABLE(examples,
[ --disable-examples disable building examples],
[case "${enableval}" in
yes) BUILD_EXAMPLES=no ;;
no) BUILD_EXAMPLES=yes ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-examples) ;;
esac],
[BUILD_EXAMPLES=yes]) dnl Default value
dnl ################################################
@ -919,6 +935,8 @@ AM_CONDITIONAL(HAVE_GNOME, test "x$HAVE_GNOME" = "xyes")
AM_CONDITIONAL(HAVE_LIBXV, test "x$HAVE_LIBXV" = "xyes")
AM_CONDITIONAL(HAVE_GTK_DOC, $HAVE_GTK_DOC)
AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" ="xyes")
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$BUILD_EXAMPLES" ="xyes")
AM_CONDITIONAL(BUILD_PLUGIN_DOCS, test "x$BUILD_PLUGIN_DOCS" = "xyes")
AM_CONDITIONAL(HAVE_DB2HTML, $HAVE_DB2HTML)
AM_CONDITIONAL(HAVE_DB2PS, $HAVE_DB2PS)