athena: Improve the overview mode support for split-view mode.
[chromium-blink-merge.git] / tools / gn / ninja_copy_target_writer.h
blob58003dc92cc0670164d4689b3d31d97641722ba8
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_
6 #define TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_
8 #include "base/compiler_specific.h"
9 #include "tools/gn/ninja_target_writer.h"
11 class Tool;
13 // Writes a .ninja file for a copy target type.
14 class NinjaCopyTargetWriter : public NinjaTargetWriter {
15 public:
16 NinjaCopyTargetWriter(const Target* target, std::ostream& out);
17 virtual ~NinjaCopyTargetWriter();
19 virtual void Run() OVERRIDE;
21 private:
22 // Writes the rules top copy the file(s), putting the computed output file
23 // name(s) into the given vector.
24 void WriteCopyRules(std::vector<OutputFile>* output_files);
26 DISALLOW_COPY_AND_ASSIGN(NinjaCopyTargetWriter);
29 #endif // TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_