diff options
author | Ken Martin <ken.martin@kitware.com> | 2003-06-03 14:30:23 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2003-06-03 14:30:23 (GMT) |
commit | ba68f771b369e65476e7ce12aa8dd1cf18d7f529 (patch) | |
tree | 4580bb0cd83663ac32e7234b47f1a03881a2b709 /Source/cmSourceFile.h | |
parent | 4f55e4870d0dea6f700943ccd4bac958c478cff4 (diff) | |
download | CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.zip CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.tar.gz CMake-ba68f771b369e65476e7ce12aa8dd1cf18d7f529.tar.bz2 |
yikes added new custom command support
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r-- | Source/cmSourceFile.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h index e04a856..d6d1744 100644 --- a/Source/cmSourceFile.h +++ b/Source/cmSourceFile.h @@ -18,6 +18,7 @@ #define cmSourceFile_h #include "cmStandardIncludes.h" +#include "cmCustomCommand.h" /** \class cmSourceFile * \brief Represent a class loaded from a makefile. @@ -34,6 +35,11 @@ public: */ cmSourceFile() { + m_CustomCommand = 0; + } + ~cmSourceFile() + { + if (m_CustomCommand) { delete m_CustomCommand; } } /** @@ -46,6 +52,15 @@ public: const std::vector<std::string>& headerExts); /** + * Get the list of the custom commands for this source file + */ + const cmCustomCommand *GetCustomCommand() const + {return m_CustomCommand;} + cmCustomCommand *GetCustomCommand() {return m_CustomCommand;} + void SetCustomCommand(cmCustomCommand *cc) + { m_CustomCommand = cc;} + + /** * Set the name of the file, given the directory the file should be in. IN * this version the extension is provided in the call. This is useful for * generated files that do not exist prior to the build. @@ -77,8 +92,7 @@ public: void SetSourceName(const char *name) {m_SourceName = name;} /** - * The file name associated with stripped off directory and extension. - * (In most cases this is the name of the class.) + * The file extension associated with source file */ const std::string &GetSourceExtension() const {return m_SourceExtension;} void SetSourceExtension(const char *name) {m_SourceExtension = name;} @@ -90,8 +104,8 @@ public: std::vector<std::string> &GetDepends() {return m_Depends;} private: - std::map<cmStdString,cmStdString> m_Properties; + cmCustomCommand *m_CustomCommand; std::string m_FullPath; std::string m_SourceName; std::string m_SourceExtension; |