sdefresne | 1232aae | 2016-03-10 20:16:36 | [diff] [blame] | 1 | // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef TOOLS_GN_CREATE_BUNDLE_TARGET_GENERATOR_H_ |
| 6 | #define TOOLS_GN_CREATE_BUNDLE_TARGET_GENERATOR_H_ |
| 7 | |
| 8 | #include "base/macros.h" |
| 9 | #include "tools/gn/target_generator.h" |
| 10 | |
rsesek | 54f052e | 2016-04-22 15:21:43 | [diff] [blame] | 11 | class SourceDir; |
| 12 | |
sdefresne | 1232aae | 2016-03-10 20:16:36 | [diff] [blame] | 13 | // Populates a Target with the values from a create_bundle rule. |
| 14 | class CreateBundleTargetGenerator : public TargetGenerator { |
| 15 | public: |
| 16 | CreateBundleTargetGenerator(Target* target, |
| 17 | Scope* scope, |
| 18 | const FunctionCallNode* function_call, |
| 19 | Err* err); |
| 20 | ~CreateBundleTargetGenerator() override; |
| 21 | |
| 22 | protected: |
| 23 | void DoRun() override; |
| 24 | |
| 25 | private: |
sdefresne | 14ddbb6 | 2016-06-14 18:33:33 | [diff] [blame] | 26 | bool FillBundleDir(const SourceDir& bundle_root_dir, |
| 27 | const base::StringPiece& name, |
| 28 | SourceDir* bundle_dir); |
| 29 | |
Yuke Liao | c94fbe29 | 2017-07-13 18:42:47 | [diff] [blame] | 30 | bool FillXcodeExtraAttributes(); |
| 31 | |
sdefresne | 14ddbb6 | 2016-06-14 18:33:33 | [diff] [blame] | 32 | bool FillProductType(); |
Yuke Liao | 148fef6 | 2017-07-13 21:35:24 | [diff] [blame] | 33 | bool FillXcodeTestApplicationName(); |
sdefresne | 14ddbb6 | 2016-06-14 18:33:33 | [diff] [blame] | 34 | |
| 35 | bool FillCodeSigningScript(); |
| 36 | bool FillCodeSigningSources(); |
| 37 | bool FillCodeSigningOutputs(); |
| 38 | bool FillCodeSigningArgs(); |
sdefresne | 7ac4976 | 2016-08-07 08:17:45 | [diff] [blame] | 39 | bool FillBundleDepsFilter(); |
sdefresne | 1232aae | 2016-03-10 20:16:36 | [diff] [blame] | 40 | |
| 41 | DISALLOW_COPY_AND_ASSIGN(CreateBundleTargetGenerator); |
| 42 | }; |
| 43 | |
| 44 | #endif // TOOLS_GN_CREATE_BUNDLE_TARGET_GENERATOR_H_ |