mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
Generalize cmCustomCommandGenerator to more fields
Until now the cmCustomCommandGenerator was used only to compute the command lines of a custom command. Generalize it to get the comment, working directory, dependencies, and outputs of custom commands. Update use in all generators to support this.
This commit is contained in:
@@ -33,9 +33,14 @@ public:
|
||||
const std::string& config,
|
||||
cmMakefile* mf);
|
||||
~cmCustomCommandGenerator();
|
||||
cmCustomCommand const& GetCC() const { return this->CC; }
|
||||
unsigned int GetNumberOfCommands() const;
|
||||
std::string GetCommand(unsigned int c) const;
|
||||
void AppendArguments(unsigned int c, std::string& cmd) const;
|
||||
const char* GetComment() const;
|
||||
std::string GetWorkingDirectory() const;
|
||||
std::vector<std::string> const& GetOutputs() const;
|
||||
std::vector<std::string> const& GetDepends() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user