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

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

Issue 216903004: Add optional public header checking to GN build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unit test Created 6 years, 8 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 | Annotate | Revision Log
« 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const std::string& output_type, 42 const std::string& output_type,
43 Err* err); 43 Err* err);
44 44
45 protected: 45 protected:
46 // Derived classes implement this to do type-specific generation. 46 // Derived classes implement this to do type-specific generation.
47 virtual void DoRun() = 0; 47 virtual void DoRun() = 0;
48 48
49 const BuildSettings* GetBuildSettings() const; 49 const BuildSettings* GetBuildSettings() const;
50 50
51 void FillSources(); 51 void FillSources();
52 void FillPublic();
52 void FillSourcePrereqs(); 53 void FillSourcePrereqs();
53 void FillConfigs(); 54 void FillConfigs();
54 void FillOutputs(); 55 void FillOutputs();
55 56
56 Target* target_; 57 Target* target_;
57 Scope* scope_; 58 Scope* scope_;
58 const FunctionCallNode* function_call_; 59 const FunctionCallNode* function_call_;
59 Err* err_; 60 Err* err_;
60 61
61 private: 62 private:
62 void FillDependentConfigs(); // Includes all types of dependent configs. 63 void FillDependentConfigs(); // Includes all types of dependent configs.
63 void FillData(); 64 void FillData();
64 void FillDependencies(); // Includes data dependencies. 65 void FillDependencies(); // Includes data dependencies.
65 void FillHardDep(); 66 void FillHardDep();
66 67
67 // Reads configs/deps from the given var name, and uses the given setting on 68 // Reads configs/deps from the given var name, and uses the given setting on
68 // the target to save them. 69 // the target to save them.
69 void FillGenericConfigs(const char* var_name, LabelConfigVector* dest); 70 void FillGenericConfigs(const char* var_name, LabelConfigVector* dest);
70 void FillGenericDeps(const char* var_name, LabelTargetVector* dest); 71 void FillGenericDeps(const char* var_name, LabelTargetVector* dest);
71 72
72 void FillForwardDependentConfigs(); 73 void FillForwardDependentConfigs();
73 74
74 DISALLOW_COPY_AND_ASSIGN(TargetGenerator); 75 DISALLOW_COPY_AND_ASSIGN(TargetGenerator);
75 }; 76 };
76 77
77 #endif // TOOLS_GN_TARGET_GENERATOR_H_ 78 #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