diff options
author | Brad King <brad.king@kitware.com> | 2009-02-10 13:51:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-02-10 13:51:15 (GMT) |
commit | b604b98c5690c49109ad464190c1b8a7562410b0 (patch) | |
tree | d477ac9d52d7328848deb4e460628deb775a29fd /Source/cmLocalGenerator.h | |
parent | c895d9f2e0dac609a8e3e126cc05a0400e9740a9 (diff) | |
download | CMake-b604b98c5690c49109ad464190c1b8a7562410b0.zip CMake-b604b98c5690c49109ad464190c1b8a7562410b0.tar.gz CMake-b604b98c5690c49109ad464190c1b8a7562410b0.tar.bz2 |
ENH: Define RULE_LAUNCH_* properties
This defines global, directory, and target properties
RULE_LAUNCH_COMPILE, RULE_LAUNCH_LINK, and RULE_LAUNCH_CUSTOM. Their
values specify 'launcher' command lines which are prefixed to compile,
link, and custom build rules by Makefile generators.
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r-- | Source/cmLocalGenerator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h index 5f962ad..a624e66 100644 --- a/Source/cmLocalGenerator.h +++ b/Source/cmLocalGenerator.h @@ -203,6 +203,7 @@ public: { memset(this, 0, sizeof(*this)); } + cmTarget* CMTarget; const char* TargetPDB; const char* TargetVersionMajor; const char* TargetVersionMinor; @@ -222,6 +223,7 @@ public: const char* LinkFlags; const char* LanguageCompileFlags; const char* Defines; + const char* RuleLauncher; }; /** Set whether to treat conversions to SHELL as a link script shell. */ @@ -317,6 +319,11 @@ protected: // Expand rule variables in a single string std::string ExpandRuleVariable(std::string const& variable, const RuleVariables& replaceValues); + + const char* GetRuleLauncher(cmTarget* target, const char* prop); + void InsertRuleLauncher(std::string& s, cmTarget* target, + const char* prop); + /** Convert a target to a utility target for unsupported * languages of a generator */ |