| 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 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 } | 873 } |
| 875 | 874 |
| 876 // Otherwise it's a no-block function. | 875 // Otherwise it's a no-block function. |
| 877 if (!VerifyNoBlockForFunctionCall(function, block, err)) | 876 if (!VerifyNoBlockForFunctionCall(function, block, err)) |
| 878 return Value(); | 877 return Value(); |
| 879 return found_function->second.no_block_runner(scope, function, | 878 return found_function->second.no_block_runner(scope, function, |
| 880 args.list_value(), err); | 879 args.list_value(), err); |
| 881 } | 880 } |
| 882 | 881 |
| 883 } // namespace functions | 882 } // namespace functions |
| OLD | NEW |