]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/qt5/qt5base/5.8.0/0004-examples-fix-compile-without-gui-module.patch
qt5base: fix examples compile with disabled gui module
[coffee/buildroot.git] / package / qt5 / qt5base / 5.8.0 / 0004-examples-fix-compile-without-gui-module.patch
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
6 Fixes:
7
8   Project ERROR: Could not find feature opengl.
9
10 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
11 ---
12  examples/gui/gui.pro         | 2 +-
13  examples/widgets/widgets.pro | 2 +-
14  2 files changed, 2 insertions(+), 2 deletions(-)
15
16 diff --git a/examples/gui/gui.pro b/examples/gui/gui.pro
17 index a4d960d3f5..b8080c2075 100644
18 --- a/examples/gui/gui.pro
19 +++ b/examples/gui/gui.pro
20 @@ -6,5 +6,5 @@ CONFIG += no_docs_target
21  
22  SUBDIRS += analogclock
23  SUBDIRS += rasterwindow
24 -qtConfig(opengl): \
25 +qtHaveModule(gui):qtConfig(opengl): \
26      SUBDIRS += openglwindow
27 diff --git a/examples/widgets/widgets.pro b/examples/widgets/widgets.pro
28 index 513ddc91f2..cef4936d32 100644
29 --- a/examples/widgets/widgets.pro
30 +++ b/examples/widgets/widgets.pro
31 @@ -22,7 +22,7 @@ SUBDIRS       = \
32                  tutorials \
33                  widgets
34  
35 -qtConfig(opengl): \
36 +qtHaveModule(gui):qtConfig(opengl): \
37      SUBDIRS += windowcontainer
38  
39  contains(DEFINES, QT_NO_CURSOR): SUBDIRS -= mainwindows
40 -- 
41 2.11.0
42