diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-23 15:57:16 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-03-23 21:22:34 (GMT) |
commit | db182eb160f2e61bebeb1bb5f289a6d899da18da (patch) | |
tree | 837f7bc3520aff7dfee9ecf94cc6bf7bee44bba9 /Source/cmTarget.h | |
parent | 30495bb1c291627f94912049da6e06d951a062ec (diff) | |
download | CMake-db182eb160f2e61bebeb1bb5f289a6d899da18da.zip CMake-db182eb160f2e61bebeb1bb5f289a6d899da18da.tar.gz CMake-db182eb160f2e61bebeb1bb5f289a6d899da18da.tar.bz2 |
cmTarget: Move member `*Commands` to impl
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 43 |
1 files changed, 12 insertions, 31 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index b441df1..297f501 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -13,12 +13,12 @@ #include <vector> #include "cmAlgorithms.h" -#include "cmCustomCommand.h" #include "cmListFileCache.h" #include "cmPolicies.h" #include "cmStateTypes.h" #include "cmTargetLinkLibraryType.h" +class cmCustomCommand; class cmGlobalGenerator; class cmMakefile; class cmMessenger; @@ -94,33 +94,17 @@ public: #undef DECLARE_TARGET_POLICY - /** - * Get the list of the custom commands for this target - */ - std::vector<cmCustomCommand> const& GetPreBuildCommands() const - { - return this->PreBuildCommands; - } - std::vector<cmCustomCommand> const& GetPreLinkCommands() const - { - return this->PreLinkCommands; - } - std::vector<cmCustomCommand> const& GetPostBuildCommands() const - { - return this->PostBuildCommands; - } - void AddPreBuildCommand(cmCustomCommand const& cmd) - { - this->PreBuildCommands.push_back(cmd); - } - void AddPreLinkCommand(cmCustomCommand const& cmd) - { - this->PreLinkCommands.push_back(cmd); - } - void AddPostBuildCommand(cmCustomCommand const& cmd) - { - this->PostBuildCommands.push_back(cmd); - } + ///! Get the list of the PRE_BUILD custom commands for this target + std::vector<cmCustomCommand> const& GetPreBuildCommands() const; + void AddPreBuildCommand(cmCustomCommand const& cmd); + + ///! Get the list of the PRE_LINK custom commands for this target + std::vector<cmCustomCommand> const& GetPreLinkCommands() const; + void AddPreLinkCommand(cmCustomCommand const& cmd); + + ///! Get the list of the POST_BUILD custom commands for this target + std::vector<cmCustomCommand> const& GetPostBuildCommands() const; + void AddPostBuildCommand(cmCustomCommand const& cmd); ///! Add sources to the target. void AddSources(std::vector<std::string> const& srcs); @@ -291,9 +275,6 @@ private: private: bool IsGeneratorProvided; - std::vector<cmCustomCommand> PreBuildCommands; - std::vector<cmCustomCommand> PreLinkCommands; - std::vector<cmCustomCommand> PostBuildCommands; cmTargetInternalPointer impl; bool HaveInstallRule; bool DLLPlatform; |