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 <iostream> | 7 #include <iostream> |
8 | 8 |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 " 2. The configs specified in the target's \"configs\" list, in order.\n" | 258 " 2. The configs specified in the target's \"configs\" list, in order.\n" |
259 " 3. Public_configs from a breadth-first traversal of the dependency\n" | 259 " 3. Public_configs from a breadth-first traversal of the dependency\n" |
260 " tree in the order that the targets appear in \"deps\".\n" | 260 " tree in the order that the targets appear in \"deps\".\n" |
261 " 4. All dependent configs from a breadth-first traversal of the\n" | 261 " 4. All dependent configs from a breadth-first traversal of the\n" |
262 " dependency tree in the order that the targets appear in \"deps\".\n" | 262 " dependency tree in the order that the targets appear in \"deps\".\n" |
263 "\n" | 263 "\n" |
264 "Variables valid in a config definition:\n" | 264 "Variables valid in a config definition:\n" |
265 CONFIG_VALUES_VARS_HELP | 265 CONFIG_VALUES_VARS_HELP |
266 "\n" | 266 "\n" |
267 "Variables on a target used to apply configs:\n" | 267 "Variables on a target used to apply configs:\n" |
268 " all_dependent_configs, configs, public_configs,\n" | 268 " all_dependent_configs, configs, public_configs\n" |
269 " forward_dependent_configs_from\n" | |
270 "\n" | 269 "\n" |
271 "Example:\n" | 270 "Example:\n" |
272 " config(\"myconfig\") {\n" | 271 " config(\"myconfig\") {\n" |
273 " includes = [ \"include/common\" ]\n" | 272 " includes = [ \"include/common\" ]\n" |
274 " defines = [ \"ENABLE_DOOM_MELON\" ]\n" | 273 " defines = [ \"ENABLE_DOOM_MELON\" ]\n" |
275 " }\n" | 274 " }\n" |
276 "\n" | 275 "\n" |
277 " executable(\"mything\") {\n" | 276 " executable(\"mything\") {\n" |
278 " configs = [ \":myconfig\" ]\n" | 277 " configs = [ \":myconfig\" ]\n" |
279 " }\n"; | 278 " }\n"; |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 } | 912 } |
914 | 913 |
915 // Otherwise it's a no-block function. | 914 // Otherwise it's a no-block function. |
916 if (!VerifyNoBlockForFunctionCall(function, block, err)) | 915 if (!VerifyNoBlockForFunctionCall(function, block, err)) |
917 return Value(); | 916 return Value(); |
918 return found_function->second.no_block_runner(scope, function, | 917 return found_function->second.no_block_runner(scope, function, |
919 args.list_value(), err); | 918 args.list_value(), err); |
920 } | 919 } |
921 | 920 |
922 } // namespace functions | 921 } // namespace functions |
OLD | NEW |