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 |
(...skipping 21 matching lines...) Expand all Loading... |
32 std::ostream& out, | 32 std::ostream& out, |
33 std::ostream& dep_out); | 33 std::ostream& dep_out); |
34 ~NinjaBuildWriter(); | 34 ~NinjaBuildWriter(); |
35 | 35 |
36 void Run(); | 36 void Run(); |
37 | 37 |
38 void WriteNinjaRules(); | 38 void WriteNinjaRules(); |
39 void WriteSubninjas(); | 39 void WriteSubninjas(); |
40 void WritePhonyAndAllRules(); | 40 void WritePhonyAndAllRules(); |
41 | 41 |
| 42 void WritePhonyRule(const Target* target, const OutputFile& target_file, |
| 43 const std::string& phony_name); |
| 44 |
42 const BuildSettings* build_settings_; | 45 const BuildSettings* build_settings_; |
43 std::vector<const Settings*> all_settings_; | 46 std::vector<const Settings*> all_settings_; |
44 std::vector<const Target*> default_toolchain_targets_; | 47 std::vector<const Target*> default_toolchain_targets_; |
45 std::ostream& out_; | 48 std::ostream& out_; |
46 std::ostream& dep_out_; | 49 std::ostream& dep_out_; |
47 PathOutput path_output_; | 50 PathOutput path_output_; |
48 | 51 |
49 NinjaHelper helper_; | 52 NinjaHelper helper_; |
50 | 53 |
51 DISALLOW_COPY_AND_ASSIGN(NinjaBuildWriter); | 54 DISALLOW_COPY_AND_ASSIGN(NinjaBuildWriter); |
52 }; | 55 }; |
53 | 56 |
54 #endif // TOOLS_GN_NINJA_BUILD_GENERATOR_H_ | 57 #endif // TOOLS_GN_NINJA_BUILD_GENERATOR_H_ |
55 | 58 |
OLD | NEW |