2019-03-16 16:58:50 +01:00
|
|
|
From 1e421ad10dfb855e5a8626124854fb6e9ab568ca Mon Sep 17 00:00:00 2001
|
2016-09-19 22:18:45 +02:00
|
|
|
From: Martchus <martchus@gmx.net>
|
|
|
|
Date: Sun, 18 Sep 2016 13:41:38 +0200
|
2019-02-02 18:18:25 +01:00
|
|
|
Subject: [PATCH 03/34] Use external ANGLE library
|
2016-09-19 22:18:45 +02:00
|
|
|
|
|
|
|
---
|
|
|
|
src/gui/Qt5GuiConfigExtras.cmake.in | 4 ++--
|
2017-01-23 21:37:13 +01:00
|
|
|
src/gui/gui.pro | 8 ++------
|
2016-09-19 22:18:45 +02:00
|
|
|
src/opengl/opengl.pro | 1 +
|
|
|
|
src/plugins/platforms/windows/windows.pri | 1 +
|
|
|
|
src/src.pro | 4 ----
|
2017-01-23 21:37:13 +01:00
|
|
|
5 files changed, 6 insertions(+), 12 deletions(-)
|
2016-09-19 22:18:45 +02:00
|
|
|
|
|
|
|
diff --git a/src/gui/Qt5GuiConfigExtras.cmake.in b/src/gui/Qt5GuiConfigExtras.cmake.in
|
2016-12-20 23:05:26 +01:00
|
|
|
index 07869efd7d..2e32911a64 100644
|
2016-09-19 22:18:45 +02:00
|
|
|
--- a/src/gui/Qt5GuiConfigExtras.cmake.in
|
|
|
|
+++ b/src/gui/Qt5GuiConfigExtras.cmake.in
|
|
|
|
@@ -2,9 +2,9 @@
|
|
|
|
!!IF !isEmpty(CMAKE_ANGLE_EGL_DLL_RELEASE)
|
|
|
|
|
|
|
|
!!IF isEmpty(CMAKE_INCLUDE_DIR_IS_ABSOLUTE)
|
|
|
|
-set(Qt5Gui_EGL_INCLUDE_DIRS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$$CMAKE_INCLUDE_DIR/QtANGLE\")
|
|
|
|
+set(Qt5Gui_EGL_INCLUDE_DIRS \"${_qt5$${CMAKE_MODULE_NAME}_install_prefix}/$$CMAKE_INCLUDE_DIR\")
|
|
|
|
!!ELSE
|
|
|
|
-set(Qt5Gui_EGL_INCLUDE_DIRS \"$$CMAKE_INCLUDE_DIR/QtANGLE\")
|
|
|
|
+set(Qt5Gui_EGL_INCLUDE_DIRS \"$$CMAKE_INCLUDE_DIR\")
|
|
|
|
!!ENDIF
|
|
|
|
|
|
|
|
_qt5_Gui_check_file_exists(${Qt5Gui_EGL_INCLUDE_DIRS})
|
|
|
|
diff --git a/src/gui/gui.pro b/src/gui/gui.pro
|
2018-12-08 22:06:32 +01:00
|
|
|
index 06c9cd3939..cb1314c1ef 100644
|
2016-09-19 22:18:45 +02:00
|
|
|
--- a/src/gui/gui.pro
|
|
|
|
+++ b/src/gui/gui.pro
|
2017-01-23 21:37:13 +01:00
|
|
|
@@ -18,12 +18,6 @@ MODULE_PLUGIN_TYPES = \
|
2016-09-19 22:18:45 +02:00
|
|
|
imageformats \
|
|
|
|
egldeviceintegrations
|
|
|
|
|
|
|
|
-# This is here only because the platform plugin is no module, obviously.
|
2017-01-23 21:37:13 +01:00
|
|
|
-qtConfig(angle) {
|
2016-09-19 22:18:45 +02:00
|
|
|
- MODULE_AUX_INCLUDES = \
|
|
|
|
- \$\$QT_MODULE_INCLUDE_BASE/QtANGLE
|
|
|
|
-}
|
2017-01-23 21:37:13 +01:00
|
|
|
-
|
2016-09-19 22:18:45 +02:00
|
|
|
# Code coverage with TestCocoon
|
|
|
|
# The following is required as extra compilers use $$QMAKE_CXX instead of $(CXX).
|
2017-01-23 21:37:13 +01:00
|
|
|
# Without this, testcocoon.prf is read only after $$QMAKE_CXX is used by the
|
2017-10-13 21:29:48 +02:00
|
|
|
@@ -35,6 +29,8 @@ testcocoon {
|
2016-09-19 22:18:45 +02:00
|
|
|
osx: LIBS_PRIVATE += -framework AppKit
|
2017-10-13 21:29:48 +02:00
|
|
|
darwin: LIBS_PRIVATE += -framework CoreGraphics
|
2016-09-19 22:18:45 +02:00
|
|
|
|
2017-01-23 21:37:13 +01:00
|
|
|
+win32:qtConfig(angle): LIBS_PRIVATE += -lGLESv2
|
2016-09-19 22:18:45 +02:00
|
|
|
+
|
|
|
|
CONFIG += simd optimize_full
|
|
|
|
|
|
|
|
include(accessible/accessible.pri)
|
|
|
|
diff --git a/src/opengl/opengl.pro b/src/opengl/opengl.pro
|
2018-05-23 20:56:49 +02:00
|
|
|
index 8b2349ff2f..f5e43c6adc 100644
|
2016-09-19 22:18:45 +02:00
|
|
|
--- a/src/opengl/opengl.pro
|
|
|
|
+++ b/src/opengl/opengl.pro
|
2018-05-23 20:56:49 +02:00
|
|
|
@@ -10,6 +10,7 @@ QMAKE_DOCS = $$PWD/doc/qtopengl.qdocconf
|
2016-09-19 22:18:45 +02:00
|
|
|
|
2017-01-23 21:37:13 +01:00
|
|
|
qtConfig(opengl): CONFIG += opengl
|
|
|
|
qtConfig(opengles2): CONFIG += opengles2
|
|
|
|
+win32:qtConfig(angle): LIBS_PRIVATE += -lGLESv2
|
2016-09-19 22:18:45 +02:00
|
|
|
|
|
|
|
HEADERS += qgl.h \
|
|
|
|
qgl_p.h \
|
|
|
|
diff --git a/src/plugins/platforms/windows/windows.pri b/src/plugins/platforms/windows/windows.pri
|
2019-02-02 18:18:25 +01:00
|
|
|
index 7004d7e854..a0b0bd81db 100644
|
2016-09-19 22:18:45 +02:00
|
|
|
--- a/src/plugins/platforms/windows/windows.pri
|
|
|
|
+++ b/src/plugins/platforms/windows/windows.pri
|
2017-06-02 18:20:04 +02:00
|
|
|
@@ -4,6 +4,7 @@ LIBS += -lole32 -luser32 -lwinspool -limm32 -lwinmm -loleaut32
|
|
|
|
QT_FOR_CONFIG += gui
|
2016-09-19 22:18:45 +02:00
|
|
|
|
2017-01-23 21:37:13 +01:00
|
|
|
qtConfig(opengl):!qtConfig(opengles2):!qtConfig(dynamicgl): LIBS *= -lopengl32
|
|
|
|
+qtConfig(angle):LIBS += -lGLESv2 -lEGL
|
2016-09-19 22:18:45 +02:00
|
|
|
|
|
|
|
mingw: LIBS *= -luuid
|
|
|
|
# For the dialog helpers:
|
|
|
|
diff --git a/src/src.pro b/src/src.pro
|
2018-09-19 20:39:07 +02:00
|
|
|
index 1c76a2e46f..6a5f046b34 100644
|
2016-09-19 22:18:45 +02:00
|
|
|
--- a/src/src.pro
|
|
|
|
+++ b/src/src.pro
|
2018-09-19 20:39:07 +02:00
|
|
|
@@ -199,10 +199,6 @@ qtConfig(gui) {
|
2016-09-19 22:18:45 +02:00
|
|
|
SUBDIRS += src_3rdparty_harfbuzzng
|
|
|
|
src_gui.depends += src_3rdparty_harfbuzzng
|
|
|
|
}
|
2017-01-23 21:37:13 +01:00
|
|
|
- qtConfig(angle) {
|
2016-09-19 22:18:45 +02:00
|
|
|
- SUBDIRS += src_angle
|
|
|
|
- src_gui.depends += src_angle
|
|
|
|
- }
|
2017-01-23 21:37:13 +01:00
|
|
|
qtConfig(png):!qtConfig(system-png) {
|
2016-12-20 23:05:26 +01:00
|
|
|
SUBDIRS += src_3rdparty_libpng
|
|
|
|
src_3rdparty_freetype.depends += src_3rdparty_libpng
|
2016-09-19 22:18:45 +02:00
|
|
|
--
|
2019-03-16 16:58:50 +01:00
|
|
|
2.21.0
|
2016-09-19 22:18:45 +02:00
|
|
|
|