0004-examples-fix-compile-without-gui-module.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From fe8a9bacf781fcf290e04a08f2b8e37d881d58bb Mon Sep 17 00:00:00 2001
  2. From: Peter Seiderer <ps.report@gmx.net>
  3. Date: Thu, 27 Apr 2017 22:41:28 +0200
  4. Subject: [PATCH] examples: fix compile without gui module
  5. Fixes:
  6. Project ERROR: Could not find feature opengl.
  7. Signed-off-by: Peter Seiderer <ps.report@gmx.net>
  8. ---
  9. examples/gui/gui.pro | 2 +-
  10. examples/widgets/widgets.pro | 2 +-
  11. 2 files changed, 2 insertions(+), 2 deletions(-)
  12. diff --git a/examples/gui/gui.pro b/examples/gui/gui.pro
  13. index a4d960d3f5..b8080c2075 100644
  14. --- a/examples/gui/gui.pro
  15. +++ b/examples/gui/gui.pro
  16. @@ -6,5 +6,5 @@ CONFIG += no_docs_target
  17. SUBDIRS += analogclock
  18. SUBDIRS += rasterwindow
  19. -qtConfig(opengl): \
  20. +qtHaveModule(gui):qtConfig(opengl): \
  21. SUBDIRS += openglwindow
  22. diff --git a/examples/widgets/widgets.pro b/examples/widgets/widgets.pro
  23. index 513ddc91f2..cef4936d32 100644
  24. --- a/examples/widgets/widgets.pro
  25. +++ b/examples/widgets/widgets.pro
  26. @@ -22,7 +22,7 @@ SUBDIRS = \
  27. tutorials \
  28. widgets
  29. -qtConfig(opengl): \
  30. +qtHaveModule(gui):qtConfig(opengl): \
  31. SUBDIRS += windowcontainer
  32. contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows
  33. --
  34. 2.11.0