OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_JSON_WRITER_H_ | 5 #ifndef TOOLS_GN_JSON_WRITER_H_ |
6 #define TOOLS_GN_JSON_WRITER_H_ | 6 #define TOOLS_GN_JSON_WRITER_H_ |
7 | 7 |
8 #include "tools/gn/err.h" | 8 #include "tools/gn/err.h" |
9 #include "tools/gn/target.h" | 9 #include "tools/gn/target.h" |
10 | 10 |
11 class Builder; | 11 class Builder; |
12 class BuildSettings; | 12 class BuildSettings; |
13 | 13 |
14 class JSONProjectWriter { | 14 class JSONProjectWriter { |
15 public: | 15 public: |
16 static bool RunAndWriteFiles(const BuildSettings* build_setting, | 16 static bool RunAndWriteFiles(const BuildSettings* build_setting, |
17 const Builder* builder, | 17 const Builder& builder, |
18 const std::string& file_name, | 18 const std::string& file_name, |
19 const std::string& exec_script, | 19 const std::string& exec_script, |
20 const std::string& exec_script_extra_args, | 20 const std::string& exec_script_extra_args, |
21 const std::string& dir_filter_string, | 21 const std::string& dir_filter_string, |
22 bool quiet, | 22 bool quiet, |
23 Err* err); | 23 Err* err); |
24 }; | 24 }; |
25 | 25 |
26 #endif | 26 #endif |
OLD | NEW |