From: Fabrice Fontaine Subject: [PATCH v2,2/2] Add --disable-{demo,testsuite} options Date: Fri, 13 Aug 2021 17:04:32 +0200 Message-Id: <20210813150432.3215777-2-fontaine.fabrice@gmail.com> In-Reply-To: <20210813150432.3215777-1-fontaine.fabrice@gmail.com> References: <20210813150432.3215777-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Cc: Fabrice Fontaine Allow the user to disable demo and testsuite to decrease compilation time and save disk space. Signed-off-by: Fabrice Fontaine --- Makefile.am | 12 ++++++++++-- configure.ac | 12 ++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 891e53f66..604644277 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,9 +6,17 @@ SUBDIRS = \ config \ include \ scripts \ - testsuite \ - utils \ + utils + +if XENO_ENABLE_DEMO +SUBDIRS += \ demo +endif + +if XENO_ENABLE_TESTSUITE +SUBDIRS += \ + testsuite +endif EXTRA_DIST = kernel debian diff --git a/configure.ac b/configure.ac index bd5fd5ba9..29dfd16e5 100644 --- a/configure.ac +++ b/configure.ac @@ -200,6 +200,18 @@ test \! x$debug_mode = x && AC_DEFINE(CONFIG_XENO_DEBUG,1,[config]) AM_CONDITIONAL(XENO_DEBUG_FULL,[test x$debug_mode = xfull]) test x$debug_mode = xfull && AC_DEFINE(CONFIG_XENO_DEBUG_FULL,1,[config]) +dnl Demo (default: on) + +AC_ARG_ENABLE(demo, + AS_HELP_STRING([--disable-demo], [Disable demo])) +AM_CONDITIONAL(XENO_ENABLE_DEMO,[test x$enable_demo != xno]) + +dnl Testsuite (default: on) + +AC_ARG_ENABLE(testsuite, + AS_HELP_STRING([--disable-testsuite], [Disable testsuite])) +AM_CONDITIONAL(XENO_ENABLE_TESTSUITE,[test x$enable_testsuite != xno]) + dnl Low resolution clock (default: off) unset lores_clock -- 2.30.2