| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |