Migrate fontconfig config test to unix scope
authorDonald Carr <donald.carr@nokia.com>
Mon, 4 Jun 2012 17:15:57 +0000 (17:15 +0000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jun 2012 04:14:06 +0000 (06:14 +0200)
Fontconfig has no X11 dependency and is of broader use to us than the X11
context. The test should also disambiguate whether fontconfig support is
successfully detected or not.

This change also removes a false X11 dependency from the freetype test.

Change-Id: I68a596aa06f614a64163772fe29a09edba119a81
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
config.tests/unix/fontconfig/fontconfig.cpp [moved from config.tests/x11/fontconfig/fontconfig.cpp with 100% similarity]
config.tests/unix/fontconfig/fontconfig.pro [moved from config.tests/x11/fontconfig/fontconfig.pro with 100% similarity]
config.tests/unix/freetype/freetype.pro
configure

index e84158e..c0cc02d 100644 (file)
@@ -1,5 +1,4 @@
 SOURCES = freetype.cpp
-CONFIG += x11
 CONFIG -= qt
 LIBS += -lfreetype
 include(freetype.pri)
index 17ea5b8..747ebf3 100755 (executable)
--- a/configure
+++ b/configure
@@ -4535,11 +4535,14 @@ if [ "$CFG_FONTCONFIG" != "no" ]; then
         QT_CFLAGS_FONTCONFIG=
         QT_LIBS_FONTCONFIG="-lfreetype -lfontconfig"
     fi
-    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/x11/fontconfig "FontConfig" $L_FLAGS $I_FLAGS $D_FLAGS $l_FLAGS $QT_CFLAGS_FONTCONFIG $QT_LIBS_FONTCONFIG; then
+    if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/fontconfig "FontConfig" $L_FLAGS $I_FLAGS $D_FLAGS $l_FLAGS $QT_CFLAGS_FONTCONFIG $QT_LIBS_FONTCONFIG; then
         QT_CONFIG="$QT_CONFIG fontconfig"
         QMakeVar set QMAKE_CFLAGS_FONTCONFIG "$QT_CFLAGS_FONTCONFIG"
         QMakeVar set QMAKE_LIBS_FONTCONFIG "$QT_LIBS_FONTCONFIG"
+        CFG_FONTCONFIG=yes
         CFG_LIBFREETYPE=system
+    else
+        CFG_FONTCONFIG=no
     fi
 
 fi