| 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <limits> | 6 #include <limits> |
| 7 | 7 |
| 8 #include "tools/gn/err.h" | 8 #include "tools/gn/err.h" |
| 9 #include "tools/gn/functions.h" | 9 #include "tools/gn/functions.h" |
| 10 #include "tools/gn/parse_tree.h" | 10 #include "tools/gn/parse_tree.h" |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 " The short name of the current target with no path information,\n" | 611 " The short name of the current target with no path information,\n" |
| 612 " or the value of the \"output_name\" variable if one is specified\n" | 612 " or the value of the \"output_name\" variable if one is specified\n" |
| 613 " in the target. This will include the \"output_prefix\" if any.\n" | 613 " in the target. This will include the \"output_prefix\" if any.\n" |
| 614 " Example: \"libfoo\" for the target named \"foo\" and an\n" | 614 " Example: \"libfoo\" for the target named \"foo\" and an\n" |
| 615 " output prefix for the linker tool of \"lib\".\n" | 615 " output prefix for the linker tool of \"lib\".\n" |
| 616 "\n" | 616 "\n" |
| 617 " Compiler tools have the notion of a single input and a single output,\n" | 617 " Compiler tools have the notion of a single input and a single output,\n" |
| 618 " along with a set of compiler-specific flags. The following expansions\n" | 618 " along with a set of compiler-specific flags. The following expansions\n" |
| 619 " are available:\n" | 619 " are available:\n" |
| 620 "\n" | 620 "\n" |
| 621 " {{asmflags}}\n" |
| 621 " {{cflags}}\n" | 622 " {{cflags}}\n" |
| 622 " {{cflags_c}}\n" | 623 " {{cflags_c}}\n" |
| 623 " {{cflags_cc}}\n" | 624 " {{cflags_cc}}\n" |
| 624 " {{cflags_objc}}\n" | 625 " {{cflags_objc}}\n" |
| 625 " {{cflags_objcc}}\n" | 626 " {{cflags_objcc}}\n" |
| 626 " {{defines}}\n" | 627 " {{defines}}\n" |
| 627 " {{include_dirs}}\n" | 628 " {{include_dirs}}\n" |
| 628 " Strings correspond that to the processed flags/defines/include\n" | 629 " Strings correspond that to the processed flags/defines/include\n" |
| 629 " directories specified for the target.\n" | 630 " directories specified for the target.\n" |
| 630 " Example: \"--enable-foo --enable-bar\"\n" | 631 " Example: \"--enable-foo --enable-bar\"\n" |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 return Value(); | 955 return Value(); |
| 955 | 956 |
| 956 Scope::KeyValueMap values; | 957 Scope::KeyValueMap values; |
| 957 block_scope.GetCurrentScopeValues(&values); | 958 block_scope.GetCurrentScopeValues(&values); |
| 958 toolchain->args() = values; | 959 toolchain->args() = values; |
| 959 | 960 |
| 960 return Value(); | 961 return Value(); |
| 961 } | 962 } |
| 962 | 963 |
| 963 } // namespace functions | 964 } // namespace functions |
| OLD | NEW |