| 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_TARGET_WRITER_H_ | 5 #ifndef TOOLS_GN_NINJA_TARGET_WRITER_H_ |
| 6 #define TOOLS_GN_NINJA_TARGET_WRITER_H_ | 6 #define TOOLS_GN_NINJA_TARGET_WRITER_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
| 11 #include "tools/gn/path_output.h" | 11 #include "tools/gn/path_output.h" |
| 12 #include "tools/gn/substitution_type.h" | |
| 13 | 12 |
| 14 class FileTemplate; | 13 class FileTemplate; |
| 15 class OutputFile; | 14 class OutputFile; |
| 16 class Settings; | 15 class Settings; |
| 17 class Target; | 16 class Target; |
| 17 struct SubstitutionBits; |
| 18 | 18 |
| 19 // Generates one target's ".ninja" file. The toplevel "build.ninja" file is | 19 // Generates one target's ".ninja" file. The toplevel "build.ninja" file is |
| 20 // generated by the NinjaBuildWriter. | 20 // generated by the NinjaBuildWriter. |
| 21 class NinjaTargetWriter { | 21 class NinjaTargetWriter { |
| 22 public: | 22 public: |
| 23 NinjaTargetWriter(const Target* target, std::ostream& out); | 23 NinjaTargetWriter(const Target* target, std::ostream& out); |
| 24 virtual ~NinjaTargetWriter(); | 24 virtual ~NinjaTargetWriter(); |
| 25 | 25 |
| 26 static void RunAndWriteFile(const Target* target); | 26 static void RunAndWriteFile(const Target* target); |
| 27 | 27 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 52 std::ostream& out_; | 52 std::ostream& out_; |
| 53 PathOutput path_output_; | 53 PathOutput path_output_; |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 void WriteCopyRules(); | 56 void WriteCopyRules(); |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(NinjaTargetWriter); | 58 DISALLOW_COPY_AND_ASSIGN(NinjaTargetWriter); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif // TOOLS_GN_NINJA_TARGET_WRITER_H_ | 61 #endif // TOOLS_GN_NINJA_TARGET_WRITER_H_ |
| OLD | NEW |