2016-10-30 18:24:19 +01:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2021-09-14 00:13:48 +02:00
|
|
|
#pragma once
|
2012-04-19 19:04:21 +03:00
|
|
|
|
2018-01-26 17:06:56 +01:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2016-07-09 11:21:54 +02:00
|
|
|
|
2020-08-30 11:54:41 +02:00
|
|
|
#include <string>
|
|
|
|
|
2016-10-30 18:24:19 +01:00
|
|
|
#include "cmNinjaTargetGenerator.h"
|
2012-04-19 19:04:21 +03:00
|
|
|
|
2016-10-30 18:24:19 +01:00
|
|
|
class cmGeneratorTarget;
|
2012-04-19 19:04:21 +03:00
|
|
|
|
|
|
|
class cmNinjaUtilityTargetGenerator : public cmNinjaTargetGenerator
|
|
|
|
{
|
|
|
|
public:
|
2014-08-03 19:52:23 +02:00
|
|
|
cmNinjaUtilityTargetGenerator(cmGeneratorTarget* target);
|
2018-01-26 17:06:56 +01:00
|
|
|
~cmNinjaUtilityTargetGenerator() override;
|
2012-04-19 19:04:21 +03:00
|
|
|
|
2020-08-30 11:54:41 +02:00
|
|
|
void Generate(const std::string& config) override;
|
2012-04-19 19:04:21 +03:00
|
|
|
|
2021-09-14 00:13:48 +02:00
|
|
|
private:
|
|
|
|
void WriteUtilBuildStatements(std::string const& config,
|
|
|
|
std::string const& fileConfig);
|
|
|
|
};
|