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

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

Issue 630223002: gn: Support build directories outside the source tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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
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 #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
(...skipping 21 matching lines...) Expand all
32 32
33 // Looks for a list of source directories relative to a given current dir. 33 // Looks for a list of source directories relative to a given current dir.
34 bool ExtractListOfRelativeDirs(const BuildSettings* build_settings, 34 bool ExtractListOfRelativeDirs(const BuildSettings* build_settings,
35 const Value& value, 35 const Value& value,
36 const SourceDir& current_dir, 36 const SourceDir& current_dir,
37 std::vector<SourceDir>* dest, 37 std::vector<SourceDir>* dest,
38 Err* err); 38 Err* err);
39 39
40 // Extracts the list of labels and their origins to the given vector. Only the 40 // Extracts the list of labels and their origins to the given vector. Only the
41 // labels are filled in, the ptr for each pair in the vector will be null. 41 // labels are filled in, the ptr for each pair in the vector will be null.
42 bool ExtractListOfLabels(const Value& value, 42 bool ExtractListOfLabels(const BuildSettings* build_settings,
43 const Value& value,
43 const SourceDir& current_dir, 44 const SourceDir& current_dir,
44 const Label& current_toolchain, 45 const Label& current_toolchain,
45 LabelTargetVector* dest, 46 LabelTargetVector* dest,
46 Err* err); 47 Err* err);
47 48
48 // Extracts the list of labels and their origins to the given vector. For the 49 // Extracts the list of labels and their origins to the given vector. For the
49 // version taking Label*Pair, only the labels are filled in, the ptr for each 50 // version taking Label*Pair, only the labels are filled in, the ptr for each
50 // pair in the vector will be null. Sets an error and returns false if a label 51 // pair in the vector will be null. Sets an error and returns false if a label
51 // is maformed or there are duplicates. 52 // is maformed or there are duplicates.
52 bool ExtractListOfUniqueLabels(const Value& value, 53 bool ExtractListOfUniqueLabels(const BuildSettings* build_settings,
54 const Value& value,
53 const SourceDir& current_dir, 55 const SourceDir& current_dir,
54 const Label& current_toolchain, 56 const Label& current_toolchain,
55 UniqueVector<Label>* dest, 57 UniqueVector<Label>* dest,
56 Err* err); 58 Err* err);
57 bool ExtractListOfUniqueLabels(const Value& value, 59 bool ExtractListOfUniqueLabels(const BuildSettings* build_settings,
60 const Value& value,
58 const SourceDir& current_dir, 61 const SourceDir& current_dir,
59 const Label& current_toolchain, 62 const Label& current_toolchain,
60 UniqueVector<LabelConfigPair>* dest, 63 UniqueVector<LabelConfigPair>* dest,
61 Err* err); 64 Err* err);
62 bool ExtractListOfUniqueLabels(const Value& value, 65 bool ExtractListOfUniqueLabels(const BuildSettings* build_settings,
66 const Value& value,
63 const SourceDir& current_dir, 67 const SourceDir& current_dir,
64 const Label& current_toolchain, 68 const Label& current_toolchain,
65 UniqueVector<LabelTargetPair>* dest, 69 UniqueVector<LabelTargetPair>* dest,
66 Err* err); 70 Err* err);
67 71
68 bool ExtractRelativeFile(const BuildSettings* build_settings, 72 bool ExtractRelativeFile(const BuildSettings* build_settings,
69 const Value& value, 73 const Value& value,
70 const SourceDir& current_dir, 74 const SourceDir& current_dir,
71 SourceFile* file, 75 SourceFile* file,
72 Err* err); 76 Err* err);
73 77
74 #endif // TOOLS_GN_VALUE_EXTRACTORS_H_ 78 #endif // TOOLS_GN_VALUE_EXTRACTORS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698