summaryrefslogtreecommitdiffstats
path: root/Source/cmRulePlaceholderExpander.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-11-24 15:45:22 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2022-02-06 13:32:24 (GMT)
commit78dd7d5292cef930b3d435e6901cc3b10ee02513 (patch)
tree7cb78e4301177a68c55d7fd8eddd2fc225ec8c68 /Source/cmRulePlaceholderExpander.h
parent4b55828a9f2afbc6c37e53f7cb0d4adec0fa73b5 (diff)
downloadCMake-78dd7d5292cef930b3d435e6901cc3b10ee02513.zip
CMake-78dd7d5292cef930b3d435e6901cc3b10ee02513.tar.gz
CMake-78dd7d5292cef930b3d435e6901cc3b10ee02513.tar.bz2
cmRulePlaceholderExpander: add base class for placeholder expansion reuse
Diffstat (limited to 'Source/cmRulePlaceholderExpander.h')
-rw-r--r--Source/cmRulePlaceholderExpander.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/cmRulePlaceholderExpander.h b/Source/cmRulePlaceholderExpander.h
index 852954f..23ec405 100644
--- a/Source/cmRulePlaceholderExpander.h
+++ b/Source/cmRulePlaceholderExpander.h
@@ -8,9 +8,11 @@
#include <map>
#include <string>
+#include "cmPlaceholderExpander.h"
+
class cmOutputConverter;
-class cmRulePlaceholderExpander
+class cmRulePlaceholderExpander : public cmPlaceholderExpander
{
public:
cmRulePlaceholderExpander(
@@ -76,16 +78,16 @@ public:
std::string& string,
const RuleVariables& replaceValues);
- // Expand rule variables in a single string
- std::string ExpandRuleVariable(cmOutputConverter* outputConverter,
- std::string const& variable,
- const RuleVariables& replaceValues);
-
private:
+ std::string ExpandVariable(std::string const& variable) override;
+
std::string TargetImpLib;
std::map<std::string, std::string> Compilers;
std::map<std::string, std::string> VariableMappings;
std::string CompilerSysroot;
std::string LinkerSysroot;
+
+ cmOutputConverter* OutputConverter = nullptr;
+ RuleVariables const* ReplaceValues = nullptr;
};