unbreak "aux" template for mingw & msvc
we cannot just completely stub it out, as then there are no dependencies on whatever targets we actually *want* to be built. Change-Id: I32a92fa937d099c153a0082feae5d23e3998ba48 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
parent
e243f4e291
commit
af2847260c
@ -383,12 +383,6 @@ void MingwMakefileGenerator::writeObjectsPart(QTextStream &t)
|
|||||||
|
|
||||||
void MingwMakefileGenerator::writeBuildRulesPart(QTextStream &t)
|
void MingwMakefileGenerator::writeBuildRulesPart(QTextStream &t)
|
||||||
{
|
{
|
||||||
if (project->first("TEMPLATE") == "aux") {
|
|
||||||
t << "first:" << endl;
|
|
||||||
t << "all:" << endl;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
t << "first: all" << endl;
|
t << "first: all" << endl;
|
||||||
t << "all: " << escapeDependencyPath(fileFixify(Option::output.fileName())) << " " << valGlue(escapeDependencyPaths(project->values("ALL_DEPS"))," "," "," ") << " $(DESTDIR_TARGET)" << endl << endl;
|
t << "all: " << escapeDependencyPath(fileFixify(Option::output.fileName())) << " " << valGlue(escapeDependencyPaths(project->values("ALL_DEPS"))," "," "," ") << " $(DESTDIR_TARGET)" << endl << endl;
|
||||||
t << "$(DESTDIR_TARGET): " << var("PRE_TARGETDEPS") << " $(OBJECTS) " << var("POST_TARGETDEPS");
|
t << "$(DESTDIR_TARGET): " << var("PRE_TARGETDEPS") << " $(OBJECTS) " << var("POST_TARGETDEPS");
|
||||||
@ -400,7 +394,7 @@ void MingwMakefileGenerator::writeBuildRulesPart(QTextStream &t)
|
|||||||
} else {
|
} else {
|
||||||
t << "\n\t" << objectsLinkLine << " " ;
|
t << "\n\t" << objectsLinkLine << " " ;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (project->first("TEMPLATE") != "aux") {
|
||||||
t << "\n\t" << "$(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) " << objectsLinkLine << " " << " $(LIBS)";
|
t << "\n\t" << "$(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) " << objectsLinkLine << " " << " $(LIBS)";
|
||||||
}
|
}
|
||||||
if(!project->isEmpty("QMAKE_POST_LINK"))
|
if(!project->isEmpty("QMAKE_POST_LINK"))
|
||||||
|
@ -358,11 +358,6 @@ void NmakeMakefileGenerator::writeImplicitRulesPart(QTextStream &t)
|
|||||||
void NmakeMakefileGenerator::writeBuildRulesPart(QTextStream &t)
|
void NmakeMakefileGenerator::writeBuildRulesPart(QTextStream &t)
|
||||||
{
|
{
|
||||||
const QString templateName = project->first("TEMPLATE");
|
const QString templateName = project->first("TEMPLATE");
|
||||||
if (templateName == "aux") {
|
|
||||||
t << "first:" << endl;
|
|
||||||
t << "all:" << endl;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
t << "first: all" << endl;
|
t << "first: all" << endl;
|
||||||
t << "all: " << fileFixify(Option::output.fileName()) << " " << varGlue("ALL_DEPS"," "," "," ") << "$(DESTDIR_TARGET)" << endl << endl;
|
t << "all: " << fileFixify(Option::output.fileName()) << " " << varGlue("ALL_DEPS"," "," "," ") << "$(DESTDIR_TARGET)" << endl << endl;
|
||||||
@ -374,7 +369,7 @@ void NmakeMakefileGenerator::writeBuildRulesPart(QTextStream &t)
|
|||||||
t << "\n\t" << "$(LIBAPP) $(LIBFLAGS) /OUT:$(DESTDIR_TARGET) @<<" << "\n\t "
|
t << "\n\t" << "$(LIBAPP) $(LIBFLAGS) /OUT:$(DESTDIR_TARGET) @<<" << "\n\t "
|
||||||
<< "$(OBJECTS)"
|
<< "$(OBJECTS)"
|
||||||
<< "\n<<";
|
<< "\n<<";
|
||||||
} else {
|
} else if (templateName != "aux") {
|
||||||
const bool embedManifest = ((templateName == "app" && project->isActiveConfig("embed_manifest_exe"))
|
const bool embedManifest = ((templateName == "app" && project->isActiveConfig("embed_manifest_exe"))
|
||||||
|| (templateName == "lib" && project->isActiveConfig("embed_manifest_dll")
|
|| (templateName == "lib" && project->isActiveConfig("embed_manifest_dll")
|
||||||
&& !(project->isActiveConfig("plugin") && project->isActiveConfig("no_plugin_manifest"))
|
&& !(project->isActiveConfig("plugin") && project->isActiveConfig("no_plugin_manifest"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user