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

Side by Side Diff: tools/gn/value_extractors.cc

Issue 55633002: GN: Add ability to specify a depfile for custom targets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments 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/value_extractors.h ('k') | tools/gn/variables.h » ('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 #include "tools/gn/value_extractors.h" 5 #include "tools/gn/value_extractors.h"
6 6
7 #include "tools/gn/build_settings.h" 7 #include "tools/gn/build_settings.h"
8 #include "tools/gn/err.h" 8 #include "tools/gn/err.h"
9 #include "tools/gn/label.h" 9 #include "tools/gn/label.h"
10 #include "tools/gn/source_dir.h" 10 #include "tools/gn/source_dir.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 bool ExtractListOfLabels(const Value& value, 120 bool ExtractListOfLabels(const Value& value,
121 const SourceDir& current_dir, 121 const SourceDir& current_dir,
122 const Label& current_toolchain, 122 const Label& current_toolchain,
123 LabelTargetVector* dest, 123 LabelTargetVector* dest,
124 Err* err) { 124 Err* err) {
125 return ListValueExtractor(value, dest, err, 125 return ListValueExtractor(value, dest, err,
126 LabelResolver<Target>(current_dir, 126 LabelResolver<Target>(current_dir,
127 current_toolchain)); 127 current_toolchain));
128 } 128 }
129
130 bool ExtractRelativeFile(const BuildSettings* build_settings,
131 const Value& value,
132 const SourceDir& current_dir,
133 SourceFile* file,
134 Err* err) {
135 RelativeFileConverter converter(build_settings, current_dir);
136 return converter(value, file, err);
137 }
OLDNEW
« no previous file with comments | « tools/gn/value_extractors.h ('k') | tools/gn/variables.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698