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

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

Issue 48523006: GN: Separately track labels and origins for lists of stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/gn.gyp ('k') | tools/gn/gyp_binary_target_writer.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_GYP_BINARY_TARGET_WRITER_H_ 5 #ifndef TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_
6 #define TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ 6 #define TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "tools/gn/gyp_target_writer.h" 12 #include "tools/gn/gyp_target_writer.h"
13 #include "tools/gn/target.h"
13 #include "tools/gn/toolchain.h" 14 #include "tools/gn/toolchain.h"
14 15
15 // Writes a portion of a .gyp file for a binary target type (an executable, a 16 // Writes a portion of a .gyp file for a binary target type (an executable, a
16 // shared library, or a static library). 17 // shared library, or a static library).
17 class GypBinaryTargetWriter : public GypTargetWriter { 18 class GypBinaryTargetWriter : public GypTargetWriter {
18 public: 19 public:
19 GypBinaryTargetWriter(const TargetGroup& group, std::ostream& out); 20 GypBinaryTargetWriter(const TargetGroup& group, std::ostream& out);
20 virtual ~GypBinaryTargetWriter(); 21 virtual ~GypBinaryTargetWriter();
21 22
22 virtual void Run() OVERRIDE; 23 virtual void Run() OVERRIDE;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 void WriteIncludeDirs(const Flags& flags, int indent); 67 void WriteIncludeDirs(const Flags& flags, int indent);
67 void WriteDirectDependentSettings(int indent); 68 void WriteDirectDependentSettings(int indent);
68 void WriteAllDependentSettings(int indent); 69 void WriteAllDependentSettings(int indent);
69 70
70 // Writes out the given flags and such from all configs in the given list. 71 // Writes out the given flags and such from all configs in the given list.
71 void WriteSettingsFromConfigList(const std::vector<const Config*>& configs, 72 void WriteSettingsFromConfigList(const std::vector<const Config*>& configs,
72 int indent); 73 int indent);
73 74
74 // Fills the given flags structure. 75 // Fills the given flags structure.
75 Flags FlagsFromTarget(const Target* target) const; 76 Flags FlagsFromTarget(const Target* target) const;
76 Flags FlagsFromConfigList(const std::vector<const Config*>& configs) const; 77 Flags FlagsFromConfigList(const LabelConfigVector& configs) const;
77 78
78 // All associated targets. 79 // All associated targets.
79 TargetGroup group_; 80 TargetGroup group_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(GypBinaryTargetWriter); 82 DISALLOW_COPY_AND_ASSIGN(GypBinaryTargetWriter);
82 }; 83 };
83 84
84 #endif // TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_ 85 #endif // TOOLS_GN_GYP_BINARY_TARGET_WRITER_H_
85 86
OLDNEW
« no previous file with comments | « tools/gn/gn.gyp ('k') | tools/gn/gyp_binary_target_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698