cmGlobalUnixMakefileGenerator3: Host the DefineWindowsNULL.
This commit is contained in:
parent
e9b134b95d
commit
cf7f03e522
|
@ -23,6 +23,7 @@ cmGlobalBorlandMakefileGenerator::cmGlobalBorlandMakefileGenerator()
|
|||
this->UseLinkScript = false;
|
||||
this->WindowsShell = true;
|
||||
this->IncludeDirective = "!include";
|
||||
this->DefineWindowsNULL = true;
|
||||
}
|
||||
|
||||
|
||||
|
@ -44,7 +45,6 @@ cmLocalGenerator *cmGlobalBorlandMakefileGenerator::CreateLocalGenerator(
|
|||
{
|
||||
cmLocalUnixMakefileGenerator3* lg =
|
||||
new cmLocalUnixMakefileGenerator3(this, parent);
|
||||
lg->SetDefineWindowsNULL(true);
|
||||
lg->SetMakefileVariableSize(32);
|
||||
lg->SetPassMakeflags(true);
|
||||
lg->SetUnixCD(false);
|
||||
|
|
|
@ -21,6 +21,7 @@ cmGlobalJOMMakefileGenerator::cmGlobalJOMMakefileGenerator()
|
|||
this->UseLinkScript = false;
|
||||
this->WindowsShell = true;
|
||||
this->NMake = true;
|
||||
this->DefineWindowsNULL = true;
|
||||
}
|
||||
|
||||
void cmGlobalJOMMakefileGenerator
|
||||
|
@ -52,7 +53,6 @@ cmGlobalJOMMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
|||
{
|
||||
cmLocalUnixMakefileGenerator3* lg
|
||||
= new cmLocalUnixMakefileGenerator3(this, parent);
|
||||
lg->SetDefineWindowsNULL(true);
|
||||
lg->SetMakeSilentFlag("/nologo");
|
||||
lg->SetIgnoreLibPrefix(true);
|
||||
lg->SetPassMakeflags(true);
|
||||
|
|
|
@ -21,6 +21,7 @@ cmGlobalNMakeMakefileGenerator::cmGlobalNMakeMakefileGenerator()
|
|||
this->UseLinkScript = false;
|
||||
this->WindowsShell = true;
|
||||
this->NMake = true;
|
||||
this->DefineWindowsNULL = true;
|
||||
}
|
||||
|
||||
void cmGlobalNMakeMakefileGenerator
|
||||
|
@ -52,7 +53,6 @@ cmGlobalNMakeMakefileGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
|||
{
|
||||
cmLocalUnixMakefileGenerator3* lg =
|
||||
new cmLocalUnixMakefileGenerator3(this, parent);
|
||||
lg->SetDefineWindowsNULL(true);
|
||||
lg->SetMakeSilentFlag("/nologo");
|
||||
lg->SetIgnoreLibPrefix(true);
|
||||
lg->SetPassMakeflags(true);
|
||||
|
|
|
@ -35,6 +35,7 @@ cmGlobalUnixMakefileGenerator3::cmGlobalUnixMakefileGenerator3()
|
|||
this->CommandDatabase = NULL;
|
||||
|
||||
this->IncludeDirective = "include";
|
||||
this->DefineWindowsNULL = false;
|
||||
}
|
||||
|
||||
void cmGlobalUnixMakefileGenerator3
|
||||
|
|
|
@ -134,6 +134,7 @@ public:
|
|||
virtual void ComputeTargetObjectDirectory(cmGeneratorTarget* gt) const;
|
||||
|
||||
std::string IncludeDirective;
|
||||
bool DefineWindowsNULL;
|
||||
protected:
|
||||
void WriteMainMakefile2();
|
||||
void WriteMainCMakefile();
|
||||
|
|
|
@ -27,6 +27,7 @@ cmGlobalWatcomWMakeGenerator::cmGlobalWatcomWMakeGenerator()
|
|||
#endif
|
||||
this->WatcomWMake = true;
|
||||
this->IncludeDirective = "!include";
|
||||
this->DefineWindowsNULL = true;
|
||||
}
|
||||
|
||||
void cmGlobalWatcomWMakeGenerator
|
||||
|
@ -51,7 +52,6 @@ cmGlobalWatcomWMakeGenerator::CreateLocalGenerator(cmLocalGenerator* parent)
|
|||
{
|
||||
cmLocalUnixMakefileGenerator3* lg
|
||||
= new cmLocalUnixMakefileGenerator3(this, parent);
|
||||
lg->SetDefineWindowsNULL(true);
|
||||
lg->SetMakeSilentFlag("-h");
|
||||
lg->SetIgnoreLibPrefix(true);
|
||||
lg->SetPassMakeflags(false);
|
||||
|
|
|
@ -86,7 +86,6 @@ cmLocalUnixMakefileGenerator3(cmGlobalGenerator* gg, cmLocalGenerator* parent)
|
|||
this->MakefileVariableSize = 0;
|
||||
this->IgnoreLibPrefix = false;
|
||||
this->PassMakeflags = false;
|
||||
this->DefineWindowsNULL = false;
|
||||
this->UnixCD = true;
|
||||
this->ColorMakefile = false;
|
||||
this->SkipPreprocessedSourceRules = false;
|
||||
|
@ -719,7 +718,9 @@ cmLocalUnixMakefileGenerator3
|
|||
makefileStream
|
||||
<< "# Set environment variables for the build.\n"
|
||||
<< "\n";
|
||||
if(this->DefineWindowsNULL)
|
||||
cmGlobalUnixMakefileGenerator3* gg =
|
||||
static_cast<cmGlobalUnixMakefileGenerator3*>(this->GlobalGenerator);
|
||||
if(gg->DefineWindowsNULL)
|
||||
{
|
||||
makefileStream
|
||||
<< "!IF \"$(OS)\" == \"Windows_NT\"\n"
|
||||
|
|
|
@ -80,13 +80,6 @@ public:
|
|||
void SetMakeSilentFlag(const std::string& s) { this->MakeSilentFlag = s; }
|
||||
std::string &GetMakeSilentFlag() { return this->MakeSilentFlag; }
|
||||
|
||||
/**
|
||||
* If set to true, then NULL is set to nil for non Windows_NT.
|
||||
* This uses make syntax used by nmake and borland.
|
||||
* The default is false.
|
||||
*/
|
||||
void SetDefineWindowsNULL(bool v) {this->DefineWindowsNULL = v;}
|
||||
|
||||
/**
|
||||
* If set to true, cd dir && command is used to
|
||||
* run commands in a different directory.
|
||||
|
@ -297,7 +290,6 @@ private:
|
|||
int MakefileVariableSize;
|
||||
std::string MakeSilentFlag;
|
||||
std::string ConfigurationName;
|
||||
bool DefineWindowsNULL;
|
||||
bool UnixCD;
|
||||
bool PassMakeflags;
|
||||
bool MakeCommandEscapeTargetTwice;
|
||||
|
|
Loading…
Reference in New Issue