/src/CMake/Source/cmExportBuildSbomGenerator.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 | | |
10 | | #include <cm/string_view> |
11 | | |
12 | | #include "cmExportBuildFileGenerator.h" |
13 | | #include "cmExportSbomGenerator.h" |
14 | | |
15 | | class cmSbomArguments; |
16 | | |
17 | | class cmExportBuildSbomGenerator |
18 | | : public cmExportBuildFileGenerator |
19 | | , public cmExportSbomGenerator |
20 | | { |
21 | | public: |
22 | | cmExportBuildSbomGenerator(cmSbomArguments args); |
23 | | |
24 | | protected: |
25 | | void HandleMissingTarget(std::string& link_libs, |
26 | | cmGeneratorTarget const* depender, |
27 | | cmGeneratorTarget* dependee) override; |
28 | | bool GenerateMainFile(std::ostream& os) override; |
29 | | void GenerateImportTargetsConfig(std::ostream&, std::string const&, |
30 | | std::string const&) override |
31 | 0 | { |
32 | 0 | } |
33 | | std::string GetCxxModulesDirectory() const override; |
34 | | |
35 | | cm::string_view GetImportPrefixWithSlash() const override; |
36 | | |
37 | | std::string GetCxxModuleFile(std::string const& /*name*/) const override; |
38 | | |
39 | | void GenerateCxxModuleConfigInformation(std::string const& /*name*/, |
40 | | std::ostream& /*os*/) const override; |
41 | | }; |