summarylogtreecommitdiffstats
path: root/0001-Hardcode-linker-flags-for-platform-plugin.patch
blob: f2db53972b2478682c3f94c07019e0a29f53c992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From 88c83f30d5627f36e85302737d037a04065abb3f Mon Sep 17 00:00:00 2001
From: Marius Kittler <mkittler@suse.de>
Date: Wed, 12 Dec 2018 18:16:54 +0100
Subject: [PATCH] Hardcode linker flags for platform plugin

Otherwise incorrect order of libs leads to errors
when building libqwebgl.dll

This is the same workaround as for the platform plugins
in qtbase.
---
 src/plugins/platforms/webgl/webgl.pro | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/plugins/platforms/webgl/webgl.pro b/src/plugins/platforms/webgl/webgl.pro
index 7f7227c..45f8f66 100644
--- a/src/plugins/platforms/webgl/webgl.pro
+++ b/src/plugins/platforms/webgl/webgl.pro
@@ -1,10 +1,20 @@
 TARGET = qwebgl
 QT += \
     websockets \
-    gui-private \
-    eventdispatcher_support-private \
-    fontdatabase_support-private \
-    theme_support-private
+    gui-private
+
+# Fix linker error when building libqwebgl.dll by specifying linker flags forer flags for
+# required modules manually (otherwise order is messed)
+LIBS += \
+    -lQt5EventDispatcherSupport \
+    -lQt5FontDatabaseSupport \
+    -lQt5ThemeSupport \
+    -lfreetype -lole32 -lgdi32 -ldwmapi -luuid
+# However, this workaround leads to the necessity of specifying include dirs manually
+INCLUDEPATH += \} \
+    $$QT_INSTALL_PREFIX/include/qt/QtEventDispatcherSupport/$${QT_VERSION} \
+    $$QT_INSTALL_PREFIX/include/qt/QtFontDatabaseSupport/$${QT_VERSION} \
+    $$QT_INSTALL_PREFIX/include/qt/QtThemeSupport/$${QT_VERSION}
 
 qtHaveModule(quick) {
     QT += quick
-- 
2.29.2