diff options
-rw-r--r-- | Makefile.am | 9 | ||||
-rw-r--r-- | configure.ac | 18 |
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 \ |