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 | 6 |
7 #include "tools/gn/err.h" | 7 #include "tools/gn/err.h" |
8 #include "tools/gn/functions.h" | 8 #include "tools/gn/functions.h" |
9 #include "tools/gn/parse_tree.h" | 9 #include "tools/gn/parse_tree.h" |
10 #include "tools/gn/scheduler.h" | 10 #include "tools/gn/scheduler.h" |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 " The directory in the generated file and output directories,\n" | 568 " The directory in the generated file and output directories,\n" |
569 " respectively, for the current input file. If the source file\n" | 569 " respectively, for the current input file. If the source file\n" |
570 " is in the same directory as the target is declared in, they will\n" | 570 " is in the same directory as the target is declared in, they will\n" |
571 " will be the same as the \"target\" versions above.\n" | 571 " will be the same as the \"target\" versions above.\n" |
572 " Example: \"gen/base/test\"\n" | 572 " Example: \"gen/base/test\"\n" |
573 "\n" | 573 "\n" |
574 " Linker tools have multiple inputs and (potentially) multiple outputs\n" | 574 " Linker tools have multiple inputs and (potentially) multiple outputs\n" |
575 " The following expansions are available:\n" | 575 " The following expansions are available:\n" |
576 "\n" | 576 "\n" |
577 " {{inputs}}\n" | 577 " {{inputs}}\n" |
| 578 " {{inputs_newline}}\n" |
578 " Expands to the inputs to the link step. This will be a list of\n" | 579 " Expands to the inputs to the link step. This will be a list of\n" |
579 " object files and static libraries.\n" | 580 " object files and static libraries.\n" |
580 " Example: \"obj/foo.o obj/bar.o obj/somelibrary.a\"\n" | 581 " Example: \"obj/foo.o obj/bar.o obj/somelibrary.a\"\n" |
581 "\n" | 582 "\n" |
| 583 " The \"_newline\" version will separate the input files with\n" |
| 584 " newlines instead of spaces. This is useful in response files:\n" |
| 585 " some linkers can take a \"-filelist\" flag which expects newline\n" |
| 586 " separated files, and some Microsoft tools have a fixed-sized\n" |
| 587 " buffer for parsing each line of a response file.\n" |
| 588 "\n" |
582 " {{ldflags}}\n" | 589 " {{ldflags}}\n" |
583 " Expands to the processed set of ldflags and library search paths\n" | 590 " Expands to the processed set of ldflags and library search paths\n" |
584 " specified for the target.\n" | 591 " specified for the target.\n" |
585 " Example: \"-m64, -fPIC -pthread -L/usr/local/mylib\"\n" | 592 " Example: \"-m64, -fPIC -pthread -L/usr/local/mylib\"\n" |
586 "\n" | 593 "\n" |
587 " {{libs}}\n" | 594 " {{libs}}\n" |
588 " Expands to the list of system libraries to link to. Each will\n" | 595 " Expands to the list of system libraries to link to. Each will\n" |
589 " be prefixed by the \"lib_prefix\".\n" | 596 " be prefixed by the \"lib_prefix\".\n" |
590 "\n" | 597 "\n" |
591 " As a special case to support Mac, libraries with names ending in\n" | 598 " As a special case to support Mac, libraries with names ending in\n" |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 return Value(); | 870 return Value(); |
864 | 871 |
865 Scope::KeyValueMap values; | 872 Scope::KeyValueMap values; |
866 block_scope.GetCurrentScopeValues(&values); | 873 block_scope.GetCurrentScopeValues(&values); |
867 toolchain->args() = values; | 874 toolchain->args() = values; |
868 | 875 |
869 return Value(); | 876 return Value(); |
870 } | 877 } |
871 | 878 |
872 } // namespace functions | 879 } // namespace functions |
OLD | NEW |