| 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 // Console pool option |
| 47 bool is_console() const { return console_; } |
| 48 void set_console(bool value) { console_ = value; } |
| 49 |
| 46 private: | 50 private: |
| 47 SourceFile script_; | 51 SourceFile script_; |
| 48 SubstitutionList args_; | 52 SubstitutionList args_; |
| 49 SubstitutionList outputs_; | 53 SubstitutionList outputs_; |
| 50 SubstitutionPattern depfile_; | 54 SubstitutionPattern depfile_; |
| 55 bool console_; |
| 51 | 56 |
| 52 DISALLOW_COPY_AND_ASSIGN(ActionValues); | 57 DISALLOW_COPY_AND_ASSIGN(ActionValues); |
| 53 }; | 58 }; |
| 54 | 59 |
| 55 #endif // TOOLS_GN_ACTION_VALUES_H_ | 60 #endif // TOOLS_GN_ACTION_VALUES_H_ |
| OLD | NEW |