summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommand.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2003-06-03 14:30:23 (GMT)
committerKen Martin <ken.martin@kitware.com>2003-06-03 14:30:23 (GMT)
commitba68f771b369e65476e7ce12aa8dd1cf18d7f529 (patch)
tree4580bb0cd83663ac32e7234b47f1a03881a2b709 /Source/cmCustomCommand.h
parent4f55e4870d0dea6f700943ccd4bac958c478cff4 (diff)
downloadCMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.zip
CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.tar.gz
CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.tar.bz2
yikes added new custom command support
Diffstat (limited to 'Source/cmCustomCommand.h')
-rw-r--r--Source/cmCustomCommand.h28
1 files changed, 11 insertions, 17 deletions
diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h
index 9085177..79206ac 100644
--- a/Source/cmCustomCommand.h
+++ b/Source/cmCustomCommand.h
@@ -28,10 +28,13 @@ class cmMakefile;
class cmCustomCommand
{
public:
- cmCustomCommand(const char *src, const char *command,
+ cmCustomCommand(const char *command,
const char* arguments,
std::vector<std::string> dep,
- std::vector<std::string> out);
+ const char *out);
+ cmCustomCommand(const char *command,
+ const char* arguments);
+ cmCustomCommand() {};
cmCustomCommand(const cmCustomCommand& r);
/**
@@ -40,12 +43,6 @@ public:
*/
void ExpandVariables(const cmMakefile &);
- /**
- * Return the name of the source file. I'm not sure if this is a full path or not.
- */
- std::string GetSourceName() const {return m_Source;}
- void SetSourceName(const char *name) {m_Source = name;}
-
///! Return the command to execute with arguments
std::string GetCommandAndArguments() const
{return m_Command + " " + m_Arguments;}
@@ -54,7 +51,11 @@ public:
std::string GetCommand() const {return m_Command;}
void SetCommand(const char *cmd) {m_Command = cmd;}
- ///! Return the command to execute
+ ///! Return the output
+ std::string GetOutput() const {return m_Output;}
+ void SetOutput(const char *cm) {m_Output = cm;}
+
+ ///! Return the comment
std::string GetComment() const {return m_Comment;}
void SetComment(const char *cm) {m_Comment = cm;}
@@ -68,19 +69,12 @@ public:
const std::vector<std::string> &GetDepends() const {return m_Depends;}
std::vector<std::string> &GetDepends() {return m_Depends;}
- /**
- * Return the vector that holds the list of outputs of this command
- */
- const std::vector<std::string> &GetOutputs() const {return m_Outputs;}
- std::vector<std::string> &GetOutputs() {return m_Outputs;}
-
private:
- std::string m_Source;
std::string m_Command;
std::string m_Arguments;
std::string m_Comment;
+ std::string m_Output;
std::vector<std::string> m_Depends;
- std::vector<std::string> m_Outputs;
};