/src/CMake/Source/cmInstallCxxModuleBmiGenerator.h
Line | Count | Source |
1 | | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying |
2 | | file LICENSE.rst or https://cmake.org/licensing for details. */ |
3 | | #pragma once |
4 | | |
5 | | #include "cmConfigure.h" // IWYU pragma: keep |
6 | | |
7 | | #include <iosfwd> |
8 | | #include <string> |
9 | | #include <vector> |
10 | | |
11 | | #include "cmInstallGenerator.h" |
12 | | |
13 | | class cmGeneratorTarget; |
14 | | class cmListFileBacktrace; |
15 | | class cmLocalGenerator; |
16 | | |
17 | | /** \class cmInstallCxxModuleBmiGenerator |
18 | | * \brief Generate C++ module BMI installation rules. |
19 | | */ |
20 | | class cmInstallCxxModuleBmiGenerator : public cmInstallGenerator |
21 | | { |
22 | | public: |
23 | | cmInstallCxxModuleBmiGenerator( |
24 | | std::string target, std::string const& dest, std::string file_permissions, |
25 | | std::vector<std::string> const& configurations, |
26 | | std::string const& component, MessageLevel message, bool exclude_from_all, |
27 | | bool optional, cmListFileBacktrace backtrace); |
28 | | ~cmInstallCxxModuleBmiGenerator() override; |
29 | | |
30 | | bool Compute(cmLocalGenerator* lg) override; |
31 | | |
32 | | std::string const& GetFilePermissions() const |
33 | 0 | { |
34 | 0 | return this->FilePermissions; |
35 | 0 | } |
36 | | std::string GetDestination(std::string const& config) const; |
37 | | std::string GetScriptLocation(std::string const& config) const; |
38 | 0 | cmGeneratorTarget const* GetTarget() const { return this->Target; } |
39 | 0 | bool GetOptional() const { return this->Optional; } |
40 | 0 | MessageLevel GetMessageLevel() const { return this->Message; } |
41 | | |
42 | | protected: |
43 | | void GenerateScriptForConfig(std::ostream& os, std::string const& config, |
44 | | Indent indent) override; |
45 | | |
46 | | std::string const TargetName; |
47 | | cmGeneratorTarget const* Target = nullptr; |
48 | | cmLocalGenerator* LocalGenerator = nullptr; |
49 | | std::string const FilePermissions; |
50 | | bool const Optional; |
51 | | }; |