Martchus
b026866d2f
* Improve documentation * Switch back to patching win32-g++ rather than adding own mkspec to fix * https://github.com/Martchus/PKGBUILDs/issues/59 * https://github.com/Martchus/PKGBUILDs/issues/60 * Not tested yet
98 lines
3.4 KiB
Diff
98 lines
3.4 KiB
Diff
From f8025a3fcae7623f8e54299e0842ca45a71fb28d Mon Sep 17 00:00:00 2001
|
|
From: Martchus <martchus@gmx.net>
|
|
Date: Sun, 18 Sep 2016 13:41:38 +0200
|
|
Subject: [PATCH 03/32] Use external ANGLE library
|
|
|
|
---
|
|
src/gui/Qt5GuiConfigExtras.cmake.in | 4 ++--
|
|
src/gui/gui.pro | 8 ++------
|
|
src/opengl/opengl.pro | 1 +
|
|
src/plugins/platforms/windows/windows.pri | 1 +
|
|
src/src.pro | 4 ----
|
|
5 files changed, 6 insertions(+), 12 deletions(-)
|
|
|
|
diff --git a/src/gui/Qt5GuiConfigExtras.cmake.in b/src/gui/Qt5GuiConfigExtras.cmake.in
|
|
index 07869efd7d..2e32911a64 100644
|
|
--- 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
|
|
index f8cec00b82..d09c9fd49c 100644
|
|
--- a/src/gui/gui.pro
|
|
+++ b/src/gui/gui.pro
|
|
@@ -18,12 +18,6 @@ MODULE_PLUGIN_TYPES = \
|
|
imageformats \
|
|
egldeviceintegrations
|
|
|
|
-# This is here only because the platform plugin is no module, obviously.
|
|
-qtConfig(angle) {
|
|
- MODULE_AUX_INCLUDES = \
|
|
- \$\$QT_MODULE_INCLUDE_BASE/QtANGLE
|
|
-}
|
|
-
|
|
# Code coverage with TestCocoon
|
|
# The following is required as extra compilers use $$QMAKE_CXX instead of $(CXX).
|
|
# Without this, testcocoon.prf is read only after $$QMAKE_CXX is used by the
|
|
@@ -35,6 +29,8 @@ testcocoon {
|
|
osx: LIBS_PRIVATE += -framework AppKit
|
|
darwin: LIBS_PRIVATE += -framework CoreGraphics
|
|
|
|
+win32:qtConfig(angle): LIBS_PRIVATE += -lGLESv2
|
|
+
|
|
CONFIG += simd optimize_full
|
|
|
|
include(accessible/accessible.pri)
|
|
diff --git a/src/opengl/opengl.pro b/src/opengl/opengl.pro
|
|
index 742be61a50..5fef69fd3f 100644
|
|
--- a/src/opengl/opengl.pro
|
|
+++ b/src/opengl/opengl.pro
|
|
@@ -11,6 +11,7 @@ QMAKE_DOCS = $$PWD/doc/qtopengl.qdocconf
|
|
|
|
qtConfig(opengl): CONFIG += opengl
|
|
qtConfig(opengles2): CONFIG += opengles2
|
|
+win32:qtConfig(angle): LIBS_PRIVATE += -lGLESv2
|
|
|
|
HEADERS += qgl.h \
|
|
qgl_p.h \
|
|
diff --git a/src/plugins/platforms/windows/windows.pri b/src/plugins/platforms/windows/windows.pri
|
|
index b7790a66e3..046fe34a06 100644
|
|
--- a/src/plugins/platforms/windows/windows.pri
|
|
+++ b/src/plugins/platforms/windows/windows.pri
|
|
@@ -4,6 +4,7 @@ LIBS += -lole32 -luser32 -lwinspool -limm32 -lwinmm -loleaut32
|
|
QT_FOR_CONFIG += gui
|
|
|
|
qtConfig(opengl):!qtConfig(opengles2):!qtConfig(dynamicgl): LIBS *= -lopengl32
|
|
+qtConfig(angle):LIBS += -lGLESv2 -lEGL
|
|
|
|
mingw: LIBS *= -luuid
|
|
# For the dialog helpers:
|
|
diff --git a/src/src.pro b/src/src.pro
|
|
index a73729a760..32d9f8502a 100644
|
|
--- a/src/src.pro
|
|
+++ b/src/src.pro
|
|
@@ -180,10 +180,6 @@ qtConfig(gui) {
|
|
SUBDIRS += src_3rdparty_harfbuzzng
|
|
src_gui.depends += src_3rdparty_harfbuzzng
|
|
}
|
|
- qtConfig(angle) {
|
|
- SUBDIRS += src_angle
|
|
- src_gui.depends += src_angle
|
|
- }
|
|
qtConfig(png):!qtConfig(system-png) {
|
|
SUBDIRS += src_3rdparty_libpng
|
|
src_3rdparty_freetype.depends += src_3rdparty_libpng
|
|
--
|
|
2.16.2
|
|
|