diff options
author | Rosen Matev <r.matev@gmail.com> | 2019-05-10 12:37:39 (GMT) |
---|---|---|
committer | Rosen Matev <r.matev@gmail.com> | 2019-05-14 13:58:00 (GMT) |
commit | 9f76961de87d8911d13867d469c38087e47a0b60 (patch) | |
tree | 13cf78b16bcbf13e6a4aef6b6963c38137083b21 /Source/cmMakefile.h | |
parent | 5a2023f904c5da80a4614c133b7d7d8f4f719e96 (diff) | |
download | CMake-9f76961de87d8911d13867d469c38087e47a0b60.zip CMake-9f76961de87d8911d13867d469c38087e47a0b60.tar.gz CMake-9f76961de87d8911d13867d469c38087e47a0b60.tar.bz2 |
Support job pools in custom commands and targets
Provide a way for custom commands and targets to set the pool variable
of the ninja build statement. Setting `JOB_POOL` is not compatible with
`USES_TERMINAL`, which implies the `console` pool.
The option is silently ignored with other generators.
Closes: #18483
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 8cc14f3..be1ac5a 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -150,7 +150,7 @@ public: const cmCustomCommandLines& commandLines, cmTarget::CustomCommandType type, const char* comment, const char* workingDir, bool escapeOldStyle = true, bool uses_terminal = false, const std::string& depfile = "", - bool command_expand_lists = false, + const std::string& job_pool = "", bool command_expand_lists = false, ObjectLibraryCommands objLibraryCommands = RejectObjectLibraryCommands); cmSourceFile* AddCustomCommandToOutput( const std::vector<std::string>& outputs, @@ -160,14 +160,14 @@ public: const cmCustomCommandLines& commandLines, const char* comment, const char* workingDir, bool replace = false, bool escapeOldStyle = true, bool uses_terminal = false, bool command_expand_lists = false, - const std::string& depfile = ""); + const std::string& depfile = "", const std::string& job_pool = ""); cmSourceFile* AddCustomCommandToOutput( const std::string& output, const std::vector<std::string>& depends, const std::string& main_dependency, const cmCustomCommandLines& commandLines, const char* comment, const char* workingDir, bool replace = false, bool escapeOldStyle = true, bool uses_terminal = false, bool command_expand_lists = false, - const std::string& depfile = ""); + const std::string& depfile = "", const std::string& job_pool = ""); void AddCustomCommandOldStyle(const std::string& target, const std::vector<std::string>& outputs, const std::vector<std::string>& depends, @@ -223,14 +223,14 @@ public: const char* workingDirectory, const std::vector<std::string>& depends, const cmCustomCommandLines& commandLines, bool escapeOldStyle = true, const char* comment = nullptr, bool uses_terminal = false, - bool command_expand_lists = false); + bool command_expand_lists = false, const std::string& job_pool = ""); cmTarget* AddUtilityCommand( const std::string& utilityName, TargetOrigin origin, bool excludeFromAll, const char* workingDirectory, const std::vector<std::string>& byproducts, const std::vector<std::string>& depends, const cmCustomCommandLines& commandLines, bool escapeOldStyle = true, const char* comment = nullptr, bool uses_terminal = false, - bool command_expand_lists = false); + bool command_expand_lists = false, const std::string& job_pool = ""); /** * Add a subdirectory to the build. |