Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: tools/gn/action_values.h

Issue 1430043002: Support script response files in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comment, random build fix Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/action_target_generator.cc ('k') | tools/gn/function_write_file.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « tools/gn/action_target_generator.cc ('k') | tools/gn/function_write_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698