cmGlobalUnixMakefileGenerator3: Host the PassMakeflags.
This commit is contained in:
parent
14f171c3ba
commit
a97df5e135
|
@ -24,6 +24,7 @@ cmGlobalBorlandMakefileGenerator::cmGlobalBorlandMakefileGenerator()
|
||||||
this->WindowsShell = true;
|
this->WindowsShell = true;
|
||||||
this->IncludeDirective = "!include";
|
this->IncludeDirective = "!include";
|
||||||
this->DefineWindowsNULL = true;
|
this->DefineWindowsNULL = true;
|
||||||
|
this->PassMakeflags = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,7 +47,6 @@ cmLocalGenerator *cmGlobalBorlandMakefileGenerator::CreateLocalGenerator(
|
||||||
cmLocalUnixMakefileGenerator3* lg =
|
cmLocalUnixMakefileGenerator3* lg =
|
||||||
new cmLocalUnixMakefileGenerator3(this, parent);
|
new cmLocalUnixMakefileGenerator3(this, parent);
|
||||||
lg->SetMakefileVariableSize(32);
|
lg->SetMakefileVariableSize(32);
|
||||||
lg->SetPassMakeflags(true);
|
|
||||||
lg->SetUnixCD(false);
|
lg->SetUnixCD(false);
|
||||||
lg->SetMakeCommandEscapeTargetTwice(true);
|
lg->SetMakeCommandEscapeTargetTwice(true);
|
||||||
lg->SetBorlandMakeCurlyHack(true);
|
lg->SetBorlandMakeCurlyHack(true);
|
||||||
|
|
|
@ -22,6 +22,7 @@ cmGlobalJOMMakefileGenerator::cmGlobalJOMMakefileGenerator()
|
||||||
this->WindowsShell = true;
|
this->WindowsShell = true;
|
||||||
this->NMake = true;
|
this->NMake = true;
|
||||||
this->DefineWindowsNULL = true;
|
this->DefineWindowsNULL = true;
|
||||||
|
this->PassMakeflags = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmGlobalJOMMakefileGenerator
|
void cmGlobalJOMMakefileGenerator
|
||||||
|
@ -55,7 +56,6 @@ cmGlobalJOMMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
= new cmLocalUnixMakefileGenerator3(this, parent);
|
= new cmLocalUnixMakefileGenerator3(this, parent);
|
||||||
lg->SetMakeSilentFlag("/nologo");
|
lg->SetMakeSilentFlag("/nologo");
|
||||||
lg->SetIgnoreLibPrefix(true);
|
lg->SetIgnoreLibPrefix(true);
|
||||||
lg->SetPassMakeflags(true);
|
|
||||||
lg->SetUnixCD(false);
|
lg->SetUnixCD(false);
|
||||||
return lg;
|
return lg;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,7 @@ cmGlobalNMakeMakefileGenerator::cmGlobalNMakeMakefileGenerator()
|
||||||
this->WindowsShell = true;
|
this->WindowsShell = true;
|
||||||
this->NMake = true;
|
this->NMake = true;
|
||||||
this->DefineWindowsNULL = true;
|
this->DefineWindowsNULL = true;
|
||||||
|
this->PassMakeflags = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmGlobalNMakeMakefileGenerator
|
void cmGlobalNMakeMakefileGenerator
|
||||||
|
@ -55,7 +56,6 @@ cmGlobalNMakeMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
||||||
new cmLocalUnixMakefileGenerator3(this, parent);
|
new cmLocalUnixMakefileGenerator3(this, parent);
|
||||||
lg->SetMakeSilentFlag("/nologo");
|
lg->SetMakeSilentFlag("/nologo");
|
||||||
lg->SetIgnoreLibPrefix(true);
|
lg->SetIgnoreLibPrefix(true);
|
||||||
lg->SetPassMakeflags(true);
|
|
||||||
lg->SetUnixCD(false);
|
lg->SetUnixCD(false);
|
||||||
return lg;
|
return lg;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ cmGlobalUnixMakefileGenerator3::cmGlobalUnixMakefileGenerator3()
|
||||||
|
|
||||||
this->IncludeDirective = "include";
|
this->IncludeDirective = "include";
|
||||||
this->DefineWindowsNULL = false;
|
this->DefineWindowsNULL = false;
|
||||||
|
this->PassMakeflags = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmGlobalUnixMakefileGenerator3
|
void cmGlobalUnixMakefileGenerator3
|
||||||
|
|
|
@ -135,6 +135,7 @@ public:
|
||||||
|
|
||||||
std::string IncludeDirective;
|
std::string IncludeDirective;
|
||||||
bool DefineWindowsNULL;
|
bool DefineWindowsNULL;
|
||||||
|
bool PassMakeflags;
|
||||||
protected:
|
protected:
|
||||||
void WriteMainMakefile2();
|
void WriteMainMakefile2();
|
||||||
void WriteMainCMakefile();
|
void WriteMainCMakefile();
|
||||||
|
|
|
@ -85,7 +85,6 @@ cmLocalUnixMakefileGenerator3(cmGlobalGenerator* gg, cmLocalGenerator* parent)
|
||||||
{
|
{
|
||||||
this->MakefileVariableSize = 0;
|
this->MakefileVariableSize = 0;
|
||||||
this->IgnoreLibPrefix = false;
|
this->IgnoreLibPrefix = false;
|
||||||
this->PassMakeflags = false;
|
|
||||||
this->UnixCD = true;
|
this->UnixCD = true;
|
||||||
this->ColorMakefile = false;
|
this->ColorMakefile = false;
|
||||||
this->SkipPreprocessedSourceRules = false;
|
this->SkipPreprocessedSourceRules = false;
|
||||||
|
@ -2154,7 +2153,9 @@ cmLocalUnixMakefileGenerator3
|
||||||
// sub-invoked makes via an environment variable. However, some
|
// sub-invoked makes via an environment variable. However, some
|
||||||
// makes do not support that, so you have to pass the flags
|
// makes do not support that, so you have to pass the flags
|
||||||
// explicitly.
|
// explicitly.
|
||||||
if(this->GetPassMakeflags())
|
cmGlobalUnixMakefileGenerator3* gg =
|
||||||
|
static_cast<cmGlobalUnixMakefileGenerator3*>(this->GlobalGenerator);
|
||||||
|
if(gg->PassMakeflags)
|
||||||
{
|
{
|
||||||
cmd += "-$(MAKEFLAGS) ";
|
cmd += "-$(MAKEFLAGS) ";
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,14 +66,6 @@ public:
|
||||||
// write the main variables used by the makefiles
|
// write the main variables used by the makefiles
|
||||||
void WriteMakeVariables(std::ostream& makefileStream);
|
void WriteMakeVariables(std::ostream& makefileStream);
|
||||||
|
|
||||||
/**
|
|
||||||
* If true, then explicitly pass MAKEFLAGS on the make all target for makes
|
|
||||||
* that do not use environment variables.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
void SetPassMakeflags(bool s){this->PassMakeflags = s;}
|
|
||||||
bool GetPassMakeflags() { return this->PassMakeflags; }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the flag used to keep the make program silent.
|
* Set the flag used to keep the make program silent.
|
||||||
*/
|
*/
|
||||||
|
@ -291,7 +283,6 @@ private:
|
||||||
std::string MakeSilentFlag;
|
std::string MakeSilentFlag;
|
||||||
std::string ConfigurationName;
|
std::string ConfigurationName;
|
||||||
bool UnixCD;
|
bool UnixCD;
|
||||||
bool PassMakeflags;
|
|
||||||
bool MakeCommandEscapeTargetTwice;
|
bool MakeCommandEscapeTargetTwice;
|
||||||
bool BorlandMakeCurlyHack;
|
bool BorlandMakeCurlyHack;
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
Loading…
Reference in New Issue