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

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

Issue 1606553002: Add support for Mac/iOS application bundles to GN tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit tests & support for bundle_data_filter Created 4 years, 10 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_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual void DoRun() = 0; 46 virtual void DoRun() = 0;
47 47
48 const BuildSettings* GetBuildSettings() const; 48 const BuildSettings* GetBuildSettings() const;
49 49
50 bool FillSources(); 50 bool FillSources();
51 bool FillPublic(); 51 bool FillPublic();
52 bool FillInputs(); 52 bool FillInputs();
53 bool FillConfigs(); 53 bool FillConfigs();
54 bool FillOutputs(bool allow_substitutions); 54 bool FillOutputs(bool allow_substitutions);
55 bool FillCheckIncludes(); 55 bool FillCheckIncludes();
56 bool FillBundleDataFilter();
56 57
57 // Rrturns true if the given pattern will expand to a file in the output 58 // Returns true if the given pattern will expand to a file in the output
58 // directory. If not, returns false and sets the error, blaming the given 59 // directory. If not, returns false and sets the error, blaming the given
59 // Value. 60 // Value.
60 bool EnsureSubstitutionIsInOutputDir(const SubstitutionPattern& pattern, 61 bool EnsureSubstitutionIsInOutputDir(const SubstitutionPattern& pattern,
61 const Value& original_value); 62 const Value& original_value);
62 63
63 Target* target_; 64 Target* target_;
64 Scope* scope_; 65 Scope* scope_;
65 const FunctionCallNode* function_call_; 66 const FunctionCallNode* function_call_;
66 Err* err_; 67 Err* err_;
67 68
68 private: 69 private:
69 bool FillDependentConfigs(); // Includes all types of dependent configs. 70 bool FillDependentConfigs(); // Includes all types of dependent configs.
70 bool FillData(); 71 bool FillData();
72 bool FillBundleData();
71 bool FillDependencies(); // Includes data dependencies. 73 bool FillDependencies(); // Includes data dependencies.
72 bool FillTestonly(); 74 bool FillTestonly();
73 bool FillAssertNoDeps(); 75 bool FillAssertNoDeps();
74 76
75 // Reads configs/deps from the given var name, and uses the given setting on 77 // Reads configs/deps from the given var name, and uses the given setting on
76 // the target to save them. 78 // the target to save them.
77 bool FillGenericConfigs(const char* var_name, 79 bool FillGenericConfigs(const char* var_name,
78 UniqueVector<LabelConfigPair>* dest); 80 UniqueVector<LabelConfigPair>* dest);
79 bool FillGenericDeps(const char* var_name, LabelTargetVector* dest); 81 bool FillGenericDeps(const char* var_name, LabelTargetVector* dest);
80 82
81 DISALLOW_COPY_AND_ASSIGN(TargetGenerator); 83 DISALLOW_COPY_AND_ASSIGN(TargetGenerator);
82 }; 84 };
83 85
84 #endif // TOOLS_GN_TARGET_GENERATOR_H_ 86 #endif // TOOLS_GN_TARGET_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698