qt5base: use libinput if selected
authorWolfgang Grandegger <wg@grandegger.com>
Wed, 18 Jan 2017 16:19:28 +0000 (17:19 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 19 Jan 2017 05:28:19 +0000 (16:28 +1100)
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
[Thomas:
 - move condition to a different place in the .mk file, with other
   similar conditions.
 - add an 'else' clause to pass -no-libinput in order to explicitly
   disable libinput support when the libinput package is not available.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/qt5/qt5base/qt5base.mk

index 23dba2a181553de5d6dd749583a0fac1897689fc..45ba4e661df9da55603bba5e247feed1df733aec 100644 (file)
@@ -161,6 +161,13 @@ else
 QT5BASE_CONFIGURE_OPTS += -no-gstreamer
 endif
 
+ifeq ($(BR2_PACKAGE_LIBINPUT),y)
+QT5BASE_CONFIGURE_OPTS += -libinput
+QT5BASE_DEPENDENCIES += libinput
+else
+QT5BASE_CONFIGURE_OPTS += -no-libinput
+endif
+
 # Build the list of libraries to be installed on the target
 QT5BASE_INSTALL_LIBS_y                                 += Qt5Core
 QT5BASE_INSTALL_LIBS_$(BR2_PACKAGE_QT5BASE_XCB)        += Qt5XcbQpa