Fix build on Harmattan when cross-compiling
authorSimon Hausmann <simon.hausmann@nokia.com>
Wed, 12 Oct 2011 08:11:30 +0000 (10:11 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 13 Oct 2011 10:57:26 +0000 (12:57 +0200)
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>
config.tests/unix/freetype/freetype.pri

index 7ef1cf9..be2fc33 100644 (file)
@@ -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
 }