blob: 3103388e9efc0e66a6ed4d783b19460a2b9e40e3 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TOOLS_GN_NINJA_GENERATED_FILE_TARGET_WRITER_H_
#define TOOLS_GN_NINJA_GENERATED_FILE_TARGET_WRITER_H_
#include "gn/ninja_target_writer.h"
// Writes a .ninja file for a group target type.
class NinjaGeneratedFileTargetWriter : public NinjaTargetWriter {
public:
NinjaGeneratedFileTargetWriter(const Target* target, std::ostream& out);
~NinjaGeneratedFileTargetWriter() override;
void Run() override;
private:
void GenerateFile();
NinjaGeneratedFileTargetWriter(const NinjaGeneratedFileTargetWriter&) =
delete;
NinjaGeneratedFileTargetWriter& operator=(
const NinjaGeneratedFileTargetWriter&) = delete;
};
#endif // TOOLS_GN_NINJA_GENERATED_FILE_TARGET_WRITER_H_