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

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

Issue 440333002: Support more configurability in GN toolchains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unsigned check Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/output_file.cc ('k') | tools/gn/path_output.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_PATH_OUTPUT_H_ 5 #ifndef TOOLS_GN_PATH_OUTPUT_H_
6 #define TOOLS_GN_PATH_OUTPUT_H_ 6 #define TOOLS_GN_PATH_OUTPUT_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <string> 9 #include <string>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Getter/setters for flags inside the escape options. 44 // Getter/setters for flags inside the escape options.
45 bool inhibit_quoting() const { return options_.inhibit_quoting; } 45 bool inhibit_quoting() const { return options_.inhibit_quoting; }
46 void set_inhibit_quoting(bool iq) { options_.inhibit_quoting = iq; } 46 void set_inhibit_quoting(bool iq) { options_.inhibit_quoting = iq; }
47 void set_escape_platform(EscapingPlatform p) { options_.platform = p; } 47 void set_escape_platform(EscapingPlatform p) { options_.platform = p; }
48 48
49 void WriteFile(std::ostream& out, const SourceFile& file) const; 49 void WriteFile(std::ostream& out, const SourceFile& file) const;
50 void WriteFile(std::ostream& out, const OutputFile& file) const; 50 void WriteFile(std::ostream& out, const OutputFile& file) const;
51 void WriteFile(std::ostream& out, const base::FilePath& file) const; 51 void WriteFile(std::ostream& out, const base::FilePath& file) const;
52 52
53 // Writes the given OutputFiles with spaces separating them. This will also
54 // write an initial space before the first item.
55 void WriteFiles(std::ostream& out,
56 const std::vector<OutputFile>& files) const;
57
53 // This variant assumes the dir ends in a trailing slash or is empty. 58 // This variant assumes the dir ends in a trailing slash or is empty.
54 void WriteDir(std::ostream& out, 59 void WriteDir(std::ostream& out,
55 const SourceDir& dir, 60 const SourceDir& dir,
56 DirSlashEnding slash_ending) const; 61 DirSlashEnding slash_ending) const;
57 62
58 void WriteDir(std::ostream& out, 63 void WriteDir(std::ostream& out,
59 const OutputFile& file, 64 const OutputFile& file,
60 DirSlashEnding slash_ending) const; 65 DirSlashEnding slash_ending) const;
61 66
62 // Backend for WriteFile and WriteDir. This appends the given file or 67 // Backend for WriteFile and WriteDir. This appends the given file or
(...skipping 10 matching lines...) Expand all
73 78
74 // Uses system slashes if convert_slashes_to_system_. 79 // Uses system slashes if convert_slashes_to_system_.
75 std::string inverse_current_dir_; 80 std::string inverse_current_dir_;
76 81
77 // Since the inverse_current_dir_ depends on some of these, we don't expose 82 // Since the inverse_current_dir_ depends on some of these, we don't expose
78 // this directly to modification. 83 // this directly to modification.
79 EscapeOptions options_; 84 EscapeOptions options_;
80 }; 85 };
81 86
82 #endif // TOOLS_GN_PATH_OUTPUT_H_ 87 #endif // TOOLS_GN_PATH_OUTPUT_H_
OLDNEW
« no previous file with comments | « tools/gn/output_file.cc ('k') | tools/gn/path_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698