mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
34 lines
993 B
C++
34 lines
993 B
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file LICENSE.rst or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
#include <iosfwd>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "cmExportFileGenerator.h"
|
|
#include "cmSbomBuilder.h"
|
|
|
|
class cmExportSet;
|
|
class cmLocalGenerator;
|
|
class cmSbomArguments;
|
|
|
|
/** Install-tree SBOM (`install(SBOM ...)`). Covers the targets in the
|
|
* associated export sets. */
|
|
class cmInstallSbomBuilder final : public cmSbomBuilder
|
|
{
|
|
public:
|
|
cmInstallSbomBuilder(cmSbomArguments args,
|
|
std::vector<cmExportSet*> exportSets,
|
|
cmLocalGenerator* lg = nullptr);
|
|
|
|
bool Generate(std::ostream& os, std::string const& config) override;
|
|
|
|
protected:
|
|
cmExportFileGenerator::ExportInfo FindExportInfoFor(
|
|
cmGeneratorTarget const* target) const override;
|
|
SbomInfo FindSbomInfoFor(cmGeneratorTarget const* target) const override;
|
|
};
|