diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2017-02-18 19:12:27 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2017-02-22 16:05:17 (GMT) |
commit | 33a1d727d5aafeaa0d9e729119d7d43ea9fcb370 (patch) | |
tree | 547d8658c95029be6ece913237cfbe17703f3406 /Source/cmMakefile.h | |
parent | 96b6afdc4289a3f04983ee5f5af82c83b422c583 (diff) | |
download | CMake-33a1d727d5aafeaa0d9e729119d7d43ea9fcb370.zip CMake-33a1d727d5aafeaa0d9e729119d7d43ea9fcb370.tar.gz CMake-33a1d727d5aafeaa0d9e729119d7d43ea9fcb370.tar.bz2 |
Makefile: Allow adding post-build rules to object libraries
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 9d9e90a..4d5ce98 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -119,6 +119,13 @@ public: */ void FinalPass(); + /** How to handle custom commands for object libraries */ + enum ObjectLibraryCommands + { + RejectObjectLibraryCommands, + AcceptObjectLibraryCommands + }; + /** Add a custom command to the build. */ void AddCustomCommandToTarget( const std::string& target, const std::vector<std::string>& byproducts, @@ -126,7 +133,8 @@ 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); + bool command_expand_lists = false, + ObjectLibraryCommands objLibraryCommands = RejectObjectLibraryCommands); cmSourceFile* AddCustomCommandToOutput( const std::vector<std::string>& outputs, const std::vector<std::string>& byproducts, |