make depend_prl more thorough; introduce fast_depend_prl
depend_prl would so far only ensure that the dependency existed, not that it would be up to date. this is of only limited value, so make sure that the dependencies are always updated. as this is somewhat expensive (every dependency's makefile will be entered as many times as it is used, plus one), provide an opt-out by adding fast_depend_prl. Task-number: QTBUG-29486 Change-Id: Ifa2e100bc4c269a403ab620927bfe5c7efe9a435 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>bb10
parent
b36cdba339
commit
be1116fe90
|
|
@ -349,7 +349,8 @@ UnixMakefileGenerator::writeMakeParts(QTextStream &t)
|
|||
<< project->first("QMAKE_EXTENSION_STATICLIB") << " ";
|
||||
t << endl << endl;
|
||||
}
|
||||
if(project->isActiveConfig("depend_prl") && !project->isEmpty("QMAKE_PRL_INTERNAL_FILES")) {
|
||||
if ((project->isActiveConfig("depend_prl") || project->isActiveConfig("fast_depend_prl"))
|
||||
&& !project->isEmpty("QMAKE_PRL_INTERNAL_FILES")) {
|
||||
const ProStringList &l = project->values("QMAKE_PRL_INTERNAL_FILES");
|
||||
ProStringList::ConstIterator it;
|
||||
for(it = l.begin(); it != l.end(); ++it) {
|
||||
|
|
@ -361,8 +362,12 @@ UnixMakefileGenerator::writeMakeParts(QTextStream &t)
|
|||
dir = (*it).left(slsh + 1);
|
||||
QString targ = dir + libinfo.first("QMAKE_PRL_TARGET");
|
||||
target_deps += " " + targ;
|
||||
t << targ << ":" << "\n\t"
|
||||
<< "@echo \"Creating '" << targ << "'\"" << "\n\t"
|
||||
t << targ;
|
||||
if (project->isActiveConfig("fast_depend_prl"))
|
||||
t << ":\n\t@echo \"Creating '";
|
||||
else
|
||||
t << ": FORCE\n\t@echo \"Creating/updating '";
|
||||
t << targ << "'\"" << "\n\t"
|
||||
<< "(cd " << libinfo.first("QMAKE_PRL_BUILD_DIR") << ";"
|
||||
<< "$(MAKE))" << endl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue