purge obsolete EVAL #ifdefs
clearly, nobody's been maintaining them for an extended period of time. Change-Id: I41c6b40026f107d34f7964934f36bc727fb6b795 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
a53e929889
commit
62b4525d6f
@ -395,7 +395,6 @@ void Configure::parseCmdLine()
|
|||||||
int i = 0;
|
int i = 0;
|
||||||
const QStringList imageFormats = QStringList() << "gif" << "png" << "jpeg";
|
const QStringList imageFormats = QStringList() << "gif" << "png" << "jpeg";
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
if (argCount < 1) // skip rest if no arguments
|
if (argCount < 1) // skip rest if no arguments
|
||||||
;
|
;
|
||||||
else if (configCmdLine.at(i) == "-redo") {
|
else if (configCmdLine.at(i) == "-redo") {
|
||||||
@ -416,7 +415,6 @@ void Configure::parseCmdLine()
|
|||||||
i = 0;
|
i = 0;
|
||||||
}
|
}
|
||||||
argCount = configCmdLine.size();
|
argCount = configCmdLine.size();
|
||||||
#endif
|
|
||||||
|
|
||||||
bool isDeviceMkspec = false;
|
bool isDeviceMkspec = false;
|
||||||
|
|
||||||
@ -441,7 +439,6 @@ void Configure::parseCmdLine()
|
|||||||
|| configCmdLine.at(i) == "-?")
|
|| configCmdLine.at(i) == "-?")
|
||||||
dictionary[ "HELP" ] = "yes";
|
dictionary[ "HELP" ] = "yes";
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
else if (configCmdLine.at(i) == "-qconfig") {
|
else if (configCmdLine.at(i) == "-qconfig") {
|
||||||
++i;
|
++i;
|
||||||
if (i == argCount)
|
if (i == argCount)
|
||||||
@ -493,9 +490,6 @@ void Configure::parseCmdLine()
|
|||||||
dictionary[ "FORCE_ASSERTS" ] = "yes";
|
dictionary[ "FORCE_ASSERTS" ] = "yes";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
else if (configCmdLine.at(i) == "-platform") {
|
else if (configCmdLine.at(i) == "-platform") {
|
||||||
++i;
|
++i;
|
||||||
if (i == argCount)
|
if (i == argCount)
|
||||||
@ -515,8 +509,6 @@ void Configure::parseCmdLine()
|
|||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
else if (configCmdLine.at(i) == "-no-zlib") {
|
else if (configCmdLine.at(i) == "-no-zlib") {
|
||||||
// No longer supported since Qt 4.4.0
|
// No longer supported since Qt 4.4.0
|
||||||
// But save the information for later so that we can print a warning
|
// But save the information for later so that we can print a warning
|
||||||
@ -773,7 +765,7 @@ void Configure::parseCmdLine()
|
|||||||
else if (configCmdLine.at(i).startsWith("-no-imageformat-") &&
|
else if (configCmdLine.at(i).startsWith("-no-imageformat-") &&
|
||||||
imageFormats.contains(configCmdLine.at(i).section('-', 3)))
|
imageFormats.contains(configCmdLine.at(i).section('-', 3)))
|
||||||
dictionary[ configCmdLine.at(i).section('-', 3).toUpper() ] = "no";
|
dictionary[ configCmdLine.at(i).section('-', 3).toUpper() ] = "no";
|
||||||
#endif
|
|
||||||
// IDE project generation -----------------------------------
|
// IDE project generation -----------------------------------
|
||||||
else if (configCmdLine.at(i) == "-no-vcproj")
|
else if (configCmdLine.at(i) == "-no-vcproj")
|
||||||
dictionary[ "VCPROJFILES" ] = "no";
|
dictionary[ "VCPROJFILES" ] = "no";
|
||||||
@ -788,7 +780,6 @@ void Configure::parseCmdLine()
|
|||||||
dictionary[ "NATIVE_GESTURES" ] = "yes";
|
dictionary[ "NATIVE_GESTURES" ] = "yes";
|
||||||
else if (configCmdLine.at(i) == "-no-native-gestures")
|
else if (configCmdLine.at(i) == "-no-native-gestures")
|
||||||
dictionary[ "NATIVE_GESTURES" ] = "no";
|
dictionary[ "NATIVE_GESTURES" ] = "no";
|
||||||
#if !defined(EVAL)
|
|
||||||
// Others ---------------------------------------------------
|
// Others ---------------------------------------------------
|
||||||
else if (configCmdLine.at(i) == "-widgets")
|
else if (configCmdLine.at(i) == "-widgets")
|
||||||
dictionary[ "WIDGETS" ] = "yes";
|
dictionary[ "WIDGETS" ] = "yes";
|
||||||
@ -1294,8 +1285,6 @@ void Configure::parseCmdLine()
|
|||||||
cout << "Unknown option " << configCmdLine.at(i) << endl;
|
cout << "Unknown option " << configCmdLine.at(i) << endl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure that QMAKESPEC exists in the mkspecs folder
|
// Ensure that QMAKESPEC exists in the mkspecs folder
|
||||||
@ -1419,7 +1408,6 @@ void Configure::parseCmdLine()
|
|||||||
if (dictionary["FORCE_ASSERTS"] == "yes")
|
if (dictionary["FORCE_ASSERTS"] == "yes")
|
||||||
qtConfig += "force_asserts";
|
qtConfig += "force_asserts";
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
for (QStringList::Iterator dis = disabledModules.begin(); dis != disabledModules.end(); ++dis) {
|
for (QStringList::Iterator dis = disabledModules.begin(); dis != disabledModules.end(); ++dis) {
|
||||||
modules.removeAll((*dis));
|
modules.removeAll((*dis));
|
||||||
}
|
}
|
||||||
@ -1434,10 +1422,8 @@ void Configure::parseCmdLine()
|
|||||||
|
|
||||||
if ((dictionary[ "REDO" ] != "yes") && (dictionary[ "HELP" ] != "yes"))
|
if ((dictionary[ "REDO" ] != "yes") && (dictionary[ "HELP" ] != "yes"))
|
||||||
saveCmdLine();
|
saveCmdLine();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
void Configure::validateArgs()
|
void Configure::validateArgs()
|
||||||
{
|
{
|
||||||
// Validate the specified config
|
// Validate the specified config
|
||||||
@ -1484,8 +1470,6 @@ void Configure::validateArgs()
|
|||||||
else
|
else
|
||||||
qmakeConfig += (*config) + "-config";
|
qmakeConfig += (*config) + "-config";
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// Output helper functions --------------------------------[ Start ]-
|
// Output helper functions --------------------------------[ Start ]-
|
||||||
/*!
|
/*!
|
||||||
@ -1690,7 +1674,6 @@ bool Configure::displayHelp()
|
|||||||
desc( "-hostlibdir <dir>", "Host libraries will be installed to <dir>\n(default HOSTPREFIX/lib)");
|
desc( "-hostlibdir <dir>", "Host libraries will be installed to <dir>\n(default HOSTPREFIX/lib)");
|
||||||
desc( "-hostdatadir <dir>", "Data used by qmake will be installed to <dir>\n(default HOSTPREFIX)");
|
desc( "-hostdatadir <dir>", "Data used by qmake will be installed to <dir>\n(default HOSTPREFIX)");
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
desc("\nConfigure options:\n\n");
|
desc("\nConfigure options:\n\n");
|
||||||
|
|
||||||
desc(" The defaults (*) are usually acceptable. A plus (+) denotes a default value"
|
desc(" The defaults (*) are usually acceptable. A plus (+) denotes a default value"
|
||||||
@ -1761,7 +1744,6 @@ bool Configure::displayHelp()
|
|||||||
desc("OPENVG", "no","-no-openvg", "Disables OpenVG functionality.");
|
desc("OPENVG", "no","-no-openvg", "Disables OpenVG functionality.");
|
||||||
desc("OPENVG", "yes","-openvg", "Enables OpenVG functionality.\n");
|
desc("OPENVG", "yes","-openvg", "Enables OpenVG functionality.\n");
|
||||||
desc( "-force-asserts", "Activate asserts in release mode.\n");
|
desc( "-force-asserts", "Activate asserts in release mode.\n");
|
||||||
#endif
|
|
||||||
desc( "-platform <spec>", "The operating system and compiler you are building on.\n(default %QMAKESPEC%)\n");
|
desc( "-platform <spec>", "The operating system and compiler you are building on.\n(default %QMAKESPEC%)\n");
|
||||||
desc( "-xplatform <spec>", "The operating system and compiler you are cross compiling to.\n");
|
desc( "-xplatform <spec>", "The operating system and compiler you are cross compiling to.\n");
|
||||||
desc( "", "See the README file for a list of supported operating systems and compilers.\n", false, ' ');
|
desc( "", "See the README file for a list of supported operating systems and compilers.\n", false, ' ');
|
||||||
@ -1802,18 +1784,15 @@ bool Configure::displayHelp()
|
|||||||
desc("WERROR", "yes", "-warnings-are-errors", "Make warnings be treated as errors.");
|
desc("WERROR", "yes", "-warnings-are-errors", "Make warnings be treated as errors.");
|
||||||
desc("WERROR", "no", "-no-warnings-are-errors","Make warnings be treated normally.");
|
desc("WERROR", "no", "-no-warnings-are-errors","Make warnings be treated normally.");
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
desc( "-qtnamespace <name>", "Wraps all Qt library code in 'namespace name {...}'.");
|
desc( "-qtnamespace <name>", "Wraps all Qt library code in 'namespace name {...}'.");
|
||||||
desc( "-qtlibinfix <infix>", "Renames all Qt* libs to Qt*<infix>.\n");
|
desc( "-qtlibinfix <infix>", "Renames all Qt* libs to Qt*<infix>.\n");
|
||||||
desc( "-D <define>", "Add an explicit define to the preprocessor.");
|
desc( "-D <define>", "Add an explicit define to the preprocessor.");
|
||||||
desc( "-I <includepath>", "Add an explicit include path.");
|
desc( "-I <includepath>", "Add an explicit include path.");
|
||||||
desc( "-L <librarypath>", "Add an explicit library path.");
|
desc( "-L <librarypath>", "Add an explicit library path.");
|
||||||
desc( "-l <libraryname>", "Add an explicit library name, residing in a librarypath.\n");
|
desc( "-l <libraryname>", "Add an explicit library name, residing in a librarypath.\n");
|
||||||
#endif
|
|
||||||
|
|
||||||
desc( "-help, -h, -?", "Display this information.\n");
|
desc( "-help, -h, -?", "Display this information.\n");
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
// 3rd party stuff options go below here --------------------------------------------------------------------------------
|
// 3rd party stuff options go below here --------------------------------------------------------------------------------
|
||||||
desc("Third Party Libraries:\n\n");
|
desc("Third Party Libraries:\n\n");
|
||||||
|
|
||||||
@ -1848,7 +1827,6 @@ bool Configure::displayHelp()
|
|||||||
desc("ANGLE", "yes", "-angle", "Use the ANGLE implementation of OpenGL ES 2.0.");
|
desc("ANGLE", "yes", "-angle", "Use the ANGLE implementation of OpenGL ES 2.0.");
|
||||||
desc("ANGLE", "d3d11", "-angle-d3d11", "Use the Direct3D 11-based ANGLE implementation of OpenGL ES 2.0.");
|
desc("ANGLE", "d3d11", "-angle-d3d11", "Use the Direct3D 11-based ANGLE implementation of OpenGL ES 2.0.");
|
||||||
desc("ANGLE", "no", "-no-angle", "Do not use ANGLE.\nSee http://code.google.com/p/angleproject/\n");
|
desc("ANGLE", "no", "-no-angle", "Do not use ANGLE.\nSee http://code.google.com/p/angleproject/\n");
|
||||||
#endif
|
|
||||||
// Qt\Windows only options go below here --------------------------------------------------------------------------------
|
// Qt\Windows only options go below here --------------------------------------------------------------------------------
|
||||||
desc("\nQt for Windows only:\n\n");
|
desc("\nQt for Windows only:\n\n");
|
||||||
|
|
||||||
@ -1860,7 +1838,6 @@ bool Configure::displayHelp()
|
|||||||
|
|
||||||
desc("PLUGIN_MANIFESTS", "no", "-no-plugin-manifests", "Do not embed manifests in plugins.");
|
desc("PLUGIN_MANIFESTS", "no", "-no-plugin-manifests", "Do not embed manifests in plugins.");
|
||||||
desc("PLUGIN_MANIFESTS", "yes", "-plugin-manifests", "Embed manifests in plugins.\n");
|
desc("PLUGIN_MANIFESTS", "yes", "-plugin-manifests", "Embed manifests in plugins.\n");
|
||||||
#if !defined(EVAL)
|
|
||||||
desc("BUILD_QMAKE", "no", "-no-qmake", "Do not compile qmake.");
|
desc("BUILD_QMAKE", "no", "-no-qmake", "Do not compile qmake.");
|
||||||
desc("BUILD_QMAKE", "yes", "-qmake", "Compile qmake.\n");
|
desc("BUILD_QMAKE", "yes", "-qmake", "Compile qmake.\n");
|
||||||
|
|
||||||
@ -1921,7 +1898,6 @@ bool Configure::displayHelp()
|
|||||||
desc( "", qPrintable(QString(" %1").arg(allConfigs.at(i))), false, ' ');
|
desc( "", qPrintable(QString(" %1").arg(allConfigs.at(i))), false, ' ');
|
||||||
printf("\n");
|
printf("\n");
|
||||||
*/
|
*/
|
||||||
#endif
|
|
||||||
desc( "-loadconfig <config>", "Run configure with the parameters from file configure_<config>.cache.");
|
desc( "-loadconfig <config>", "Run configure with the parameters from file configure_<config>.cache.");
|
||||||
desc( "-saveconfig <config>", "Run configure and save the parameters in file configure_<config>.cache.");
|
desc( "-saveconfig <config>", "Run configure and save the parameters in file configure_<config>.cache.");
|
||||||
desc( "-redo", "Run configure with the same parameters as last time.\n");
|
desc( "-redo", "Run configure with the same parameters as last time.\n");
|
||||||
@ -2867,7 +2843,6 @@ void Configure::generateOutputVars()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
void Configure::generateCachefile()
|
void Configure::generateCachefile()
|
||||||
{
|
{
|
||||||
// Generate .qmake.cache
|
// Generate .qmake.cache
|
||||||
@ -3217,7 +3192,6 @@ void Configure::generateQConfigPri()
|
|||||||
configFile.close();
|
configFile.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
QString Configure::addDefine(QString def)
|
QString Configure::addDefine(QString def)
|
||||||
{
|
{
|
||||||
@ -3251,7 +3225,6 @@ QString Configure::addDefine(QString def)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
void Configure::generateConfigfiles()
|
void Configure::generateConfigfiles()
|
||||||
{
|
{
|
||||||
QDir(buildPath).mkpath("src/corelib/global");
|
QDir(buildPath).mkpath("src/corelib/global");
|
||||||
@ -3457,9 +3430,7 @@ void Configure::generateConfigfiles()
|
|||||||
qdeviceFile.close();
|
qdeviceFile.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
void Configure::displayConfig()
|
void Configure::displayConfig()
|
||||||
{
|
{
|
||||||
fstream sout;
|
fstream sout;
|
||||||
@ -3669,9 +3640,7 @@ void Configure::displayConfig()
|
|||||||
cout << str << endl;
|
cout << str << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
void Configure::generateHeaders()
|
void Configure::generateHeaders()
|
||||||
{
|
{
|
||||||
if (dictionary["SYNCQT"] == "auto")
|
if (dictionary["SYNCQT"] == "auto")
|
||||||
@ -3959,7 +3928,6 @@ void Configure::buildQmake()
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
void Configure::appendMakeItem(int inList, const QString &item)
|
void Configure::appendMakeItem(int inList, const QString &item)
|
||||||
{
|
{
|
||||||
@ -4062,8 +4030,6 @@ Configure::ProjectType Configure::projectType(const QString& proFileName)
|
|||||||
return App;
|
return App;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
|
|
||||||
bool Configure::showLicense(QString orgLicenseFile)
|
bool Configure::showLicense(QString orgLicenseFile)
|
||||||
{
|
{
|
||||||
if (dictionary["LICENSE_CONFIRMED"] == "yes") {
|
if (dictionary["LICENSE_CONFIRMED"] == "yes") {
|
||||||
@ -4242,7 +4208,6 @@ void Configure::saveCmdLine()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !EVAL
|
|
||||||
|
|
||||||
bool Configure::isDone()
|
bool Configure::isDone()
|
||||||
{
|
{
|
||||||
|
@ -57,9 +57,7 @@ public:
|
|||||||
~Configure();
|
~Configure();
|
||||||
|
|
||||||
void parseCmdLine();
|
void parseCmdLine();
|
||||||
#if !defined(EVAL)
|
|
||||||
void validateArgs();
|
void validateArgs();
|
||||||
#endif
|
|
||||||
bool displayHelp();
|
bool displayHelp();
|
||||||
|
|
||||||
QString defaultTo(const QString &option);
|
QString defaultTo(const QString &option);
|
||||||
@ -70,27 +68,21 @@ public:
|
|||||||
bool verifyConfiguration();
|
bool verifyConfiguration();
|
||||||
|
|
||||||
void generateOutputVars();
|
void generateOutputVars();
|
||||||
#if !defined(EVAL)
|
|
||||||
void generateHeaders();
|
void generateHeaders();
|
||||||
void generateBuildKey();
|
void generateBuildKey();
|
||||||
void generateCachefile();
|
void generateCachefile();
|
||||||
void displayConfig();
|
void displayConfig();
|
||||||
#endif
|
|
||||||
void generateMakefiles();
|
void generateMakefiles();
|
||||||
void appendMakeItem(int inList, const QString &item);
|
void appendMakeItem(int inList, const QString &item);
|
||||||
#if !defined(EVAL)
|
|
||||||
void generateConfigfiles();
|
void generateConfigfiles();
|
||||||
void detectArch();
|
void detectArch();
|
||||||
void generateQConfigPri();
|
void generateQConfigPri();
|
||||||
void generateSystemVars();
|
void generateSystemVars();
|
||||||
#endif
|
|
||||||
void showSummary();
|
void showSummary();
|
||||||
QString firstLicensePath();
|
QString firstLicensePath();
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
bool showLicense(QString licenseFile);
|
bool showLicense(QString licenseFile);
|
||||||
void readLicense();
|
void readLicense();
|
||||||
#endif
|
|
||||||
|
|
||||||
QString addDefine(QString def);
|
QString addDefine(QString def);
|
||||||
|
|
||||||
@ -172,10 +164,8 @@ private:
|
|||||||
QString locateFile(const QString &fileName) const;
|
QString locateFile(const QString &fileName) const;
|
||||||
bool findFile(const QString &fileName) const { return !locateFile(fileName).isEmpty(); }
|
bool findFile(const QString &fileName) const { return !locateFile(fileName).isEmpty(); }
|
||||||
static QString findFileInPaths(const QString &fileName, const QStringList &paths);
|
static QString findFileInPaths(const QString &fileName, const QStringList &paths);
|
||||||
#if !defined(EVAL)
|
|
||||||
void reloadCmdLine();
|
void reloadCmdLine();
|
||||||
void saveCmdLine();
|
void saveCmdLine();
|
||||||
#endif
|
|
||||||
|
|
||||||
bool tryCompileProject(const QString &projectPath, const QString &extraOptions = QString());
|
bool tryCompileProject(const QString &projectPath, const QString &extraOptions = QString());
|
||||||
bool compilerSupportsFlag(const QString &compilerAndArgs);
|
bool compilerSupportsFlag(const QString &compilerAndArgs);
|
||||||
|
@ -55,9 +55,7 @@ int runConfigure( int argc, char** argv )
|
|||||||
return 3;
|
return 3;
|
||||||
|
|
||||||
app.parseCmdLine();
|
app.parseCmdLine();
|
||||||
#if !defined(EVAL)
|
|
||||||
app.validateArgs();
|
app.validateArgs();
|
||||||
#endif
|
|
||||||
if (!app.isOk())
|
if (!app.isOk())
|
||||||
return 3;
|
return 3;
|
||||||
if( app.displayHelp() )
|
if( app.displayHelp() )
|
||||||
@ -95,7 +93,6 @@ int runConfigure( int argc, char** argv )
|
|||||||
|
|
||||||
app.generateOutputVars();
|
app.generateOutputVars();
|
||||||
|
|
||||||
#if !defined(EVAL)
|
|
||||||
if( !app.isDone() )
|
if( !app.isDone() )
|
||||||
app.generateCachefile();
|
app.generateCachefile();
|
||||||
if( !app.isDone() )
|
if( !app.isDone() )
|
||||||
@ -110,7 +107,6 @@ int runConfigure( int argc, char** argv )
|
|||||||
app.generateQConfigPri();
|
app.generateQConfigPri();
|
||||||
if (!app.isDone())
|
if (!app.isDone())
|
||||||
app.displayConfig();
|
app.displayConfig();
|
||||||
#endif
|
|
||||||
if( !app.isDone() )
|
if( !app.isDone() )
|
||||||
app.generateMakefiles();
|
app.generateMakefiles();
|
||||||
if( !app.isDone() )
|
if( !app.isDone() )
|
||||||
|
Loading…
Reference in New Issue
Block a user