]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/qt5/qt5base/5.9.1/0002-examples-fix-compile-without-opengl-support.patch
qt5: add license file hashes for all submodules
[coffee/buildroot.git] / package / qt5 / qt5base / 5.9.1 / 0002-examples-fix-compile-without-opengl-support.patch
1 From adacb2d6701b12511c5a0e58072236da91ebf810 Mon Sep 17 00:00:00 2001
2 From: Peter Seiderer <ps.report@gmx.net>
3 Date: Mon, 7 Aug 2017 22:54:11 +0200
4 Subject: [PATCH] examples: fix compile without opengl support
5
6 Compile examples/opengl only in case opengl support is available.
7
8 Task-number: QTBUG-62372
9 Change-Id: I742a1eb7b7639a5a722c4d5e9b4ee070b629b02e
10
11 Upstream: https://codereview.qt-project.org/201947
12 Signed-off-by: Peter Seiderer <ps.report@gmx.net>
13 ---
14  examples/examples.pro | 3 ++-
15  1 file changed, 2 insertions(+), 1 deletion(-)
16
17 diff --git a/examples/examples.pro b/examples/examples.pro
18 index a3851c6d81..d87fa2da88 100644
19 --- a/examples/examples.pro
20 +++ b/examples/examples.pro
21 @@ -14,7 +14,8 @@ qtHaveModule(concurrent): SUBDIRS += qtconcurrent
22  qtHaveModule(sql): SUBDIRS += sql
23  qtHaveModule(widgets): SUBDIRS += widgets
24  qtHaveModule(xml): SUBDIRS += xml
25 -qtHaveModule(gui): SUBDIRS += gui opengl
26 +qtHaveModule(gui): SUBDIRS += gui
27 +qtHaveModule(gui):qtConfig(opengl): SUBDIRS += opengl
28  
29  aggregate.files = aggregate/examples.pro
30  aggregate.path = $$[QT_INSTALL_EXAMPLES]
31 -- 
32 2.11.0
33