mxe/src/qtbase-1.patch

123 lines
4.1 KiB
Diff
Raw Normal View History

This file is part of MXE.
See index.html for further information.
2014-09-24 08:12:59 +01:00
From 50ecfaeb34eddff6507644c27223d1c495efa44a Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
Date: Tue, 26 Feb 2013 13:23:33 +0100
2014-09-24 08:12:59 +01:00
Subject: [PATCH 1/4] use pkg-config for freetype
Change-Id: Id2f78ed9dbdcacd570eb25982cbd700d0437542a
diff --git a/src/platformsupport/fontdatabases/basic/basic.pri b/src/platformsupport/fontdatabases/basic/basic.pri
index 88be809..8fc19d2 100644
--- a/src/platformsupport/fontdatabases/basic/basic.pri
+++ b/src/platformsupport/fontdatabases/basic/basic.pri
@@ -82,5 +82,7 @@ contains(QT_CONFIG, freetype) {
} else:contains(QT_CONFIG, system-freetype) {
# pull in the proper freetype2 include directory
include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
+ CONFIG += link_pkgconfig
+ PKGCONFIG += freetype2
}
--
2014-02-06 15:34:20 +00:00
1.8.4.5
2014-09-24 08:12:59 +01:00
From add48748a4d10e19a7b8e5878868e4150b3585cc Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
Date: Sat, 18 May 2013 23:07:46 +0200
2014-09-24 08:12:59 +01:00
Subject: [PATCH 2/4] use pkgconfig for icu detection (MXE specific)
Change-Id: I874171361fec812cb5a5a56e4d8d90a630be3bf3
diff --git a/config.tests/unix/icu/icu.pro b/config.tests/unix/icu/icu.pro
2014-06-25 16:30:24 +01:00
index 16267ff..dd9fb6c 100644
--- a/config.tests/unix/icu/icu.pro
+++ b/config.tests/unix/icu/icu.pro
2014-06-25 16:30:24 +01:00
@@ -2,16 +2,5 @@ SOURCES = icu.cpp
2013-10-22 21:47:16 +01:00
CONFIG += console
CONFIG -= qt dylib
2014-06-25 16:30:24 +01:00
2013-10-22 21:47:16 +01:00
-win32 {
- CONFIG(static, static|shared) {
- CONFIG(debug, debug|release) {
- LIBS += -lsicuind -lsicuucd -lsicudtd
- } else {
- LIBS += -lsicuin -lsicuuc -lsicudt
- }
- } else {
2014-06-25 16:30:24 +01:00
- LIBS += -licuin -licuuc -licudt
2013-10-22 21:47:16 +01:00
- }
-} else {
2014-06-25 16:30:24 +01:00
- LIBS += -licui18n -licuuc -licudata
2013-10-22 21:47:16 +01:00
-}
+CONFIG += link_pkgconfig
+PKGCONFIG += icu-i18n
--
2014-02-06 15:34:20 +00:00
1.8.4.5
2014-05-20 22:53:39 +01:00
2014-09-24 08:12:59 +01:00
From 118e7e4f591defa8062f731adad88198783a5bce Mon Sep 17 00:00:00 2001
2014-05-20 22:53:39 +01:00
From: Mark Brand <mabrand@mabrand.nl>
Date: Sat, 21 Jun 2014 13:12:49 +0200
2014-09-24 08:12:59 +01:00
Subject: [PATCH 3/4] use pkg-config for harfbuzz (MXE specific)
2014-05-20 22:53:39 +01:00
Change-Id: Id4e4c37d68b63c9f480d72a561d95d4d2a5ded50
2014-05-20 22:53:39 +01:00
diff --git a/src/3rdparty/harfbuzzng.pri b/src/3rdparty/harfbuzzng.pri
index 7443368..c24e684 100644
--- a/src/3rdparty/harfbuzzng.pri
+++ b/src/3rdparty/harfbuzzng.pri
@@ -2,5 +2,6 @@ contains(QT_CONFIG, harfbuzz) {
INCLUDEPATH += $$PWD/harfbuzz-ng/include
LIBS_PRIVATE += -L$$QT_BUILD_TREE/lib -lqtharfbuzzng$$qtPlatformTargetSuffix()
} else:contains(QT_CONFIG, system-harfbuzz) {
- LIBS_PRIVATE += -lharfbuzz
+ CONFIG += link_pkgconfig
+ PKGCONFIG += harfbuzz
}
2014-05-20 22:53:39 +01:00
--
1.8.4.5
2014-09-24 08:12:59 +01:00
From e7f53a64b5345e8389683ded15e396cbf0b94218 Mon Sep 17 00:00:00 2001
2014-09-24 08:12:59 +01:00
From: Timothy Gu <timothygu99@gmail.com>
Date: Tue, 23 Sep 2014 09:36:28 -0700
Subject: [PATCH 4/4] create_cmake: Fix mingw plugin path
MinGW static libs use libfoo.a format, and not foo.lib.
Change-Id: I899adca8ec0b1c8430f5b6c4f18ad0ea1dc6d398
taken from: https://codereview.qt-project.org/95617
diff --git a/mkspecs/features/create_cmake.prf b/mkspecs/features/create_cmake.prf
index 2533b7b..e874957 100644
2014-09-24 08:12:59 +01:00
--- a/mkspecs/features/create_cmake.prf
+++ b/mkspecs/features/create_cmake.prf
@@ -133,11 +133,16 @@ contains(CONFIG, plugin) {
2014-09-24 08:12:59 +01:00
CMAKE_PLUGIN_NAME = $$PLUGIN_CLASS_NAME
win32 {
- isEmpty(CMAKE_STATIC_TYPE): CMAKE_PlUGIN_EXT = .dll
- else: CMAKE_PlUGIN_EXT = .lib
-
2014-09-24 08:12:59 +01:00
- CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/$${TARGET}$${CMAKE_PlUGIN_EXT}
- CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/$${TARGET}d$${CMAKE_PlUGIN_EXT}
+ isEmpty(CMAKE_STATIC_TYPE) {
+ CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/$${TARGET}.dll
+ CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/$${TARGET}d.dll
+ } else:mingw {
+ CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/lib$${TARGET}.a
+ CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/lib$${TARGET}d.a
+ } else { # MSVC static
+ CMAKE_PLUGIN_LOCATION_RELEASE = $$PLUGIN_TYPE/$${TARGET}.lib
+ CMAKE_PLUGIN_LOCATION_DEBUG = $$PLUGIN_TYPE/$${TARGET}d.lib
2014-09-24 08:12:59 +01:00
+ }
} else {
mac {
isEmpty(CMAKE_STATIC_TYPE): CMAKE_PlUGIN_EXT = .dylib
--
1.8.4.5