diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-12-09 21:39:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-15 12:01:21 (GMT) |
commit | dcf9f4d2f71d7c608ce24b690d30d465df51dc71 (patch) | |
tree | 0868f3cd8176eb883063a77350864b70782b2dad /Source/cmLocalNinjaGenerator.h | |
parent | 15467f12f796205f97721f43ae7d9ee7cdc47466 (diff) | |
download | CMake-dcf9f4d2f71d7c608ce24b690d30d465df51dc71.zip CMake-dcf9f4d2f71d7c608ce24b690d30d465df51dc71.tar.gz CMake-dcf9f4d2f71d7c608ce24b690d30d465df51dc71.tar.bz2 |
Ninja Multi-Config: Add support for cross-config custom commands
Co-Author: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Source/cmLocalNinjaGenerator.h')
-rw-r--r-- | Source/cmLocalNinjaGenerator.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/cmLocalNinjaGenerator.h b/Source/cmLocalNinjaGenerator.h index 760aea0..87d5e53 100644 --- a/Source/cmLocalNinjaGenerator.h +++ b/Source/cmLocalNinjaGenerator.h @@ -10,6 +10,7 @@ #include <string> #include <vector> +#include "cmListFileCache.h" #include "cmLocalCommonGenerator.h" #include "cmNinjaTypes.h" #include "cmOutputConverter.h" @@ -70,6 +71,10 @@ public: const std::string& fileConfig, cmNinjaTargetDepends depends); + std::string CreateUtilityOutput(std::string const& targetName, + std::vector<std::string> const& byproducts, + cmListFileBacktrace const& bt) override; + std::vector<cmCustomCommandGenerator> MakeCustomCommandGenerators( cmCustomCommand const& cc, std::string const& config) override; @@ -102,9 +107,9 @@ private: void WriteProcessedMakefile(std::ostream& os); void WritePools(std::ostream& os); - void WriteCustomCommandBuildStatement(cmCustomCommand const* cc, - const cmNinjaDeps& orderOnlyDeps, - const std::string& config); + void WriteCustomCommandBuildStatement( + cmCustomCommand const* cc, const std::set<cmGeneratorTarget*>& targets, + const std::string& config); void WriteCustomCommandBuildStatements(const std::string& config); |