unbreak "aux" template for mingw & msvc, take 2
of course, we should stub out everything related to TARGET - only the generic "all" and "first" targets including their deps should be emitted. amends af2847260. Change-Id: I8ed7a550b8022c69328d2e16dbd078928d176964 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
5b05c37845
commit
0810d48bc4
@ -313,7 +313,12 @@ void MingwMakefileGenerator::writeBuildRulesPart(QTextStream &t)
|
|||||||
{
|
{
|
||||||
t << "first: all\n";
|
t << "first: all\n";
|
||||||
t << "all: " << escapeDependencyPath(fileFixify(Option::output.fileName()))
|
t << "all: " << escapeDependencyPath(fileFixify(Option::output.fileName()))
|
||||||
<< ' ' << depVar("ALL_DEPS") << " $(DESTDIR_TARGET)\n\n";
|
<< ' ' << depVar("ALL_DEPS");
|
||||||
|
if (project->first("TEMPLATE") == "aux") {
|
||||||
|
t << "\n\n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
t << " $(DESTDIR_TARGET)\n\n";
|
||||||
t << "$(DESTDIR_TARGET): " << depVar("PRE_TARGETDEPS") << " $(OBJECTS) " << depVar("POST_TARGETDEPS");
|
t << "$(DESTDIR_TARGET): " << depVar("PRE_TARGETDEPS") << " $(OBJECTS) " << depVar("POST_TARGETDEPS");
|
||||||
if(!project->isEmpty("QMAKE_PRE_LINK"))
|
if(!project->isEmpty("QMAKE_PRE_LINK"))
|
||||||
t << "\n\t" <<var("QMAKE_PRE_LINK");
|
t << "\n\t" <<var("QMAKE_PRE_LINK");
|
||||||
@ -323,7 +328,7 @@ void MingwMakefileGenerator::writeBuildRulesPart(QTextStream &t)
|
|||||||
} else {
|
} else {
|
||||||
t << "\n\t" << objectsLinkLine << " " ;
|
t << "\n\t" << objectsLinkLine << " " ;
|
||||||
}
|
}
|
||||||
} else if (project->first("TEMPLATE") != "aux") {
|
} else {
|
||||||
t << "\n\t$(LINKER) $(LFLAGS) " << var("QMAKE_LINK_O_FLAG") << "$(DESTDIR_TARGET) " << objectsLinkLine << " $(LIBS)";
|
t << "\n\t$(LINKER) $(LFLAGS) " << var("QMAKE_LINK_O_FLAG") << "$(DESTDIR_TARGET) " << objectsLinkLine << " $(LIBS)";
|
||||||
}
|
}
|
||||||
if(!project->isEmpty("QMAKE_POST_LINK"))
|
if(!project->isEmpty("QMAKE_POST_LINK"))
|
||||||
|
@ -552,7 +552,12 @@ void NmakeMakefileGenerator::writeBuildRulesPart(QTextStream &t)
|
|||||||
|
|
||||||
t << "first: all\n";
|
t << "first: all\n";
|
||||||
t << "all: " << escapeDependencyPath(fileFixify(Option::output.fileName()))
|
t << "all: " << escapeDependencyPath(fileFixify(Option::output.fileName()))
|
||||||
<< ' ' << depVar("ALL_DEPS") << " $(DESTDIR_TARGET)\n\n";
|
<< ' ' << depVar("ALL_DEPS");
|
||||||
|
if (templateName == "aux") {
|
||||||
|
t << "\n\n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
t << " $(DESTDIR_TARGET)\n\n";
|
||||||
t << "$(DESTDIR_TARGET): " << depVar("PRE_TARGETDEPS") << " $(OBJECTS) " << depVar("POST_TARGETDEPS");
|
t << "$(DESTDIR_TARGET): " << depVar("PRE_TARGETDEPS") << " $(OBJECTS) " << depVar("POST_TARGETDEPS");
|
||||||
|
|
||||||
if(!project->isEmpty("QMAKE_PRE_LINK"))
|
if(!project->isEmpty("QMAKE_PRE_LINK"))
|
||||||
@ -561,7 +566,7 @@ void NmakeMakefileGenerator::writeBuildRulesPart(QTextStream &t)
|
|||||||
t << "\n\t$(LIBAPP) $(LIBFLAGS) " << var("QMAKE_LINK_O_FLAG") << "$(DESTDIR_TARGET) @<<\n\t "
|
t << "\n\t$(LIBAPP) $(LIBFLAGS) " << var("QMAKE_LINK_O_FLAG") << "$(DESTDIR_TARGET) @<<\n\t "
|
||||||
<< "$(OBJECTS)"
|
<< "$(OBJECTS)"
|
||||||
<< "\n<<";
|
<< "\n<<";
|
||||||
} else if (templateName != "aux") {
|
} else {
|
||||||
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"))
|
||||||
|
@ -575,7 +575,8 @@ void Win32MakefileGenerator::writeStandardParts(QTextStream &t)
|
|||||||
t << "####### Build rules\n\n";
|
t << "####### Build rules\n\n";
|
||||||
writeBuildRulesPart(t);
|
writeBuildRulesPart(t);
|
||||||
|
|
||||||
if(project->isActiveConfig("shared") && !project->values("DLLDESTDIR").isEmpty()) {
|
if (project->first("TEMPLATE") != "aux") {
|
||||||
|
if (project->isActiveConfig("shared") && !project->values("DLLDESTDIR").isEmpty()) {
|
||||||
const ProStringList &dlldirs = project->values("DLLDESTDIR");
|
const ProStringList &dlldirs = project->values("DLLDESTDIR");
|
||||||
for (ProStringList::ConstIterator dlldir = dlldirs.begin(); dlldir != dlldirs.end(); ++dlldir) {
|
for (ProStringList::ConstIterator dlldir = dlldirs.begin(); dlldir != dlldirs.end(); ++dlldir) {
|
||||||
t << "\t-$(COPY_FILE) $(DESTDIR_TARGET) "
|
t << "\t-$(COPY_FILE) $(DESTDIR_TARGET) "
|
||||||
@ -585,6 +586,7 @@ void Win32MakefileGenerator::writeStandardParts(QTextStream &t)
|
|||||||
t << endl;
|
t << endl;
|
||||||
|
|
||||||
writeRcFilePart(t);
|
writeRcFilePart(t);
|
||||||
|
}
|
||||||
|
|
||||||
writeMakeQmake(t);
|
writeMakeQmake(t);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user