Chromium Code Reviews| Index: tools/gn/functions_target.cc |
| diff --git a/tools/gn/functions_target.cc b/tools/gn/functions_target.cc |
| index b04fea8b0f49d56c9121ac9b7432f27aad272751..66594ee1d3ad97970b9d12e94f7b59ff0da84744 100644 |
| --- a/tools/gn/functions_target.cc |
| +++ b/tools/gn/functions_target.cc |
| @@ -299,6 +299,28 @@ Value RunCopy(const FunctionCallNode* function, |
| return Value(); |
| } |
| +// copy bundle data ------------------------------------------------------------ |
| + |
| +const char kCopyBundleData[] = "copy_bundle_data"; |
| +const char kCopyBundleData_HelpShort[] = |
| + "copy_bundle_data: Declare a target that copies files to app bundle."; |
| +const char kCopyBundleData_Help[] = |
| + "copy_bundle_data: Declare a target that copies files to app bundle.\n" |
| + "\n" |
| + "More detailed help need to be written\n"; |
|
brettw
2016/01/20 22:23:17
Please do this :)
sdefresne
2016/01/21 22:00:56
Done.
|
| + |
| +Value RunCopyBundleData(const FunctionCallNode* function, |
| + const std::vector<Value>& args, |
| + Scope* scope, |
| + Err* err) { |
| + if (!EnsureNotProcessingImport(function, scope, err) || |
| + !EnsureNotProcessingBuildConfig(function, scope, err)) |
| + return Value(); |
| + TargetGenerator::GenerateTarget( |
| + scope, function, args, functions::kCopyBundleData, err); |
| + return Value(); |
| +} |
| + |
| // executable ------------------------------------------------------------------ |
| const char kExecutable[] = "executable"; |