wcap: Add option to disable building wcap tools

dev
Kristian Høgsberg 13 years ago
parent 210eb9d2ba
commit 61cfa66d6f
  1. 9
      Makefile.am
  2. 18
      configure.ac

@ -1,3 +1,10 @@
SUBDIRS = shared src clients wcap data protocol tests if BUILD_WCAP_TOOLS
wcap_subdir = wcap
endif
SUBDIRS = shared src clients data protocol tests $(wcap_subdir)
DIST_SUBDIRS = $(SUBDIRS) wcap
DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install DISTCHECK_CONFIGURE_FLAGS = --disable-setuid-install

@ -27,11 +27,6 @@ AC_SUBST(DLOPEN_LIBS)
PKG_CHECK_MODULES(COMPOSITOR, PKG_CHECK_MODULES(COMPOSITOR,
[wayland-server egl >= 7.10 glesv2 xkbcommon pixman-1]) [wayland-server egl >= 7.10 glesv2 xkbcommon pixman-1])
PKG_CHECK_MODULES(WCAP, [cairo vpx])
AC_CHECK_PROG(RSVG_CONVERT, rsvg-convert, rsvg-convert)
AM_CONDITIONAL(HAVE_RSVG_CONVERT, test -n "$RSVG_CONVERT")
AC_ARG_ENABLE(setuid-install, [ --enable-setuid-install],, AC_ARG_ENABLE(setuid-install, [ --enable-setuid-install],,
enable_setuid_install=yes) enable_setuid_install=yes)
@ -183,6 +178,19 @@ AC_ARG_ENABLE(tablet-shell, [ --enable-tablet-shell],,
AM_CONDITIONAL(ENABLE_TABLET_SHELL, AM_CONDITIONAL(ENABLE_TABLET_SHELL,
test x$enable_tablet_shell = xyes) test x$enable_tablet_shell = xyes)
AC_ARG_ENABLE(wcap-tools, [ --disable-wcap-tools],, enable_wcap_tools=yes)
AM_CONDITIONAL(BUILD_WCAP_TOOLS, test x$enable_wcap_tools = xyes)
if test x$enable_wcap_tools = xyes; then
AC_DEFINE([BUILD_WCAP_TOOLS], [1], [Build the wcap tools])
PKG_CHECK_MODULES(WCAP, [cairo vpx])
WCAP_LIBS="$WCAP_LIBS -lm"
fi
AC_CHECK_PROG(RSVG_CONVERT, rsvg-convert, rsvg-convert)
AM_CONDITIONAL(HAVE_RSVG_CONVERT, test -n "$RSVG_CONVERT")
if test "x$GCC" = "xyes"; then if test "x$GCC" = "xyes"; then
GCC_CFLAGS="-Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes \ GCC_CFLAGS="-Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes \
-Wno-unused-parameter -Wno-missing-field-initializers \ -Wno-unused-parameter -Wno-missing-field-initializers \

Loading…
Cancel
Save