purge "dumping all variables" debug loops
the as-we-go dump is sufficient (and usually necessary to actually find the problem). if only the summary is interesting, the -E option can be used now. Change-Id: I9e34c6db9dcb99b38013c4d0cb80b8cb88ca36b5 Reviewed-by: Mark Brand <mabrand@mabrand.nl>
This commit is contained in:
parent
2ca26162f8
commit
104ee69216
@ -166,16 +166,6 @@ ProjectBuilderMakefileGenerator::writeSubDirs(QTextStream &t)
|
||||
fprintf(stderr, "Cannot find directory: %s\n", dir.toLatin1().constData());
|
||||
}
|
||||
if(tmp_proj.read(fn)) {
|
||||
if(Option::debug_level) {
|
||||
debug_msg(1, "Dumping all variables:");
|
||||
const QHash<QString, QStringList> &vars = tmp_proj.variables();
|
||||
for (QHash<QString, QStringList>::ConstIterator it = vars.begin();
|
||||
it != vars.end(); ++it) {
|
||||
if(it.key().left(1) != "." && !it.value().isEmpty())
|
||||
debug_msg(1, "%s: %s === %s", fn.toLatin1().constData(), it.key().toLatin1().constData(),
|
||||
it.value().join(" :: ").toLatin1().constData());
|
||||
}
|
||||
}
|
||||
if(tmp_proj.first("TEMPLATE") == "subdirs") {
|
||||
QMakeProject *pp = new QMakeProject(&tmp_proj);
|
||||
pb_subdirs += new ProjectBuilderSubDirs(pp, dir);
|
||||
|
@ -214,17 +214,6 @@ BuildsMetaMakefileGenerator::write(const QString &oldpwd)
|
||||
if(!ret)
|
||||
Option::output.remove();
|
||||
}
|
||||
|
||||
// debugging
|
||||
if(Option::debug_level) {
|
||||
debug_msg(1, "Dumping all variables:");
|
||||
QHash<QString, QStringList> &vars = project->variables();
|
||||
for(QHash<QString, QStringList>::Iterator it = vars.begin(); it != vars.end(); ++it) {
|
||||
if(!it.key().startsWith(".") && !it.value().isEmpty())
|
||||
debug_msg(1, "%s === %s", it.key().toLatin1().constData(),
|
||||
it.value().join(" :: ").toLatin1().constData());
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
@ -483,16 +483,6 @@ void VcprojGenerator::writeSubDirs(QTextStream &t)
|
||||
tmp_vcproj.setProjectFile(&tmp_proj);
|
||||
Option::qmake_mode = old_mode;
|
||||
Option::output_dir = old_output_dir;
|
||||
if(Option::debug_level) {
|
||||
debug_msg(1, "Dumping all variables:");
|
||||
const QHash<QString, QStringList> &vars = tmp_proj.variables();
|
||||
for (QHash<QString, QStringList>::ConstIterator it = vars.begin();
|
||||
it != vars.end(); ++it) {
|
||||
if(it.key().left(1) != "." && !it.value().isEmpty())
|
||||
debug_msg(1, "%s: %s === %s", fn.toLatin1().constData(), it.key().toLatin1().constData(),
|
||||
it.value().join(" :: ").toLatin1().constData());
|
||||
}
|
||||
}
|
||||
|
||||
// We assume project filename is [QMAKE_PROJECT_NAME].vcproj
|
||||
QString vcproj = unescapeFilePath(tmp_vcproj.project->first("QMAKE_PROJECT_NAME") + project->first("VCPROJ_EXTENSION"));
|
||||
|
Loading…
Reference in New Issue
Block a user