2012-12-19 22:53:14 +00:00
|
|
|
This file is part of MXE.
|
|
|
|
See index.html for further information.
|
|
|
|
|
2014-06-17 20:34:43 +01:00
|
|
|
From 4c5a88298629d81d899b6748db482bb35b15fc2a Mon Sep 17 00:00:00 2001
|
2013-10-24 22:07:21 +01:00
|
|
|
From: Mark Brand <mabrand@mabrand.nl>
|
|
|
|
Date: Tue, 26 Feb 2013 13:23:33 +0100
|
2014-05-20 22:53:39 +01:00
|
|
|
Subject: [PATCH 1/3] use pkg-config for freetype
|
2013-10-24 22:07:21 +01:00
|
|
|
|
|
|
|
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
|
2013-10-24 22:07:21 +01:00
|
|
|
|
|
|
|
|
2014-06-17 20:34:43 +01:00
|
|
|
From 0d6f714d5a283429df603ea1898a73527ebdd71c Mon Sep 17 00:00:00 2001
|
2013-10-24 22:07:21 +01:00
|
|
|
From: Mark Brand <mabrand@mabrand.nl>
|
|
|
|
Date: Sat, 18 May 2013 23:07:46 +0200
|
2014-05-20 22:53:39 +01:00
|
|
|
Subject: [PATCH 2/3] use pkgconfig for icu detection (MXE specific)
|
2013-10-24 22:07:21 +01:00
|
|
|
|
|
|
|
Change-Id: I874171361fec812cb5a5a56e4d8d90a630be3bf3
|
|
|
|
|
|
|
|
diff --git a/config.tests/unix/icu/icu.pro b/config.tests/unix/icu/icu.pro
|
2013-10-22 21:47:16 +01:00
|
|
|
index 2c1b431..e29798b 100644
|
2013-10-24 22:07:21 +01:00
|
|
|
--- a/config.tests/unix/icu/icu.pro
|
|
|
|
+++ b/config.tests/unix/icu/icu.pro
|
2013-10-22 21:47:16 +01:00
|
|
|
@@ -1,16 +1,5 @@
|
2013-10-24 22:07:21 +01:00
|
|
|
SOURCES = icu.cpp
|
2013-10-22 21:47:16 +01:00
|
|
|
CONFIG += console
|
|
|
|
CONFIG -= qt dylib
|
|
|
|
-win32 {
|
|
|
|
- CONFIG(static, static|shared) {
|
|
|
|
- CONFIG(debug, debug|release) {
|
|
|
|
- LIBS += -lsicuind -lsicuucd -lsicudtd
|
|
|
|
- } else {
|
|
|
|
- LIBS += -lsicuin -lsicuuc -lsicudt
|
|
|
|
- }
|
|
|
|
- } else {
|
|
|
|
- LIBS += -licuin -licuuc
|
|
|
|
- }
|
|
|
|
-} else {
|
|
|
|
- LIBS += -licui18n -licuuc
|
|
|
|
-}
|
2013-10-24 22:07:21 +01:00
|
|
|
+CONFIG += link_pkgconfig
|
|
|
|
+PKGCONFIG += icu-i18n
|
|
|
|
--
|
2014-02-06 15:34:20 +00:00
|
|
|
1.8.4.5
|
2013-11-04 10:58:05 +00:00
|
|
|
|
2014-05-20 22:53:39 +01:00
|
|
|
|
2014-06-17 20:34:43 +01:00
|
|
|
From 377ebc9636652d5ba46bcf71b60c6bfe91f46008 Mon Sep 17 00:00:00 2001
|
2014-05-20 22:53:39 +01:00
|
|
|
From: Mark Brand <mabrand@mabrand.nl>
|
2014-06-17 20:34:43 +01:00
|
|
|
Date: Wed, 18 Jun 2014 16:37:08 +0200
|
|
|
|
Subject: [PATCH 3/3] workaround harfbuzz/freetype static linking circularity
|
|
|
|
(MXE-specific)
|
2014-05-20 22:53:39 +01:00
|
|
|
|
2014-06-17 20:34:43 +01:00
|
|
|
Pkg-config provides the -lfreetype needed by -lharfbuzz.
|
|
|
|
Fontconfig also introduces -lfreetype.
|
|
|
|
Manually add -lharfbuzz_too needed after these -lfreetype occurrences.
|
2014-05-20 22:53:39 +01:00
|
|
|
|
2014-06-17 20:34:43 +01:00
|
|
|
This assumes that the libharfbuzz_too.a exists and is a symbolic
|
|
|
|
link (or copy of) libharfbuzz.a. If we were to simply add an
|
|
|
|
extra -lharfbuzz, qmake would remove the duplicate.
|
|
|
|
|
|
|
|
Change-Id: Ia6a1d1d58cfc58ee470aab4830309596085d52a2
|
|
|
|
|
|
|
|
diff --git a/configure b/configure
|
|
|
|
index 601d84a..24ea55e 100755
|
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
|
|
|
@@ -4812,6 +4812,7 @@ if [ "$CFG_FONTCONFIG" != "no" ]; then
|
|
|
|
QT_CFLAGS_FONTCONFIG=
|
|
|
|
QT_LIBS_FONTCONFIG="-lfreetype -lfontconfig"
|
|
|
|
fi
|
|
|
|
+ [ "$XPLATFORM_MINGW" = "yes" ] && [ "$CFG_SHARED" = "no" ] && QT_LIBS_FONTCONFIG="$QT_LIBS_FONTCONFIG -lharfbuzz_too"
|
|
|
|
if compileTest unix/fontconfig "FontConfig" $QT_CFLAGS_FONTCONFIG $QT_LIBS_FONTCONFIG; then
|
|
|
|
QT_CONFIG="$QT_CONFIG fontconfig"
|
|
|
|
QMakeVar set QMAKE_CFLAGS_FONTCONFIG "$QT_CFLAGS_FONTCONFIG"
|
|
|
|
diff --git a/src/3rdparty/harfbuzzng.pri b/src/3rdparty/harfbuzzng.pri
|
|
|
|
index 7443368..466135e 100644
|
|
|
|
--- a/src/3rdparty/harfbuzzng.pri
|
|
|
|
+++ b/src/3rdparty/harfbuzzng.pri
|
|
|
|
@@ -2,5 +2,7 @@ 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
|
|
|
|
+ isEmpty(PKG_CONFIG):PKG_CONFIG = pkg-config
|
|
|
|
+ LIBS_PRIVATE += $$system($$PKG_CONFIG --static --libs harfbuzz)
|
|
|
|
+ mingw:static:contains(LIBS_PRIVATE, -lfreetype):LIBS_PRIVATE += -lharfbuzz_too
|
|
|
|
}
|
2014-05-20 22:53:39 +01:00
|
|
|
--
|
|
|
|
1.8.4.5
|
|
|
|
|