qtbase_platformsupport.patch raw

   1  CMake: Prevent creation of empty InputSupportPrivate module
   2  
   3  The combination of
   4      -no-feature-evdev
   5      -no-feature-tslib
   6      -no-feature-libinput
   7  led to the creation of the InputSupportPrivate module without source
   8  files.
   9  
  10  This triggered CMake upstream issue 23464 when using CMake < 3.25.
  11  
  12  Fix this by adjusting the inexact condition that decides whether to
  13  build InputSupportPrivate.
  14  
  15  
  16  See: https://codereview.qt-project.org/c/qt/qtbase/+/633612
  17  
  18  
  19  --- a/qtbase/src/platformsupport/CMakeLists.txt
  20  +++ b/qtbase/src/platformsupport/CMakeLists.txt
  21  @@ -3,7 +3,12 @@
  22   
  23   add_subdirectory(devicediscovery)
  24   add_subdirectory(fbconvenience)
  25  -if(QT_FEATURE_evdev OR QT_FEATURE_integrityhid OR QT_FEATURE_libinput OR QT_FEATURE_tslib OR QT_FEATURE_xkbcommon)
  26  +if(QT_FEATURE_evdev
  27  +    OR QT_FEATURE_vxworksevdev
  28  +    OR QT_FEATURE_integrityhid
  29  +    OR QT_FEATURE_libinput
  30  +    OR QT_FEATURE_tslib
  31  +    OR (QT_FEATURE_libinput AND QT_FEATURE_xkbcommon))
  32       add_subdirectory(input)
  33   endif()
  34   if(QT_FEATURE_kms)
  35