diff options
Diffstat (limited to 'Source/cmInstallScriptGenerator.h')
-rw-r--r-- | Source/cmInstallScriptGenerator.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmInstallScriptGenerator.h b/Source/cmInstallScriptGenerator.h index f7ee3f9..6274f1c 100644 --- a/Source/cmInstallScriptGenerator.h +++ b/Source/cmInstallScriptGenerator.h @@ -8,6 +8,7 @@ #include <string> #include "cmInstallGenerator.h" +#include "cmListFileCache.h" #include "cmScriptGenerator.h" class cmLocalGenerator; @@ -18,13 +19,18 @@ class cmLocalGenerator; class cmInstallScriptGenerator : public cmInstallGenerator { public: - cmInstallScriptGenerator(std::string script, bool code, - std::string const& component, - bool exclude_from_all); + cmInstallScriptGenerator( + std::string script, bool code, std::string const& component, + bool exclude_from_all, + cmListFileBacktrace backtrace = cmListFileBacktrace()); ~cmInstallScriptGenerator() override; bool Compute(cmLocalGenerator* lg) override; + bool IsCode() const { return this->Code; } + + std::string GetScript(std::string const& config) const; + protected: void GenerateScriptActions(std::ostream& os, Indent indent) override; void GenerateScriptForConfig(std::ostream& os, const std::string& config, |