summaryrefslogtreecommitdiffstats
path: root/tools/configure
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>2012-03-07 20:51:27 -0600
committerQt by Nokia <qt-info@nokia.com>2012-03-17 17:54:59 +0100
commit1711bab7197eb0176e0c56fe3b8a50b6878ee1a3 (patch)
tree01a1602b12504617b4bca2184b13cb53f4e3de8f /tools/configure
parent7f67d0810e6899290b50120ee7a22d0a8a8300ec (diff)
Add support for ICU on Windows
Needed by QtWebKit now. Change-Id: I177d8dcf6063a14501f7ba3081b43a29a48661c7 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'tools/configure')
-rw-r--r--tools/configure/configureapp.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 92fdd35f3c..5a6a04aee0 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -264,6 +264,8 @@ Configure::Configure(int& argc, char** argv)
dictionary[ "PCRE" ] = "auto";
+ dictionary[ "ICU" ] = "auto";
+
dictionary[ "GIF" ] = "auto";
dictionary[ "JPEG" ] = "auto";
dictionary[ "PNG" ] = "auto";
@@ -504,6 +506,12 @@ void Configure::parseCmdLine()
dictionary[ "PCRE" ] = "system";
}
+ else if (configCmdLine.at(i) == "-icu") {
+ dictionary[ "ICU" ] = "yes";
+ } else if (configCmdLine.at(i) == "-no-icu") {
+ dictionary[ "ICU" ] = "no";
+ }
+
// Image formats --------------------------------------------
else if (configCmdLine.at(i) == "-no-gif")
dictionary[ "GIF" ] = "no";
@@ -1468,7 +1476,7 @@ bool Configure::displayHelp()
"[-no-multimedia] [-multimedia] [-no-audio-backend] [-audio-backend]\n"
"[-no-script] [-script] [-no-scripttools] [-scripttools]\n"
"[-no-webkit] [-webkit] [-webkit-debug]\n"
- "[-no-directwrite] [-directwrite] [-qpa] [-no-widgets] \n\n", 0, 7);
+ "[-no-directwrite] [-directwrite] [-qpa] [-no-widgets] [-icu]\n\n", 0, 7);
desc("Installation options:\n\n");
@@ -1565,6 +1573,9 @@ bool Configure::displayHelp()
desc("PCRE", "qt", "-qt-pcre", "Use the PCRE library bundled with Qt.");
desc("PCRE", "qt", "-system-pcre", "Use the PCRE library from the operating system.\nSee http://pcre.org/\n");
+ desc("ICU", "yes", "-icu", "Use the ICU library.");
+ desc("ICU", "no", "-no-icu", "Do not use the ICU library.\nSee http://site.icu-project.org/\n");
+
desc("GIF", "no", "-no-gif", "Do not compile GIF reading support.");
desc("LIBPNG", "no", "-no-libpng", "Do not compile PNG support.");
@@ -1811,6 +1822,9 @@ bool Configure::checkAvailability(const QString &part)
else if (part == "PCRE")
available = findFile("pcre.h");
+ else if (part == "ICU")
+ available = findFile("unicode/utypes.h") && findFile("unicode/ucol.h") && findFile("unicode/ustring.h") && findFile("icuin.lib");
+
else if (part == "LIBJPEG")
available = findFile("jpeglib.h");
else if (part == "LIBPNG")
@@ -1924,6 +1938,10 @@ void Configure::autoDetection()
if (dictionary["PCRE"] == "auto")
dictionary["PCRE"] = checkAvailability("PCRE") ? defaultTo("PCRE") : "qt";
+ // ICU detection
+ if (dictionary["ICU"] == "auto")
+ dictionary["ICU"] = checkAvailability("ICU") ? "yes" : "no";
+
// Image format detection
if (dictionary["GIF"] == "auto")
dictionary["GIF"] = defaultTo("GIF");
@@ -2118,6 +2136,10 @@ void Configure::generateOutputVars()
if (dictionary[ "PCRE" ] == "qt")
qmakeConfig += "pcre";
+ // ICU ---------------------------------------------------------
+ if (dictionary[ "ICU" ] == "yes")
+ qtConfig += "icu";
+
// Image formates -----------------------------------------------
if (dictionary[ "GIF" ] == "no")
qtConfig += "no-gif";
@@ -3060,6 +3082,8 @@ void Configure::displayConfig()
cout << " JPEG support............" << dictionary[ "JPEG" ] << endl;
cout << " PNG support............." << dictionary[ "PNG" ] << endl;
cout << " FreeType support........" << dictionary[ "FREETYPE" ] << endl << endl;
+ cout << " PCRE support............" << dictionary[ "PCRE" ] << endl;
+ cout << " ICU support............." << dictionary[ "ICU" ] << endl;
cout << "Styles:" << endl;
cout << " Windows................." << dictionary[ "STYLE_WINDOWS" ] << endl;