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>
This commit is contained in:
parent
7f67d0810e
commit
1711bab719
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user