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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 " current build.\n" | 242 " current build.\n" |
243 "\n" | 243 "\n" |
244 "Invoking targets in toolchains:\n" | 244 "Invoking targets in toolchains:\n" |
245 "\n" | 245 "\n" |
246 " By default, when a target depends on another, there is an implicit\n" | 246 " By default, when a target depends on another, there is an implicit\n" |
247 " toolchain label that is inherited, so the dependee has the same one\n" | 247 " toolchain label that is inherited, so the dependee has the same one\n" |
248 " as the dependent.\n" | 248 " as the dependent.\n" |
249 "\n" | 249 "\n" |
250 " You can override this and refer to any other toolchain by explicitly\n" | 250 " You can override this and refer to any other toolchain by explicitly\n" |
251 " labeling the toolchain to use. For example:\n" | 251 " labeling the toolchain to use. For example:\n" |
252 " datadeps = [ \"//plugins:mine(//toolchains:plugin_toolchain)\" ]\n" | 252 " data_deps = [ \"//plugins:mine(//toolchains:plugin_toolchain)\" ]\n" |
253 " The string \"//build/toolchains:plugin_toolchain\" is a label that\n" | 253 " The string \"//build/toolchains:plugin_toolchain\" is a label that\n" |
254 " identifies the toolchain declaration for compiling the sources.\n" | 254 " identifies the toolchain declaration for compiling the sources.\n" |
255 "\n" | 255 "\n" |
256 " To load a file in an alternate toolchain, GN does the following:\n" | 256 " To load a file in an alternate toolchain, GN does the following:\n" |
257 "\n" | 257 "\n" |
258 " 1. Loads the file with the toolchain definition in it (as determined\n" | 258 " 1. Loads the file with the toolchain definition in it (as determined\n" |
259 " by the toolchain label).\n" | 259 " by the toolchain label).\n" |
260 " 2. Re-runs the master build configuration file, applying the\n" | 260 " 2. Re-runs the master build configuration file, applying the\n" |
261 " arguments specified by the toolchain_args section of the toolchain\n" | 261 " arguments specified by the toolchain_args section of the toolchain\n" |
262 " definition (see \"gn help toolchain_args\").\n" | 262 " definition (see \"gn help toolchain_args\").\n" |
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 return Value(); | 913 return Value(); |
914 | 914 |
915 Scope::KeyValueMap values; | 915 Scope::KeyValueMap values; |
916 block_scope.GetCurrentScopeValues(&values); | 916 block_scope.GetCurrentScopeValues(&values); |
917 toolchain->args() = values; | 917 toolchain->args() = values; |
918 | 918 |
919 return Value(); | 919 return Value(); |
920 } | 920 } |
921 | 921 |
922 } // namespace functions | 922 } // namespace functions |
OLD | NEW |