From 3f4be546de97b31225f6b3de9e8befd0379a4207 Mon Sep 17 00:00:00 2001 From: Andrew Mitchell Date: Sat, 2 Jun 2001 13:38:57 +0000 Subject: [PATCH] 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... --- Makefile.am | 14 +++++++++++++- configure.base | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index e81b6ee..162ce91 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/configure.base b/configure.base index 6d28163..e306803 100644 --- a/configure.base +++ b/configure.base @@ -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) -- 2.7.4