From d1c10615e31acc487eae0c966e8c3a8e5927af84 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 18 Dec 2012 16:55:20 +0100 Subject: slash the -fast configure option it's completely broken, and i have no time to fix it properly now. configure runs no qmake -r by default any more, so it's fast enough. Change-Id: Ib2b4c68f1fc2fe95accecbe93dd5a87c9b015692 Reviewed-by: David Faure (KDE) Reviewed-by: Lars Knoll --- tools/configure/configureapp.cpp | 98 +--------------------------------------- tools/configure/configureapp.h | 1 - 2 files changed, 2 insertions(+), 97 deletions(-) (limited to 'tools') diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 88f7acfb5b..df0f82532e 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -210,7 +210,6 @@ Configure::Configure(int& argc, char** argv) dictionary[ "BUILD_QMAKE" ] = "yes"; dictionary[ "VCPROJFILES" ] = "yes"; dictionary[ "QMAKE_INTERNAL" ] = "no"; - dictionary[ "FAST" ] = "no"; dictionary[ "PROCESS" ] = "partial"; dictionary[ "WIDGETS" ] = "yes"; dictionary[ "RTTI" ] = "yes"; @@ -802,11 +801,6 @@ void Configure::parseCmdLine() dictionary[ "NATIVE_GESTURES" ] = "no"; #if !defined(EVAL) // Others --------------------------------------------------- - else if (configCmdLine.at(i) == "-fast") - dictionary[ "FAST" ] = "yes"; - else if (configCmdLine.at(i) == "-no-fast") - dictionary[ "FAST" ] = "no"; - else if (configCmdLine.at(i) == "-widgets") dictionary[ "WIDGETS" ] = "yes"; else if (configCmdLine.at(i) == "-no-widgets") @@ -1649,11 +1643,6 @@ bool Configure::displayHelp() desc("LTCG", "yes", "-ltcg", "Use Link Time Code Generation. (Release builds only)"); desc("LTCG", "no", "-no-ltcg", "Do not use Link Time Code Generation.\n"); - desc("FAST", "no", "-no-fast", "Configure Qt normally by generating Makefiles for all project files."); - desc("FAST", "yes", "-fast", "Configure Qt quickly by generating Makefiles only for library and " - "subdirectory targets. All other Makefiles are created as wrappers " - "which will in turn run qmake.\n"); - desc( "-make ", "Add part to the list of parts to be built at make time"); for (int i=0; idirectory == "tools/configure") - continue; // don't overwrite our own Makefile - - QString dirPath = it->directory + '/'; - QString projectName = it->proFile; - QString makefileName = buildPath + "/" + dirPath + it->target; - - // For shadowbuilds, we need to create the path first - QDir buildPathDir(buildPath); - if (sourcePath != buildPath && !buildPathDir.exists(dirPath)) - buildPathDir.mkpath(dirPath); - - QStringList args; - - args << QDir::toNativeSeparators(buildPath + "/bin/qmake.exe"); - args << sourcePath + "/" + dirPath + projectName; - - cout << "For " << qPrintable(QDir::toNativeSeparators(dirPath + projectName)) << endl; - args << "-o"; - args << it->target; - - QDir::setCurrent(dirPath); - - QFile file(makefileName); - if (!file.open(QFile::WriteOnly | QFile::Text)) { - printf("failed on dirPath=%s, makefile=%s\n", - qPrintable(QDir::toNativeSeparators(dirPath)), - qPrintable(QDir::toNativeSeparators(makefileName))); - continue; - } - QTextStream txt(&file); - txt << "all:\n"; - txt << "\t" << args.join(' ') << "\n"; - txt << "\t$(MAKE) -$(MAKEFLAGS) -f " << it->target << "\n"; - txt << "first: all\n"; - txt << "qmake: FORCE\n"; - txt << "\t" << args.join(' ') << "\n"; - txt << "FORCE:\n"; - } - } } QDir::setCurrent(pwd); } else { diff --git a/tools/configure/configureapp.h b/tools/configure/configureapp.h index dc79e3ff58..3f4987f689 100644 --- a/tools/configure/configureapp.h +++ b/tools/configure/configureapp.h @@ -85,7 +85,6 @@ public: void generateSystemVars(); #endif void showSummary(); - void findProjects( const QString& dirName ); QString firstLicensePath(); #if !defined(EVAL) -- cgit v1.2.3