| OLD | NEW | 
|   1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |   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 |   2 // Use of this source code is governed by a BSD-style license that can be | 
|   3 // found in the LICENSE file. |   3 // found in the LICENSE file. | 
|   4  |   4  | 
|   5 #ifndef TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_ |   5 #ifndef TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_ | 
|   6 #define TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_ |   6 #define TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_ | 
|   7  |   7  | 
|   8 #include "base/compiler_specific.h" |   8 #include "base/compiler_specific.h" | 
|   9 #include "tools/gn/ninja_target_writer.h" |   9 #include "tools/gn/ninja_target_writer.h" | 
|  10  |  10  | 
|  11 class Tool; |  11 class Tool; | 
|  12  |  12  | 
|  13 // Writes a .ninja file for a copy target type. |  13 // Writes a .ninja file for a copy target type. | 
|  14 class NinjaCopyTargetWriter : public NinjaTargetWriter { |  14 class NinjaCopyTargetWriter : public NinjaTargetWriter { | 
|  15  public: |  15  public: | 
|  16   NinjaCopyTargetWriter(const Target* target, std::ostream& out); |  16   NinjaCopyTargetWriter(const Target* target, std::ostream& out); | 
|  17   virtual ~NinjaCopyTargetWriter(); |  17   virtual ~NinjaCopyTargetWriter(); | 
|  18  |  18  | 
|  19   virtual void Run() OVERRIDE; |  19   virtual void Run() override; | 
|  20  |  20  | 
|  21  private: |  21  private: | 
|  22   // Writes the rules top copy the file(s), putting the computed output file |  22   // Writes the rules top copy the file(s), putting the computed output file | 
|  23   // name(s) into the given vector. |  23   // name(s) into the given vector. | 
|  24   void WriteCopyRules(std::vector<OutputFile>* output_files); |  24   void WriteCopyRules(std::vector<OutputFile>* output_files); | 
|  25  |  25  | 
|  26   DISALLOW_COPY_AND_ASSIGN(NinjaCopyTargetWriter); |  26   DISALLOW_COPY_AND_ASSIGN(NinjaCopyTargetWriter); | 
|  27 }; |  27 }; | 
|  28  |  28  | 
|  29 #endif  // TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_ |  29 #endif  // TOOLS_GN_NINJA_COPY_TARGET_WRITER_H_ | 
| OLD | NEW |