summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2014-06-01 23:43:46 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-06-02 13:10:48 +0200
commitcf1c2eb19d3eeddca04013cfa7b2107530abf054 (patch)
tree420092e218712d514da9cd967a4b4198f0a9f299
parent8dd771bda72627c3685b0c19f552791b3f4a7b9e (diff)
downloadbuildroot-cf1c2eb19d3eeddca04013cfa7b2107530abf054.tar.gz
buildroot-cf1c2eb19d3eeddca04013cfa7b2107530abf054.zip
package/weston: libxkbcommon is optional
It is possible to build weston without libxkbcommon, for example if using an input method that is not an hardware keyboard (e.g. a virtual keyboard, or none at all.) Make it optional. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/weston/Config.in11
-rw-r--r--package/weston/weston.mk9
2 files changed, 18 insertions, 2 deletions
diff --git a/package/weston/Config.in b/package/weston/Config.in
index aaef405e0f..96ebdf1686 100644
--- a/package/weston/Config.in
+++ b/package/weston/Config.in
@@ -5,7 +5,6 @@ comment "weston needs udev and a toolchain w/ threads, headers >= 3.0"
config BR2_PACKAGE_WESTON
bool "weston"
select BR2_PACKAGE_WAYLAND
- select BR2_PACKAGE_LIBXKBCOMMON
select BR2_PACKAGE_CAIRO
select BR2_PACKAGE_CAIRO_PNG
select BR2_PACKAGE_LIBPNG
@@ -29,6 +28,16 @@ config BR2_PACKAGE_WESTON
if BR2_PACKAGE_WESTON
+config BR2_PACKAGE_WESTON_HW_KBD
+ bool "enable keyboard support"
+ default y
+ select BR2_PACKAGE_LIBXKBCOMMON
+ help
+ Say 'y' here if you plan on using a keyboard.
+
+ Only say 'n' if you're going to use a virtual keyboard or any other
+ input method.
+
# Helper to make sure at least one compositor is selected.
config BR2_PACKAGE_WESTON_HAS_COMPOSITOR
bool
diff --git a/package/weston/weston.mk b/package/weston/weston.mk
index 8188ae6ce8..ea63203763 100644
--- a/package/weston/weston.mk
+++ b/package/weston/weston.mk
@@ -10,7 +10,7 @@ WESTON_SOURCE = weston-$(WESTON_VERSION).tar.xz
WESTON_LICENSE = MIT
WESTON_LICENSE_FILES = COPYING
-WESTON_DEPENDENCIES = host-pkgconf wayland libxkbcommon pixman libpng \
+WESTON_DEPENDENCIES = host-pkgconf wayland pixman libpng \
jpeg mtdev udev cairo
WESTON_CONF_OPT = \
@@ -25,6 +25,13 @@ WESTON_CONF_OPT = \
--disable-weston-launch \
--disable-colord
+ifeq ($(BR2_PACKAGE_WESTON_HW_KBD),y)
+WESTON_DEPENDENCIES += libxkbcommon
+WESTON_CONF_OPT += --enable-xkbcommon
+else
+WESTON_CONF_OPT += --disable-xkbcommon
+endif
+
ifeq ($(BR2_PACKAGE_LIBUNWIND),y)
WESTON_DEPENDENCIES += libunwind
else
OpenPOWER on IntegriCloud