2016-08-22 20:52:34 +01:00
|
|
|
This file is part of MXE. See LICENSE.md for licensing information.
|
2012-12-19 22:53:14 +00:00
|
|
|
|
2017-07-29 14:05:33 +01:00
|
|
|
From 0e4abbfb6a0ac7bcc31fa0db0e2ae2c6e0310b26 Mon Sep 17 00:00:00 2001
|
2016-01-17 12:44:54 +00:00
|
|
|
From: Ray Donnelly <mingw.android@gmail.com>
|
|
|
|
Date: Wed, 26 Aug 2015 12:45:43 +0100
|
2017-06-10 23:29:30 +01:00
|
|
|
Subject: [PATCH 1/5] cmake: Rearrange STATIC vs INTERFACE targets
|
2016-01-17 12:44:54 +00:00
|
|
|
|
|
|
|
Otherwise we attempt to add_library(Qt5::UiPlugin STATIC IMPORTED)
|
|
|
|
for header-only modules when building Qt5 statically.
|
|
|
|
|
|
|
|
Source: https://git.io/vzWJz
|
|
|
|
See also: https://github.com/mxe/mxe/issues/1185
|
|
|
|
|
|
|
|
diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
|
2017-07-29 14:05:33 +01:00
|
|
|
index 17da8b979e0..bddd70960a8 100644
|
2016-01-17 12:44:54 +00:00
|
|
|
--- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
|
|
|
|
+++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
|
2017-06-02 14:07:52 +01:00
|
|
|
@@ -224,13 +224,13 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME})
|
2016-01-17 12:44:54 +00:00
|
|
|
endif()
|
|
|
|
!!ENDIF
|
|
|
|
|
|
|
|
+!!IF equals(TEMPLATE, aux)
|
|
|
|
+ add_library(Qt5::$${CMAKE_MODULE_NAME} INTERFACE IMPORTED)
|
|
|
|
+!!ELSE
|
|
|
|
!!IF !isEmpty(CMAKE_STATIC_TYPE)
|
|
|
|
add_library(Qt5::$${CMAKE_MODULE_NAME} STATIC IMPORTED)
|
|
|
|
set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES "CXX")
|
|
|
|
!!ELSE
|
|
|
|
-!!IF equals(TEMPLATE, aux)
|
|
|
|
- add_library(Qt5::$${CMAKE_MODULE_NAME} INTERFACE IMPORTED)
|
|
|
|
-!!ELSE
|
|
|
|
add_library(Qt5::$${CMAKE_MODULE_NAME} SHARED IMPORTED)
|
|
|
|
!!ENDIF
|
|
|
|
!!ENDIF
|
2016-12-15 13:48:16 +00:00
|
|
|
--
|
2017-06-02 14:07:52 +01:00
|
|
|
2.11.0
|
2016-06-19 09:30:48 +01:00
|
|
|
|
2016-06-21 01:03:22 +01:00
|
|
|
|
2017-07-29 14:05:33 +01:00
|
|
|
From 421e7313cfa5421dd41adb136a7449ecafc86e4e Mon Sep 17 00:00:00 2001
|
2016-07-16 15:29:41 +01:00
|
|
|
From: Tony Theodore <tonyt@logyst.com>
|
|
|
|
Date: Sat, 16 Jul 2016 20:31:07 +1000
|
2017-06-10 23:29:30 +01:00
|
|
|
Subject: [PATCH 2/5] Fix pkgconfig file and library naming
|
2016-07-16 15:29:41 +01:00
|
|
|
|
|
|
|
See: https://codereview.qt-project.org/#/c/165394/
|
|
|
|
https://bugreports.qt.io/browse/QTBUG-30898
|
|
|
|
|
|
|
|
Currently, *.pc files are generated with debug suffix `d` in `-release`
|
|
|
|
mode and without the suffix in `-debug` or `-debug-and-release`. This
|
|
|
|
can be worked around by `CONIFG-=debug_and_release`, however, a more
|
|
|
|
predictable and consistent naming approach would be preferable.
|
|
|
|
|
|
|
|
This change mimics the *.prl file and lib conventions:
|
|
|
|
|
|
|
|
-release: creates normal *.pc files and lib names
|
|
|
|
-release -force-debug-info: normal as above
|
|
|
|
-debug: creates *d.pc and *d lib names
|
|
|
|
-debug-and-release: creates both
|
|
|
|
-default: creates both (default link: debug)
|
|
|
|
|
|
|
|
and should be unsurprising to users of `pkg-config`. At very least,
|
|
|
|
it's deterministic and easily incorporated into build systems.
|
|
|
|
|
|
|
|
Task-number: 30898
|
|
|
|
Change-Id: If75336ec7d21a7ec0cb6d245fe87c64afcb5a644
|
|
|
|
|
|
|
|
diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
|
2017-06-02 14:07:52 +01:00
|
|
|
index 36f632e8caa..b07085ac429 100644
|
2016-07-16 15:29:41 +01:00
|
|
|
--- a/mkspecs/features/qt_module.prf
|
|
|
|
+++ b/mkspecs/features/qt_module.prf
|
2017-06-02 14:07:52 +01:00
|
|
|
@@ -263,6 +263,10 @@ load(qt_installs)
|
2016-07-16 15:29:41 +01:00
|
|
|
|
|
|
|
load(qt_targets)
|
|
|
|
|
|
|
|
+# Set TARGET towards the end but before pkgconfig setup to keep naming
|
|
|
|
+# conventions consistent with *prl files
|
|
|
|
+TARGET = $$qt5LibraryTarget($$TARGET$$QT_LIBINFIX)
|
|
|
|
+
|
|
|
|
# this builds on top of qt_common
|
|
|
|
!internal_module:!lib_bundle:if(unix|mingw) {
|
|
|
|
CONFIG += create_pc
|
2017-06-02 14:07:52 +01:00
|
|
|
@@ -273,12 +277,12 @@ load(qt_targets)
|
2016-07-16 15:29:41 +01:00
|
|
|
QMAKE_PKGCONFIG_LIBDIR = $$[QT_INSTALL_LIBS/raw]
|
|
|
|
QMAKE_PKGCONFIG_INCDIR = $$[QT_INSTALL_HEADERS/raw]
|
|
|
|
QMAKE_PKGCONFIG_CFLAGS = -I${includedir}/$$MODULE_INCNAME
|
|
|
|
- QMAKE_PKGCONFIG_NAME = $$replace(TARGET, ^Qt, "Qt$$QT_MAJOR_VERSION ")
|
|
|
|
- QMAKE_PKGCONFIG_FILE = $$replace(TARGET, ^Qt, Qt$$QT_MAJOR_VERSION)
|
|
|
|
+ QMAKE_PKGCONFIG_NAME = $$replace(TARGET, ^Qt$$QT_MAJOR_VERSION, "Qt$$QT_MAJOR_VERSION ")
|
|
|
|
+ QMAKE_PKGCONFIG_FILE = $$TARGET
|
|
|
|
for(i, MODULE_DEPENDS): \
|
2017-06-02 14:07:52 +01:00
|
|
|
- QMAKE_PKGCONFIG_REQUIRES += $$replace(QT.$${i}.name, ^Qt, Qt$$section(QT.$${i}.VERSION, ., 0, 0))
|
|
|
|
+ QMAKE_PKGCONFIG_REQUIRES += $$replace(QT.$${i}.name, ^Qt, Qt$$section(QT.$${i}.VERSION, ., 0, 0))$$qtPlatformTargetSuffix()
|
2016-07-16 15:29:41 +01:00
|
|
|
isEmpty(QMAKE_PKGCONFIG_DESCRIPTION): \
|
|
|
|
- QMAKE_PKGCONFIG_DESCRIPTION = $$replace(TARGET, ^Qt, "Qt ") module
|
|
|
|
+ QMAKE_PKGCONFIG_DESCRIPTION = $$replace(TARGET, ^Qt$$QT_MAJOR_VERSION, "Qt ") module
|
|
|
|
pclib_replace.match = $$lib_replace.match
|
|
|
|
!isEmpty(lib_replace.replace): \
|
|
|
|
pclib_replace.replace = $$QMAKE_PKGCONFIG_LIBDIR
|
2017-06-02 14:07:52 +01:00
|
|
|
@@ -312,5 +316,3 @@ win32 {
|
2016-07-16 15:29:41 +01:00
|
|
|
# On other platforms, Qt's own compilation goes needs to compile the Qt 5.0 API
|
|
|
|
DEFINES *= QT_DISABLE_DEPRECATED_BEFORE=0x050000
|
|
|
|
}
|
|
|
|
-
|
|
|
|
-TARGET = $$qt5LibraryTarget($$TARGET$$QT_LIBINFIX) # Do this towards the end
|
2016-12-15 13:48:16 +00:00
|
|
|
--
|
2017-06-02 14:07:52 +01:00
|
|
|
2.11.0
|
2016-12-15 13:48:16 +00:00
|
|
|
|
|
|
|
|
2017-07-29 14:05:33 +01:00
|
|
|
From b84844de9f60380c328a481b58cd2a035851d5d3 Mon Sep 17 00:00:00 2001
|
2017-01-29 13:07:45 +00:00
|
|
|
From: Mark Brand <mabrand@mabrand.nl>
|
|
|
|
Date: Sun, 29 Jan 2017 13:02:16 +0100
|
2017-06-10 23:29:30 +01:00
|
|
|
Subject: [PATCH 3/5] reenable fontconfig for win32 (MXE-specific)
|
2017-01-29 13:07:45 +00:00
|
|
|
|
|
|
|
Change-Id: I05b036366bd402e43309742412bcf8ca91fe125f
|
|
|
|
|
|
|
|
diff --git a/src/gui/configure.json b/src/gui/configure.json
|
2017-07-29 14:05:33 +01:00
|
|
|
index 2fb03a452ab..91ae39177f2 100644
|
2017-01-29 13:07:45 +00:00
|
|
|
--- a/src/gui/configure.json
|
|
|
|
+++ b/src/gui/configure.json
|
2017-07-29 14:05:33 +01:00
|
|
|
@@ -498,7 +498,7 @@
|
2017-01-29 13:07:45 +00:00
|
|
|
},
|
|
|
|
"fontconfig": {
|
|
|
|
"label": "Fontconfig",
|
|
|
|
- "condition": "!config.win32 && !config.darwin && features.system-freetype && libs.fontconfig",
|
|
|
|
+ "condition": "!config.darwin && features.system-freetype && libs.fontconfig",
|
|
|
|
"output": [ "privateFeature", "feature" ]
|
|
|
|
},
|
|
|
|
"gbm": {
|
|
|
|
diff --git a/src/plugins/platforms/minimal/qminimalintegration.cpp b/src/plugins/platforms/minimal/qminimalintegration.cpp
|
2017-06-02 14:07:52 +01:00
|
|
|
index ca33689cd72..194523eee00 100644
|
2017-01-29 13:07:45 +00:00
|
|
|
--- a/src/plugins/platforms/minimal/qminimalintegration.cpp
|
|
|
|
+++ b/src/plugins/platforms/minimal/qminimalintegration.cpp
|
2017-06-02 14:07:52 +01:00
|
|
|
@@ -130,7 +130,11 @@ QPlatformFontDatabase *QMinimalIntegration::fontDatabase() const
|
|
|
|
{
|
|
|
|
if (!m_fontDatabase && (m_options & EnableFonts)) {
|
2017-01-29 13:07:45 +00:00
|
|
|
#if QT_CONFIG(fontconfig)
|
|
|
|
+#ifdef Q_OS_WIN
|
2017-06-02 14:07:52 +01:00
|
|
|
+ m_fontDatabase = new QFreeTypeFontDatabase;
|
2017-01-29 13:07:45 +00:00
|
|
|
+#else
|
2017-06-02 14:07:52 +01:00
|
|
|
m_fontDatabase = new QGenericUnixFontDatabase;
|
2017-01-29 13:07:45 +00:00
|
|
|
+#endif
|
2017-06-02 14:07:52 +01:00
|
|
|
#elif defined(Q_OS_WINRT)
|
|
|
|
m_fontDatabase = new QWinRTFontDatabase;
|
|
|
|
#elif defined(Q_OS_WIN)
|
2017-01-29 13:07:45 +00:00
|
|
|
--
|
2017-06-02 14:07:52 +01:00
|
|
|
2.11.0
|
2017-01-29 13:07:45 +00:00
|
|
|
|
|
|
|
|
2017-07-29 14:05:33 +01:00
|
|
|
From c35d305ba4e1bdb4a6bdc7ad85515e0358b8d3bc Mon Sep 17 00:00:00 2001
|
2016-12-15 13:48:16 +00:00
|
|
|
From: Mark Brand <mabrand@mabrand.nl>
|
2017-01-29 13:07:45 +00:00
|
|
|
Date: Sun, 29 Jan 2017 16:22:03 +0100
|
2017-06-10 23:29:30 +01:00
|
|
|
Subject: [PATCH 4/5] fix treatment of SYBASE_LIBS
|
2017-01-29 13:07:45 +00:00
|
|
|
|
|
|
|
Change-Id: I4c9914cf7ef9d91feb0718a57f2551c1eeed47e0
|
|
|
|
|
2017-07-29 14:05:33 +01:00
|
|
|
diff --git a/src/plugins/sqldrivers/configure.pri b/src/plugins/sqldrivers/configure.pri
|
|
|
|
index 9fb957291fd..d0640809022 100644
|
|
|
|
--- a/src/plugins/sqldrivers/configure.pri
|
|
|
|
+++ b/src/plugins/sqldrivers/configure.pri
|
|
|
|
@@ -92,7 +92,7 @@ defineTest(qtConfLibrary_sybaseEnv) {
|
2017-01-29 13:07:45 +00:00
|
|
|
libs += "-L$${sybase}/lib"
|
|
|
|
libs += $$getenv(SYBASE_LIBS)
|
|
|
|
!isEmpty(libs) {
|
|
|
|
- $${1}.libs = "$$val_escape(libs)"
|
|
|
|
+ $${1}.libs = $$libs
|
|
|
|
export($${1}.libs)
|
|
|
|
}
|
|
|
|
return(true)
|
2016-12-15 13:48:16 +00:00
|
|
|
--
|
2017-06-02 14:07:52 +01:00
|
|
|
2.11.0
|
2016-11-18 21:53:03 +00:00
|
|
|
|
2017-06-10 23:29:30 +01:00
|
|
|
|
2017-07-29 14:05:33 +01:00
|
|
|
From 4bf338634788b012bd73b7bb4aeea81e42e9bb82 Mon Sep 17 00:00:00 2001
|
2017-06-10 23:29:30 +01:00
|
|
|
From: Mark Brand <mabrand@mabrand.nl>
|
|
|
|
Date: Sun, 11 Jun 2017 00:27:41 +0200
|
|
|
|
Subject: [PATCH 5/5] use pkg-config for harfbuzz
|
|
|
|
|
|
|
|
Change-Id: Ia65cbb90fd180f1bc10ce077a9a8323a48e51421
|
|
|
|
|
|
|
|
diff --git a/src/gui/configure.json b/src/gui/configure.json
|
2017-07-29 14:05:33 +01:00
|
|
|
index 91ae39177f2..398d07d0b13 100644
|
2017-06-10 23:29:30 +01:00
|
|
|
--- a/src/gui/configure.json
|
|
|
|
+++ b/src/gui/configure.json
|
2017-07-29 14:05:33 +01:00
|
|
|
@@ -130,7 +130,8 @@
|
2017-06-10 23:29:30 +01:00
|
|
|
"label": "HarfBuzz",
|
|
|
|
"test": "unix/harfbuzz",
|
|
|
|
"sources": [
|
|
|
|
- "-lharfbuzz"
|
|
|
|
+ { "type": "pkgConfig", "args": "harfbuzz" },
|
|
|
|
+ "-lharfbuzz"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"imf": {
|
|
|
|
--
|
|
|
|
2.11.0
|
|
|
|
|