| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |