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_WRITER_H_ | 5 #ifndef TOOLS_GN_NINJA_WRITER_H_ |
6 #define TOOLS_GN_NINJA_WRITER_H_ | 6 #define TOOLS_GN_NINJA_WRITER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.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; | |
20 class Target; | 18 class Target; |
21 class Toolchain; | 19 class Toolchain; |
22 | 20 |
23 class NinjaWriter { | 21 class NinjaWriter { |
24 public: | 22 public: |
25 // Combines a target and the computed build rule for it. | 23 // Combines a target and the computed build rule for it. |
26 using TargetRulePair = std::pair<const Target*, std::string>; | 24 using TargetRulePair = std::pair<const Target*, std::string>; |
27 | 25 |
28 // Associates the build rules with each toolchain. | 26 // Associates the build rules with each toolchain. |
29 using PerToolchainRules = | 27 using PerToolchainRules = |
(...skipping 14 matching lines...) Expand all Loading... |
44 | 42 |
45 bool WriteToolchains(const PerToolchainRules& per_toolchain_rules, | 43 bool WriteToolchains(const PerToolchainRules& per_toolchain_rules, |
46 Err* err); | 44 Err* err); |
47 | 45 |
48 const Builder& builder_; | 46 const Builder& builder_; |
49 | 47 |
50 DISALLOW_COPY_AND_ASSIGN(NinjaWriter); | 48 DISALLOW_COPY_AND_ASSIGN(NinjaWriter); |
51 }; | 49 }; |
52 | 50 |
53 #endif // TOOLS_GN_NINJA_WRITER_H_ | 51 #endif // TOOLS_GN_NINJA_WRITER_H_ |
OLD | NEW |