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

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

Issue 1975393003: gn: Mention complete_static_lib in `gn help static_library`. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 "static_library: Declare a static library target.\n" 649 "static_library: Declare a static library target.\n"
650 "\n" 650 "\n"
651 " Make a \".a\" / \".lib\" file.\n" 651 " Make a \".a\" / \".lib\" file.\n"
652 "\n" 652 "\n"
653 " If you only need the static library for intermediate results in the\n" 653 " If you only need the static library for intermediate results in the\n"
654 " build, you should consider a source_set instead since it will skip\n" 654 " build, you should consider a source_set instead since it will skip\n"
655 " the (potentially slow) step of creating the intermediate library file.\n" 655 " the (potentially slow) step of creating the intermediate library file.\n"
656 "\n" 656 "\n"
657 "Variables\n" 657 "Variables\n"
658 "\n" 658 "\n"
659 "complete_static_lib\n"
659 CONFIG_VALUES_VARS_HELP 660 CONFIG_VALUES_VARS_HELP
660 DEPS_VARS 661 DEPS_VARS
661 DEPENDENT_CONFIG_VARS 662 DEPENDENT_CONFIG_VARS
662 GENERAL_TARGET_VARS; 663 GENERAL_TARGET_VARS;
663 664
664 Value RunStaticLibrary(Scope* scope, 665 Value RunStaticLibrary(Scope* scope,
665 const FunctionCallNode* function, 666 const FunctionCallNode* function,
666 const std::vector<Value>& args, 667 const std::vector<Value>& args,
667 BlockNode* block, 668 BlockNode* block,
668 Err* err) { 669 Err* err) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 const Template* templ = scope->GetTemplate(target_type); 728 const Template* templ = scope->GetTemplate(target_type);
728 if (templ) 729 if (templ)
729 return templ->Invoke(scope, function, sub_args, block, err); 730 return templ->Invoke(scope, function, sub_args, block, err);
730 731
731 // Otherwise, assume the target is a built-in target type. 732 // Otherwise, assume the target is a built-in target type.
732 return ExecuteGenericTarget(target_type.c_str(), scope, function, sub_args, 733 return ExecuteGenericTarget(target_type.c_str(), scope, function, sub_args,
733 block, err); 734 block, err);
734 } 735 }
735 736
736 } // namespace functions 737 } // namespace functions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698