autotools: Add an option to install demo clients
This patch adds a configure option which will enable user to install demo clients if desired. It is disabled by default. v2: Remove AC_DEFINE as it is not necesary
This commit is contained in:
committed by
Kristian Høgsberg
parent
77ab1721b8
commit
aac6021bc0
@@ -2,12 +2,21 @@ bin_PROGRAMS = \
|
|||||||
weston-info \
|
weston-info \
|
||||||
$(terminal)
|
$(terminal)
|
||||||
|
|
||||||
|
if ENABLE_DEMO_CLIENTS
|
||||||
|
bin_PROGRAMS += \
|
||||||
|
$(clients_programs) \
|
||||||
|
$(pango_programs) \
|
||||||
|
$(poppler_programs) \
|
||||||
|
$(simple_clients_programs) \
|
||||||
|
$(simple_egl_clients_programs)
|
||||||
|
else
|
||||||
noinst_PROGRAMS = \
|
noinst_PROGRAMS = \
|
||||||
$(clients_programs) \
|
$(clients_programs) \
|
||||||
$(pango_programs) \
|
$(pango_programs) \
|
||||||
$(poppler_programs) \
|
$(poppler_programs) \
|
||||||
$(simple_clients_programs) \
|
$(simple_clients_programs) \
|
||||||
$(simple_egl_clients_programs)
|
$(simple_egl_clients_programs)
|
||||||
|
endif
|
||||||
|
|
||||||
libexec_PROGRAMS = \
|
libexec_PROGRAMS = \
|
||||||
$(desktop_shell) \
|
$(desktop_shell) \
|
||||||
|
|||||||
@@ -383,6 +383,12 @@ AC_MSG_NOTICE([Weston's native backend: $WESTON_NATIVE_BACKEND])
|
|||||||
AC_DEFINE_UNQUOTED([WESTON_NATIVE_BACKEND], ["$WESTON_NATIVE_BACKEND"],
|
AC_DEFINE_UNQUOTED([WESTON_NATIVE_BACKEND], ["$WESTON_NATIVE_BACKEND"],
|
||||||
[The default backend to load, if not wayland nor x11.])
|
[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)
|
||||||
|
AM_CONDITIONAL(ENABLE_DEMO_CLIENTS, [test "x$enable_demo_clients" = "xyes"])
|
||||||
|
|
||||||
PKG_CHECK_MODULES(LCMS, lcms2,
|
PKG_CHECK_MODULES(LCMS, lcms2,
|
||||||
[have_lcms=yes], [have_lcms=no])
|
[have_lcms=yes], [have_lcms=no])
|
||||||
if test "x$have_lcms" = xyes; then
|
if test "x$have_lcms" = xyes; then
|
||||||
|
|||||||
Reference in New Issue
Block a user