summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-07-27 13:49:37 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-07-27 13:49:37 (GMT)
commitf85f919dbc37e01f9ef8dfdc9e4db9e413fbf20e (patch)
tree48a12d7d807566cc6de90bd986d2b5de23012973 /Source/cmLocalUnixMakefileGenerator3.h
parent90cefde755e6bc4b04ce74ae9b886f2ce3633e96 (diff)
downloadCMake-f85f919dbc37e01f9ef8dfdc9e4db9e413fbf20e.zip
CMake-f85f919dbc37e01f9ef8dfdc9e4db9e413fbf20e.tar.gz
CMake-f85f919dbc37e01f9ef8dfdc9e4db9e413fbf20e.tar.bz2
ENH: reduce the number of files produced still needs a bit more cleanup
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.h')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h
index df27dad..97f7f10 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -140,8 +140,9 @@ public:
// List the files for which to check dependency integrity. Each
// language has its own list because integrity may be checked
// differently.
- struct IntegrityCheckSet: public std::set<cmStdString> {};
- std::map<cmStdString, IntegrityCheckSet> &GetIntegrityCheckSet()
+ struct IntegrityCheckSet: public std::set<cmSourceFile *> {};
+ struct IntegrityCheckSetMap: public std::map<cmStdString, IntegrityCheckSet> {};
+ std::map<cmStdString, IntegrityCheckSetMap> &GetIntegrityCheckSet()
{ return m_CheckDependFiles;}
void AppendTargetDepends(std::vector<std::string>& depends,
@@ -155,6 +156,9 @@ public:
protected:
+ // write the depend info
+ void WriteDependLanguageInfo(std::ostream& cmakefileStream, cmTarget &tgt);
+
// write the target rules for the local Makefile into the stream
void WriteLocalMakefileTargets(std::ostream& ruleFileStream);
@@ -195,22 +199,24 @@ protected:
// create the rule files for an object
void WriteObjectRuleFiles(cmTarget& target,
- const cmSourceFile& source,
- std::vector<std::string>& objects);
+ cmSourceFile& source,
+ std::vector<std::string>& objects,
+ std::ostream &filestr);
// write the build rule for an object
void WriteObjectBuildFile(std::string &obj,
const char *lang,
cmTarget& target,
- const cmSourceFile& source,
+ cmSourceFile& source,
std::vector<std::string>& depends,
- std::string &depMakeFile);
+ std::string &depMakeFile,
+ std::ostream &filestr);
// write the depend.make file for an object
void WriteObjectDependRules(std::ostream& ruleFileStream,
std::string& obj,
const char *lang,
- const cmSourceFile& source,
+ cmSourceFile& source,
std::vector<std::string>& depends,
std::string& depMarkFile);
@@ -222,13 +228,12 @@ protected:
// return the appropriate depends checker
cmDepends* GetDependsChecker(const std::string& lang,
- const char* dir,
- const char* objFile,
bool verbose);
- std::string GenerateCustomRuleFile(const cmCustomCommand& cc,
- const char *dir);
+ void GenerateCustomRuleFile(const cmCustomCommand& cc,
+ const char *dir,
+ std::ostream &ruleStream);
// these three make some simple changes and then call WriteLibraryRule
void WriteStaticLibraryRule(std::ostream& ruleFileStream,
@@ -327,7 +332,7 @@ protected:
void ComputeHomeRelativeOutputPath();
private:
- std::map<cmStdString, IntegrityCheckSet> m_CheckDependFiles;
+ std::map<cmStdString, IntegrityCheckSetMap> m_CheckDependFiles;
//==========================================================================
// Configuration settings.