12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #ifndef cmRulePlaceholderExpander_h
- #define cmRulePlaceholderExpander_h
- #include "cmConfigure.h"
- #include <map>
- #include <string>
- class cmOutputConverter;
- class cmRulePlaceholderExpander
- {
- public:
- cmRulePlaceholderExpander(
- std::map<std::string, std::string> const& compilers,
- std::map<std::string, std::string> const& variableMappings,
- std::string const& compilerSysroot, std::string const& linkerSysroot);
- void SetTargetImpLib(std::string const& targetImpLib)
- {
- this->TargetImpLib = targetImpLib;
- }
-
-
- struct RuleVariables
- {
- RuleVariables();
- const char* CMTargetName;
- const char* CMTargetType;
- const char* TargetPDB;
- const char* TargetCompilePDB;
- const char* TargetVersionMajor;
- const char* TargetVersionMinor;
- const char* Language;
- const char* Objects;
- const char* Target;
- const char* LinkLibraries;
- const char* Source;
- const char* AssemblySource;
- const char* PreprocessedSource;
- const char* Output;
- const char* Object;
- const char* ObjectDir;
- const char* ObjectFileDir;
- const char* Flags;
- const char* ObjectsQuoted;
- const char* SONameFlag;
- const char* TargetSOName;
- const char* TargetInstallNameDir;
- const char* LinkFlags;
- const char* Manifests;
- const char* LanguageCompileFlags;
- const char* Defines;
- const char* Includes;
- const char* DependencyFile;
- const char* FilterPrefix;
- };
-
- void ExpandRuleVariables(cmOutputConverter* outputConverter,
- std::string& string,
- const RuleVariables& replaceValues);
-
- std::string ExpandRuleVariable(cmOutputConverter* outputConverter,
- std::string const& variable,
- const RuleVariables& replaceValues);
- private:
- std::string TargetImpLib;
- std::map<std::string, std::string> Compilers;
- std::map<std::string, std::string> VariableMappings;
- std::string CompilerSysroot;
- std::string LinkerSysroot;
- };
- #endif
|