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 <vector> | 9 #include <vector> |
10 | 10 |
11 #include "tools/gn/ninja_helper.h" | |
12 #include "tools/gn/path_output.h" | 11 #include "tools/gn/path_output.h" |
13 | 12 |
14 class BuildSettings; | 13 class BuildSettings; |
15 class Settings; | 14 class Settings; |
16 class Target; | 15 class Target; |
17 | 16 |
18 // Generates the toplevel "build.ninja" file. This references the individual | 17 // Generates the toplevel "build.ninja" file. This references the individual |
19 // toolchain files and lists all input .gn files as dependencies of the | 18 // toolchain files and lists all input .gn files as dependencies of the |
20 // build itself. | 19 // build itself. |
21 class NinjaBuildWriter { | 20 class NinjaBuildWriter { |
(...skipping 20 matching lines...) Expand all Loading... |
42 void WritePhonyRule(const Target* target, const OutputFile& target_file, | 41 void WritePhonyRule(const Target* target, const OutputFile& target_file, |
43 const std::string& phony_name); | 42 const std::string& phony_name); |
44 | 43 |
45 const BuildSettings* build_settings_; | 44 const BuildSettings* build_settings_; |
46 std::vector<const Settings*> all_settings_; | 45 std::vector<const Settings*> all_settings_; |
47 std::vector<const Target*> default_toolchain_targets_; | 46 std::vector<const Target*> default_toolchain_targets_; |
48 std::ostream& out_; | 47 std::ostream& out_; |
49 std::ostream& dep_out_; | 48 std::ostream& dep_out_; |
50 PathOutput path_output_; | 49 PathOutput path_output_; |
51 | 50 |
52 NinjaHelper helper_; | |
53 | |
54 DISALLOW_COPY_AND_ASSIGN(NinjaBuildWriter); | 51 DISALLOW_COPY_AND_ASSIGN(NinjaBuildWriter); |
55 }; | 52 }; |
56 | 53 |
57 #endif // TOOLS_GN_NINJA_BUILD_GENERATOR_H_ | 54 #endif // TOOLS_GN_NINJA_BUILD_GENERATOR_H_ |
58 | 55 |
OLD | NEW |