summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2011-10-12 10:11:30 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-13 12:57:26 +0200
commit28c0b26fb7a6d33670d3ad523562aa11dcd40d35 (patch)
treea02bd410adfe490d16152fdd3c05d1016e697e83 /config.tests
parent8346c192ad927f379519b1bfb5c6d7e3d64e7e9b (diff)
Fix build on Harmattan when cross-compiling
When configure detects the presence of font-config/freetype via pkg-config _and_ we are cross-compiling for Harmattan, make sure that we pick up the include path for freetype. The .pri file is included in various places in qtbase when the usage of freetype is required. Change-Id: I4a5390dfc063504def80a891bc9153d6a376ccd7 Reviewed-on: http://codereview.qt-project.org/6509 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/unix/freetype/freetype.pri5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.tests/unix/freetype/freetype.pri b/config.tests/unix/freetype/freetype.pri
index 7ef1cf93b1..be2fc33265 100644
--- a/config.tests/unix/freetype/freetype.pri
+++ b/config.tests/unix/freetype/freetype.pri
@@ -6,4 +6,9 @@
p = $$join(p, "", "", "/freetype2")
exists($$p):INCLUDEPATH *= $$p
}
+} else {
+ # If we are cross-compiling, then there is still a remote possibility that
+ # configure detected font-config & freetype, stored in these variables.
+ QMAKE_CFLAGS += $$QMAKE_CFLAGS_FONTCONFIG
+ QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_FONTCONFIG
}