| 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_ACTION_VALUES_H_ | 5 #ifndef TOOLS_GN_ACTION_VALUES_H_ |
| 6 #define TOOLS_GN_ACTION_VALUES_H_ | 6 #define TOOLS_GN_ACTION_VALUES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Expands the outputs() above to the final SourceFile list. | 37 // Expands the outputs() above to the final SourceFile list. |
| 38 void GetOutputsAsSourceFiles(const Target* target, | 38 void GetOutputsAsSourceFiles(const Target* target, |
| 39 std::vector<SourceFile>* result) const; | 39 std::vector<SourceFile>* result) const; |
| 40 | 40 |
| 41 // Depfile generated by the script. | 41 // Depfile generated by the script. |
| 42 const SubstitutionPattern& depfile() const { return depfile_; } | 42 const SubstitutionPattern& depfile() const { return depfile_; } |
| 43 bool has_depfile() const { return !depfile_.ranges().empty(); } | 43 bool has_depfile() const { return !depfile_.ranges().empty(); } |
| 44 void set_depfile(const SubstitutionPattern& depfile) { depfile_ = depfile; } | 44 void set_depfile(const SubstitutionPattern& depfile) { depfile_ = depfile; } |
| 45 | 45 |
| 46 // Response file contents. Empty means no response file. |
| 47 SubstitutionList& rsp_file_contents() { return rsp_file_contents_; } |
| 48 const SubstitutionList& rsp_file_contents() const { |
| 49 return rsp_file_contents_; |
| 50 } |
| 51 bool uses_rsp_file() const { return !rsp_file_contents_.list().empty(); } |
| 52 |
| 46 // Console pool option | 53 // Console pool option |
| 47 bool is_console() const { return console_; } | 54 bool is_console() const { return console_; } |
| 48 void set_console(bool value) { console_ = value; } | 55 void set_console(bool value) { console_ = value; } |
| 49 | 56 |
| 50 private: | 57 private: |
| 51 SourceFile script_; | 58 SourceFile script_; |
| 52 SubstitutionList args_; | 59 SubstitutionList args_; |
| 53 SubstitutionList outputs_; | 60 SubstitutionList outputs_; |
| 54 SubstitutionPattern depfile_; | 61 SubstitutionPattern depfile_; |
| 62 SubstitutionList rsp_file_contents_; |
| 55 bool console_; | 63 bool console_; |
| 56 | 64 |
| 57 DISALLOW_COPY_AND_ASSIGN(ActionValues); | 65 DISALLOW_COPY_AND_ASSIGN(ActionValues); |
| 58 }; | 66 }; |
| 59 | 67 |
| 60 #endif // TOOLS_GN_ACTION_VALUES_H_ | 68 #endif // TOOLS_GN_ACTION_VALUES_H_ |
| OLD | NEW |