| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |