Signed-off-by: Quanxian Wang <quanxian.w...@intel.com>
---
 Makefile.am  | 5 +++++
 configure.ac | 8 ++++++++
 2 files changed, 13 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index f22c542..254cde7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,11 +6,16 @@ if ENABLE_XWAYLAND
 xwayland_subdir = xwayland
 endif
 
+if BUILD_WRANDR
+randr_dir = module/wrandr
+endif
+
 SUBDIRS =                                      \
        shared                                  \
        src                                     \
        $(xwayland_subdir)                      \
        desktop-shell                           \
+       $(randr_dir)                            \
        clients                                 \
        data                                    \
        protocol                                \
diff --git a/configure.ac b/configure.ac
index cce1850..01e7429 100644
--- a/configure.ac
+++ b/configure.ac
@@ -409,6 +409,12 @@ if test "x$enable_dbus" != "xno"; then
 fi
 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes")
 
+AC_ARG_ENABLE(wrandr, [  --disable-wrandr],, enable_wrandr=no)
+AM_CONDITIONAL(BUILD_WRANDR, test x$enable_wrandr = xyes)
+if test x$enable_wrandr = xyes; then
+  AC_DEFINE([BUILD_WRANDR], [1], [Build the wrandr])
+fi
+
 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
@@ -498,6 +504,8 @@ AC_CONFIG_FILES([Makefile
                 src/Makefile
                 xwayland/Makefile
                 desktop-shell/Makefile
+                module/Makefile
+                module/wrandr/Makefile
                 src/version.h
                 src/weston.pc
                 clients/Makefile
-- 
1.8.1.2

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to