summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-05-26 13:19:22 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-05-26 13:19:22 -0400
commit61cfa66d6f5780f0d6c5e9f7091ea5919d247531 (patch)
tree1965f71c9b9fb26e94008096e85249db73d731f7
parent210eb9d2bafda34f30b56171ba7adefc3df4c82d (diff)
wcap: Add option to disable building wcap tools
-rw-r--r--Makefile.am9
-rw-r--r--configure.ac18
2 files changed, 21 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 53eb43c..a346978 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
diff --git a/configure.ac b/configure.ac
index 15dd7f1..4dfd161 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,11 +27,6 @@ AC_SUBST(DLOPEN_LIBS)
PKG_CHECK_MODULES(COMPOSITOR,
[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],,
enable_setuid_install=yes)
@@ -183,6 +178,19 @@ AC_ARG_ENABLE(tablet-shell, [ --enable-tablet-shell],,
AM_CONDITIONAL(ENABLE_TABLET_SHELL,
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
GCC_CFLAGS="-Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes \
-Wno-unused-parameter -Wno-missing-field-initializers \