[PATCH weston 2/2] autotools: Add an option to install demo clients

Armin K krejzi at email.com
Sun Jul 14 07:44:16 PDT 2013


This patch adds a configure option which will enable
user to install demo clients if desired. It is disabled
by default.
---
 clients/Makefile.am | 9 +++++++++
 configure.ac        | 9 +++++++++
 2 files changed, 18 insertions(+)

diff --git a/clients/Makefile.am b/clients/Makefile.am
index 0f256b4..1475532 100644
--- a/clients/Makefile.am
+++ b/clients/Makefile.am
@@ -2,12 +2,21 @@ bin_PROGRAMS =					\
 	weston-info				\
 	$(terminal)
 
+if ENABLE_DEMO_CLIENTS
+bin_PROGRAMS +=					\
+	$(clients_programs)			\
+	$(pango_programs)			\
+	$(poppler_programs)			\
+	$(simple_clients_programs)		\
+	$(simple_egl_clients_programs)
+else
 noinst_PROGRAMS =				\
 	$(clients_programs)			\
 	$(pango_programs)			\
 	$(poppler_programs)			\
 	$(simple_clients_programs)		\
 	$(simple_egl_clients_programs)
+endif
 
 libexec_PROGRAMS =				\
 	$(desktop_shell)			\
diff --git a/configure.ac b/configure.ac
index 5b110e0..f48908f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -383,6 +383,15 @@ AC_MSG_NOTICE([Weston's native backend: $WESTON_NATIVE_BACKEND])
 AC_DEFINE_UNQUOTED([WESTON_NATIVE_BACKEND], ["$WESTON_NATIVE_BACKEND"],
 		   [The default backend to load, if not wayland nor x11.])
 
+AC_ARG_ENABLE(demo-clients,
+              AS_HELP_STRING([--enable-demo-clients],
+                             [install demo clients built with weston]),,
+              enable_demo_clients=no)
+if test "x$enable_demo_clients" = "xyes"; then	
+       AC_DEFINE(ENABLE_DEMO_CLIENTS, 1, [Install demo clients])
+fi
+AM_CONDITIONAL(ENABLE_DEMO_CLIENTS, [test "x$enable_demo_clients" = "xyes"])
+
 PKG_CHECK_MODULES(LCMS, lcms2,
                   [have_lcms=yes], [have_lcms=no])
 if test "x$have_lcms" = xyes; then
-- 
1.8.3.2



More information about the wayland-devel mailing list