Explorar o código

qt5base: use libinput if selected

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>
Wolfgang Grandegger %!s(int64=8) %!d(string=hai) anos
pai
achega
8d153dba65
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      package/qt5/qt5base/qt5base.mk

+ 7 - 0
package/qt5/qt5base/qt5base.mk

@@ -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