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_TOOLCHAIN_WRITER_H_ | 5 #ifndef TOOLS_GN_NINJA_TOOLCHAIN_WRITER_H_ |
6 #define TOOLS_GN_NINJA_TOOLCHAIN_WRITER_H_ | 6 #define TOOLS_GN_NINJA_TOOLCHAIN_WRITER_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "tools/gn/ninja_writer.h" | 15 #include "tools/gn/ninja_writer.h" |
16 #include "tools/gn/path_output.h" | 16 #include "tools/gn/path_output.h" |
17 #include "tools/gn/toolchain.h" | 17 #include "tools/gn/toolchain.h" |
18 | 18 |
19 class BuildSettings; | |
20 struct EscapeOptions; | 19 struct EscapeOptions; |
21 class Settings; | 20 class Settings; |
22 class Target; | |
23 class Tool; | 21 class Tool; |
24 | 22 |
25 class NinjaToolchainWriter { | 23 class NinjaToolchainWriter { |
26 public: | 24 public: |
27 // Takes the settings for the toolchain, as well as the list of all targets | 25 // Takes the settings for the toolchain, as well as the list of all targets |
28 // associated with the toolchain. | 26 // associated with the toolchain. |
29 static bool RunAndWriteFile( | 27 static bool RunAndWriteFile( |
30 const Settings* settings, | 28 const Settings* settings, |
31 const Toolchain* toolchain, | 29 const Toolchain* toolchain, |
32 const std::vector<NinjaWriter::TargetRulePair>& rules); | 30 const std::vector<NinjaWriter::TargetRulePair>& rules); |
(...skipping 18 matching lines...) Expand all Loading... |
51 | 49 |
52 const Settings* settings_; | 50 const Settings* settings_; |
53 const Toolchain* toolchain_; | 51 const Toolchain* toolchain_; |
54 std::ostream& out_; | 52 std::ostream& out_; |
55 PathOutput path_output_; | 53 PathOutput path_output_; |
56 | 54 |
57 DISALLOW_COPY_AND_ASSIGN(NinjaToolchainWriter); | 55 DISALLOW_COPY_AND_ASSIGN(NinjaToolchainWriter); |
58 }; | 56 }; |
59 | 57 |
60 #endif // TOOLS_GN_NINJA_TOOLCHAIN_WRITER_H_ | 58 #endif // TOOLS_GN_NINJA_TOOLCHAIN_WRITER_H_ |
OLD | NEW |