123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- #ifndef cmCustomCommand_h
- #define cmCustomCommand_h
- #include "cmConfigure.h"
- #include "cmCustomCommandLines.h"
- #include "cmListFileCache.h"
- #include <string>
- #include <utility>
- #include <vector>
- class cmMakefile;
- class cmCustomCommand
- {
- public:
-
- cmCustomCommand();
-
- cmCustomCommand(cmMakefile const* mf,
- const std::vector<std::string>& outputs,
- const std::vector<std::string>& byproducts,
- const std::vector<std::string>& depends,
- const cmCustomCommandLines& commandLines,
- const char* comment, const char* workingDirectory);
-
- const std::vector<std::string>& GetOutputs() const;
-
- const std::vector<std::string>& GetByproducts() const;
-
- const std::vector<std::string>& GetDepends() const;
-
- std::string const& GetWorkingDirectory() const
- {
- return this->WorkingDirectory;
- }
-
- const cmCustomCommandLines& GetCommandLines() const;
-
- const char* GetComment() const;
-
- void AppendCommands(const cmCustomCommandLines& commandLines);
-
- void AppendDepends(const std::vector<std::string>& depends);
-
- bool GetEscapeOldStyle() const;
- void SetEscapeOldStyle(bool b);
-
- bool GetEscapeAllowMakeVars() const;
- void SetEscapeAllowMakeVars(bool b);
-
- cmListFileBacktrace const& GetBacktrace() const;
- typedef std::pair<std::string, std::string> ImplicitDependsPair;
- class ImplicitDependsList : public std::vector<ImplicitDependsPair>
- {
- };
- void SetImplicitDepends(ImplicitDependsList const&);
- void AppendImplicitDepends(ImplicitDependsList const&);
- ImplicitDependsList const& GetImplicitDepends() const;
-
- bool GetUsesTerminal() const;
- void SetUsesTerminal(bool b);
-
- bool GetCommandExpandLists() const;
- void SetCommandExpandLists(bool b);
-
- const std::string& GetDepfile() const;
- void SetDepfile(const std::string& depfile);
- private:
- std::vector<std::string> Outputs;
- std::vector<std::string> Byproducts;
- std::vector<std::string> Depends;
- cmCustomCommandLines CommandLines;
- cmListFileBacktrace Backtrace;
- ImplicitDependsList ImplicitDepends;
- std::string Comment;
- std::string WorkingDirectory;
- std::string Depfile;
- bool HaveComment;
- bool EscapeAllowMakeVars;
- bool EscapeOldStyle;
- bool UsesTerminal;
- bool CommandExpandLists;
- };
- #endif
|