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

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

Issue 524623005: Add testonly flag to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « tools/gn/target.cc ('k') | tools/gn/target_generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TARGET_GENERATOR_H_ 5 #ifndef TOOLS_GN_TARGET_GENERATOR_H_
6 #define TOOLS_GN_TARGET_GENERATOR_H_ 6 #define TOOLS_GN_TARGET_GENERATOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 Target* target_; 64 Target* target_;
65 Scope* scope_; 65 Scope* scope_;
66 const FunctionCallNode* function_call_; 66 const FunctionCallNode* function_call_;
67 Err* err_; 67 Err* err_;
68 68
69 private: 69 private:
70 void FillDependentConfigs(); // Includes all types of dependent configs. 70 void FillDependentConfigs(); // Includes all types of dependent configs.
71 void FillData(); 71 void FillData();
72 void FillDependencies(); // Includes data dependencies. 72 void FillDependencies(); // Includes data dependencies.
73 void FillTestonly();
73 74
74 // Reads configs/deps from the given var name, and uses the given setting on 75 // Reads configs/deps from the given var name, and uses the given setting on
75 // the target to save them. 76 // the target to save them.
76 void FillGenericConfigs(const char* var_name, 77 void FillGenericConfigs(const char* var_name,
77 UniqueVector<LabelConfigPair>* dest); 78 UniqueVector<LabelConfigPair>* dest);
78 void FillGenericDeps(const char* var_name, LabelTargetVector* dest); 79 void FillGenericDeps(const char* var_name, LabelTargetVector* dest);
79 80
80 void FillForwardDependentConfigs(); 81 void FillForwardDependentConfigs();
81 82
82 DISALLOW_COPY_AND_ASSIGN(TargetGenerator); 83 DISALLOW_COPY_AND_ASSIGN(TargetGenerator);
83 }; 84 };
84 85
85 #endif // TOOLS_GN_TARGET_GENERATOR_H_ 86 #endif // TOOLS_GN_TARGET_GENERATOR_H_
OLDNEW
« no previous file with comments | « tools/gn/target.cc ('k') | tools/gn/target_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698