| 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_BUILD_WRITER_H_ | 5 #ifndef TOOLS_GN_NINJA_BUILD_WRITER_H_ |
| 6 #define TOOLS_GN_NINJA_BUILD_WRITER_H_ | 6 #define TOOLS_GN_NINJA_BUILD_WRITER_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "tools/gn/path_output.h" | 13 #include "tools/gn/path_output.h" |
| 14 | 14 |
| 15 class Builder; | 15 class Builder; |
| 16 class BuildSettings; | 16 class BuildSettings; |
| 17 class Err; | 17 class Err; |
| 18 class Pool; | |
| 19 class Settings; | 18 class Settings; |
| 20 class Target; | 19 class Target; |
| 21 class Toolchain; | 20 class Toolchain; |
| 22 | 21 |
| 23 // Generates the toplevel "build.ninja" file. This references the individual | 22 // Generates the toplevel "build.ninja" file. This references the individual |
| 24 // toolchain files and lists all input .gn files as dependencies of the | 23 // toolchain files and lists all input .gn files as dependencies of the |
| 25 // build itself. | 24 // build itself. |
| 26 class NinjaBuildWriter { | 25 class NinjaBuildWriter { |
| 27 public: | 26 public: |
| 28 NinjaBuildWriter(const BuildSettings* settings, | 27 NinjaBuildWriter(const BuildSettings* settings, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 std::ostream& dep_out_; | 63 std::ostream& dep_out_; |
| 65 PathOutput path_output_; | 64 PathOutput path_output_; |
| 66 | 65 |
| 67 DISALLOW_COPY_AND_ASSIGN(NinjaBuildWriter); | 66 DISALLOW_COPY_AND_ASSIGN(NinjaBuildWriter); |
| 68 }; | 67 }; |
| 69 | 68 |
| 70 extern const char kNinjaRules_Help[]; | 69 extern const char kNinjaRules_Help[]; |
| 71 | 70 |
| 72 #endif // TOOLS_GN_NINJA_BUILD_WRITER_H_ | 71 #endif // TOOLS_GN_NINJA_BUILD_WRITER_H_ |
| 73 | 72 |
| OLD | NEW |