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 #ifndef TOOLS_GN_VALUE_EXTRACTORS_H_ | 5 #ifndef TOOLS_GN_VALUE_EXTRACTORS_H_ |
6 #define TOOLS_GN_VALUE_EXTRACTORS_H_ | 6 #define TOOLS_GN_VALUE_EXTRACTORS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "tools/gn/label_ptr.h" | 11 #include "tools/gn/label_ptr.h" |
12 #include "tools/gn/lib_file.h" | 12 #include "tools/gn/lib_file.h" |
13 #include "tools/gn/unique_vector.h" | 13 #include "tools/gn/unique_vector.h" |
14 | 14 |
15 class BuildSettings; | 15 class BuildSettings; |
16 class Err; | 16 class Err; |
17 class Label; | 17 class Label; |
| 18 class LabelPattern; |
18 class SourceDir; | 19 class SourceDir; |
19 class SourceFile; | 20 class SourceFile; |
20 class Value; | 21 class Value; |
21 | 22 |
22 // On failure, returns false and sets the error. | 23 // On failure, returns false and sets the error. |
23 bool ExtractListOfStringValues(const Value& value, | 24 bool ExtractListOfStringValues(const Value& value, |
24 std::vector<std::string>* dest, | 25 std::vector<std::string>* dest, |
25 Err* err); | 26 Err* err); |
26 | 27 |
27 // Looks for a list of source files relative to a given current dir. | 28 // Looks for a list of source files relative to a given current dir. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 const Label& current_toolchain, | 74 const Label& current_toolchain, |
74 UniqueVector<LabelTargetPair>* dest, | 75 UniqueVector<LabelTargetPair>* dest, |
75 Err* err); | 76 Err* err); |
76 | 77 |
77 bool ExtractRelativeFile(const BuildSettings* build_settings, | 78 bool ExtractRelativeFile(const BuildSettings* build_settings, |
78 const Value& value, | 79 const Value& value, |
79 const SourceDir& current_dir, | 80 const SourceDir& current_dir, |
80 SourceFile* file, | 81 SourceFile* file, |
81 Err* err); | 82 Err* err); |
82 | 83 |
| 84 bool ExtractListOfLabelPatterns(const Value& value, |
| 85 const SourceDir& current_dir, |
| 86 std::vector<LabelPattern>* patterns, |
| 87 Err* err); |
| 88 |
83 #endif // TOOLS_GN_VALUE_EXTRACTORS_H_ | 89 #endif // TOOLS_GN_VALUE_EXTRACTORS_H_ |
OLD | NEW |