diff options
author | Brad King <brad.king@kitware.com> | 2005-02-25 16:23:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-25 16:23:17 (GMT) |
commit | d18722a2126e9c97b0de2fbe2eb2e417e0537e6c (patch) | |
tree | 9b88d5a6da4b1a44f299258a9bfad6dd6f54acf1 /Source/cmLocalUnixMakefileGenerator2.h | |
parent | b40219372efc70439cd5241aabc9c4b9cd2e9adf (diff) | |
download | CMake-d18722a2126e9c97b0de2fbe2eb2e417e0537e6c.zip CMake-d18722a2126e9c97b0de2fbe2eb2e417e0537e6c.tar.gz CMake-d18722a2126e9c97b0de2fbe2eb2e417e0537e6c.tar.bz2 |
ENH: Replaced OutputEcho/pre-echo/post-echo with AppendEcho. This allows for more flexible echo specifications and better preserves echo text.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator2.h')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator2.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.h b/Source/cmLocalUnixMakefileGenerator2.h index 893dc7f..2fa163c 100644 --- a/Source/cmLocalUnixMakefileGenerator2.h +++ b/Source/cmLocalUnixMakefileGenerator2.h @@ -45,6 +45,9 @@ public: implementations. */ void SetEmptyCommand(const char* cmd); + /** Set whether the echo command needs its argument quoted. */ + void SetEchoNeedsQuote(bool b) { m_EchoNeedsQuote = b; } + /** * Set to true if the shell being used is the windows shell. * This controls if statements in the makefile and the SHELL variable. @@ -114,11 +117,9 @@ protected: std::string& depMarkFile); void WriteMakeRule(std::ostream& os, const char* comment, - const char* preEcho, const char* target, const std::vector<std::string>& depends, - const std::vector<std::string>& commands, - const char* postEcho=0); + const std::vector<std::string>& commands); void WriteDivider(std::ostream& os); void WriteDisclaimer(std::ostream& os); void WriteMakeVariables(std::ostream& makefileStream); @@ -216,9 +217,10 @@ protected: const cmCustomCommand& cc); void AppendCleanCommand(std::vector<std::string>& commands, const std::vector<std::string>& files); + void AppendEcho(std::vector<std::string>& commands, + const char* text); //========================================================================== - void OutputEcho(std::ostream& fout, const char* msg); bool SamePath(const char* path1, const char* path2); std::string GetBaseTargetName(const cmTarget& t); void GetLibraryNames(const cmTarget& t, @@ -268,6 +270,9 @@ private: bool m_PassMakeflags; //========================================================================== + // Flag for whether echo command needs quotes. + bool m_EchoNeedsQuote; + // List of make rule files that need to be included by the makefile. std::vector<std::string> m_IncludeRuleFiles; |