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/err.h" | 5 #include "tools/gn/err.h" |
6 #include "tools/gn/functions.h" | 6 #include "tools/gn/functions.h" |
7 #include "tools/gn/parse_tree.h" | 7 #include "tools/gn/parse_tree.h" |
8 #include "tools/gn/scheduler.h" | 8 #include "tools/gn/scheduler.h" |
9 #include "tools/gn/scope.h" | 9 #include "tools/gn/scope.h" |
10 #include "tools/gn/settings.h" | 10 #include "tools/gn/settings.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 "\n" | 46 "\n" |
47 " A toolchain specifies the commands to run for various input file\n" | 47 " A toolchain specifies the commands to run for various input file\n" |
48 " types via the \"tool\" call (see \"gn help tool\") and specifies\n" | 48 " types via the \"tool\" call (see \"gn help tool\") and specifies\n" |
49 " arguments to be passed to the toolchain build via the\n" | 49 " arguments to be passed to the toolchain build via the\n" |
50 " \"toolchain_args\" call (see \"gn help toolchain_args\").\n" | 50 " \"toolchain_args\" call (see \"gn help toolchain_args\").\n" |
51 "\n" | 51 "\n" |
52 "Invoking targets in toolchains:\n" | 52 "Invoking targets in toolchains:\n" |
53 "\n" | 53 "\n" |
54 " By default, when a target depends on another, there is an implicit\n" | 54 " By default, when a target depends on another, there is an implicit\n" |
55 " toolchain label that is inherited, so the dependee has the same one\n" | 55 " toolchain label that is inherited, so the dependee has the same one\n" |
56 " as the dependant.\n" | 56 " as the dependent.\n" |
57 "\n" | 57 "\n" |
58 " You can override this and refer to any other toolchain by explicitly\n" | 58 " You can override this and refer to any other toolchain by explicitly\n" |
59 " labeling the toolchain to use. For example:\n" | 59 " labeling the toolchain to use. For example:\n" |
60 " datadeps = [ \"//plugins:mine(//toolchains:plugin_toolchain)\" ]\n" | 60 " datadeps = [ \"//plugins:mine(//toolchains:plugin_toolchain)\" ]\n" |
61 " The string \"//build/toolchains:plugin_toolchain\" is a label that\n" | 61 " The string \"//build/toolchains:plugin_toolchain\" is a label that\n" |
62 " identifies the toolchain declaration for compiling the sources.\n" | 62 " identifies the toolchain declaration for compiling the sources.\n" |
63 "\n" | 63 "\n" |
64 " To load a file in an alternate toolchain, GN does the following:\n" | 64 " To load a file in an alternate toolchain, GN does the following:\n" |
65 "\n" | 65 "\n" |
66 " 1. Loads the file with the toolchain definition in it (as determined\n" | 66 " 1. Loads the file with the toolchain definition in it (as determined\n" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 return Value(); | 303 return Value(); |
304 | 304 |
305 Scope::KeyValueMap values; | 305 Scope::KeyValueMap values; |
306 block_scope.GetCurrentScopeValues(&values); | 306 block_scope.GetCurrentScopeValues(&values); |
307 toolchain->args() = values; | 307 toolchain->args() = values; |
308 | 308 |
309 return Value(); | 309 return Value(); |
310 } | 310 } |
311 | 311 |
312 } // namespace functions | 312 } // namespace functions |
OLD | NEW |