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

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: 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
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 bool ExtractListOfLabels(const Value& value, 108 bool ExtractListOfLabels(const Value& value,
109 const SourceDir& current_dir, 109 const SourceDir& current_dir,
110 const Label& current_toolchain, 110 const Label& current_toolchain,
111 std::vector<Label>* dest, 111 std::vector<Label>* dest,
112 Err* err) { 112 Err* err) {
113 return ListValueExtractor(value, dest, err, 113 return ListValueExtractor(value, dest, err,
114 LabelResolver(current_dir, current_toolchain)); 114 LabelResolver(current_dir, current_toolchain));
115 } 115 }
116
117 bool ExtractRelativeFile(const BuildSettings* build_settings,
118 const Value& value,
119 const SourceDir& current_dir,
120 SourceFile* file, Err* err) {
121 RelativeFileConverter converter(build_settings, current_dir);
122 return converter(value, file, err);
123 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698