diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-04-19 21:39:03 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-04-19 21:39:03 (GMT) |
commit | b5f62159ca57dfa074b3985e17df2b2a29ab6d0f (patch) | |
tree | afc12bc65ac93fbba86f360ca8d73eef2fba4867 /Source/cmMakefile.h | |
parent | 24bce99cbff13cb337c543dce55f056351caa2fc (diff) | |
download | CMake-b5f62159ca57dfa074b3985e17df2b2a29ab6d0f.zip CMake-b5f62159ca57dfa074b3985e17df2b2a29ab6d0f.tar.gz CMake-b5f62159ca57dfa074b3985e17df2b2a29ab6d0f.tar.bz2 |
added if else endif add definition
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index fd12074..604a9ed 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -21,6 +21,7 @@ #include "cmSystemTools.h" #include "cmSourceGroup.h" #include "cmTarget.h" +class cmFunctionBlocker; class cmCommand; class cmMakefileGenerator; @@ -55,6 +56,15 @@ public: void AddCommand(cmCommand* ); /** + * Add a function blocker to this makefile + */ + void AddFunctionBlocker(cmFunctionBlocker *fb) + { m_FunctionBlockers.insert(fb);} + void RemoveFunctionBlocker(cmFunctionBlocker *fb) + { m_FunctionBlockers.erase(fb);} + void RemoveFunctionBlocker(const char *name, const std::vector<std::string> &args); + + /** * Specify the makefile generator. This is platform/compiler * dependent, although the interface is through a generic * superclass. @@ -69,7 +79,7 @@ public: /** * Print the object state to std::cout. */ - void Print(); + void Print() const; /** * Add a custom command to the build. @@ -465,7 +475,7 @@ protected: RegisteredCommandsMap m_Commands; std::vector<cmCommand*> m_UsedCommands; cmMakefileGenerator* m_MakefileGenerator; - + bool IsFunctionBlocked(const char *name, std::vector<std::string> &args) const; private: /** @@ -477,10 +487,10 @@ private: void ReadClasses(std::ifstream& fin, bool t); friend class cmMakeDepend; // make depend needs direct access // to the m_Classes array - void PrintStringVector(const char* s, std::vector<std::string>& v); + void PrintStringVector(const char* s, const std::vector<std::string>& v) const; void AddDefaultCommands(); void AddDefaultDefinitions(); - + std::set<cmFunctionBlocker *> m_FunctionBlockers; }; |