From 7adfaad562497a61e76b89aa677a8d1c9f003107 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Tue, 15 Jan 2013 19:57:06 +0800 Subject: [PATCH] allow building just the library not the testapps From an idea by Jack Mitchell Use --without-testapps at configure time to suppress building them Signed-off-by: Andy Green --- Makefile.am | 4 ++++ README-test-server | 2 ++ configure.ac | 12 +++++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 1d39074..ce7f92b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,9 @@ +if NO_TESTAPPS +SUBDIRS=lib +else SUBDIRS=lib test-server +endif EXTRA_DIST=scripts/kernel-doc diff --git a/README-test-server b/README-test-server index bc9d65c..a25f01e 100644 --- a/README-test-server +++ b/README-test-server @@ -73,6 +73,8 @@ There are several other possible configure options implementation into the library. By default your libc one is used. +--without-testapps Just build the library not the test apps + Externally configurable important constants ------------------------------------------- diff --git a/configure.ac b/configure.ac index 92d1849..60f7453 100644 --- a/configure.ac +++ b/configure.ac @@ -72,7 +72,17 @@ CFLAGS="$CFLAGS -DLWS_EXT_GOOGLE_MUX" fi AM_CONDITIONAL(EXT_GOOGLE_MUX, test x$x_google_mux = xyes) -# +# +# +# +AC_ARG_WITH(testapps, + [ --without-testapps dont build the libwebsocket-test- apps], + [ no_testapps=yes + ]) + +AM_CONDITIONAL(NO_TESTAPPS, test x$no_testapps = xyes) + + # # AC_ARG_ENABLE(mingw, -- 2.7.4