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

Side by Side Diff: tools/gn/functions_target.cc

Issue 2023003006: [Mac/iOS/GN] Document the new rules for create_bundle and runtime_deps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/docs/reference.md ('k') | tools/gn/variables.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 #include "tools/gn/functions.h" 5 #include "tools/gn/functions.h"
6 6
7 #include "tools/gn/config_values_generator.h" 7 #include "tools/gn/config_values_generator.h"
8 #include "tools/gn/err.h" 8 #include "tools/gn/err.h"
9 #include "tools/gn/parse_tree.h" 9 #include "tools/gn/parse_tree.h"
10 #include "tools/gn/scope.h" 10 #include "tools/gn/scope.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 " they are computed from all \"bundle_data\" target this one depends on\n" 321 " they are computed from all \"bundle_data\" target this one depends on\n"
322 " transitively (the recursion stops at \"create_bundle\" targets).\n" 322 " transitively (the recursion stops at \"create_bundle\" targets).\n"
323 "\n" 323 "\n"
324 " The \"bundle_*_dir\" properties must be defined. They will be used for\n" 324 " The \"bundle_*_dir\" properties must be defined. They will be used for\n"
325 " the expansion of {{bundle_*_dir}} rules in \"bundle_data\" outputs.\n" 325 " the expansion of {{bundle_*_dir}} rules in \"bundle_data\" outputs.\n"
326 "\n" 326 "\n"
327 " This target can be used on all platforms though it is designed only to\n" 327 " This target can be used on all platforms though it is designed only to\n"
328 " generate iOS/OS X bundle. In cross-platform projects, it is advised to\n" 328 " generate iOS/OS X bundle. In cross-platform projects, it is advised to\n"
329 " put it behind iOS/Mac conditionals.\n" 329 " put it behind iOS/Mac conditionals.\n"
330 "\n" 330 "\n"
331 " If a create_bundle is specified as a data_deps for another target, the\n"
332 " bundle is considered a leaf, and its public and private dependencies\n"
333 " will not contribute to any data or data_deps. Required runtime\n"
334 " dependencies should be placed in the bundle. A create_bundle can\n"
335 " declare its own explicit data and data_deps, however.\n"
336 "\n"
331 "Variables\n" 337 "Variables\n"
332 "\n" 338 "\n"
333 " bundle_root_dir*, bundle_resources_dir*, bundle_executable_dir*,\n" 339 " bundle_root_dir*, bundle_resources_dir*, bundle_executable_dir*,\n"
334 " bundle_plugins_dir*, deps, data_deps, public_deps, visibility,\n" 340 " bundle_plugins_dir*, deps, data_deps, public_deps, visibility,\n"
335 " product_type\n" 341 " product_type\n"
336 " * = required\n" 342 " * = required\n"
337 "\n" 343 "\n"
338 "Example\n" 344 "Example\n"
339 "\n" 345 "\n"
340 " # Defines a template to create an application. On most platform, this\n" 346 " # Defines a template to create an application. On most platform, this\n"
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 const Template* templ = scope->GetTemplate(target_type); 734 const Template* templ = scope->GetTemplate(target_type);
729 if (templ) 735 if (templ)
730 return templ->Invoke(scope, function, sub_args, block, err); 736 return templ->Invoke(scope, function, sub_args, block, err);
731 737
732 // Otherwise, assume the target is a built-in target type. 738 // Otherwise, assume the target is a built-in target type.
733 return ExecuteGenericTarget(target_type.c_str(), scope, function, sub_args, 739 return ExecuteGenericTarget(target_type.c_str(), scope, function, sub_args,
734 block, err); 740 block, err);
735 } 741 }
736 742
737 } // namespace functions 743 } // namespace functions
OLDNEW
« no previous file with comments | « tools/gn/docs/reference.md ('k') | tools/gn/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698