| 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/variables.h" | 5 #include "tools/gn/variables.h" |
| 6 | 6 |
| 7 namespace variables { | 7 namespace variables { |
| 8 | 8 |
| 9 // Built-in variables ---------------------------------------------------------- | 9 // Built-in variables ---------------------------------------------------------- |
| 10 | 10 |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 " cflags = [ ... ]\n" | 567 " cflags = [ ... ]\n" |
| 568 " }\n" | 568 " }\n" |
| 569 " config(\"default_optimization\") {\n" | 569 " config(\"default_optimization\") {\n" |
| 570 " if (optimize_everything) {\n" | 570 " if (optimize_everything) {\n" |
| 571 " configs = [ \":super_optimization\" ]\n" | 571 " configs = [ \":super_optimization\" ]\n" |
| 572 " } else {\n" | 572 " } else {\n" |
| 573 " configs = [ \":no_optimization\" ]\n" | 573 " configs = [ \":no_optimization\" ]\n" |
| 574 " }\n" | 574 " }\n" |
| 575 " }\n"; | 575 " }\n"; |
| 576 | 576 |
| 577 const char kConsole[] = "console"; |
| 578 const char kConsole_HelpShort[] = |
| 579 "console [boolean]: Run this action in the console pool."; |
| 580 const char kConsole_Help[] = |
| 581 "console: Run this action in the console pool.\n" |
| 582 "\n" |
| 583 " Boolean. Defaults to false.\n" |
| 584 "\n" |
| 585 " Actions marked \"console = true\" will be run in the built-in ninja\n" |
| 586 " \"console\" pool. They will have access to real stdin and stdout, and\n" |
| 587 " output will not be buffered by ninja. This can be useful for\n" |
| 588 " long-running actions with progress logs, or actions that require user \n" |
| 589 " input.\n" |
| 590 "\n" |
| 591 " Only one console pool target can run at any one time in Ninja. Refer\n" |
| 592 " to the Ninja documentation on the console pool for more info.\n" |
| 593 "\n" |
| 594 "Example\n" |
| 595 "\n" |
| 596 " action(\"long_action_with_progress_logs\") {\n" |
| 597 " console = true\n" |
| 598 " }\n"; |
| 599 |
| 577 const char kData[] = "data"; | 600 const char kData[] = "data"; |
| 578 const char kData_HelpShort[] = | 601 const char kData_HelpShort[] = |
| 579 "data: [file list] Runtime data file dependencies."; | 602 "data: [file list] Runtime data file dependencies."; |
| 580 const char kData_Help[] = | 603 const char kData_Help[] = |
| 581 "data: Runtime data file dependencies.\n" | 604 "data: Runtime data file dependencies.\n" |
| 582 "\n" | 605 "\n" |
| 583 " Lists files or directories required to run the given target. These are\n" | 606 " Lists files or directories required to run the given target. These are\n" |
| 584 " typically data files or directories of data files. The paths are\n" | 607 " typically data files or directories of data files. The paths are\n" |
| 585 " interpreted as being relative to the current build file. Since these\n" | 608 " interpreted as being relative to the current build file. Since these\n" |
| 586 " are runtime dependencies, they do not affect which targets are built\n" | 609 " are runtime dependencies, they do not affect which targets are built\n" |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 INSERT_VARIABLE(AllowCircularIncludesFrom) | 1265 INSERT_VARIABLE(AllowCircularIncludesFrom) |
| 1243 INSERT_VARIABLE(Args) | 1266 INSERT_VARIABLE(Args) |
| 1244 INSERT_VARIABLE(Cflags) | 1267 INSERT_VARIABLE(Cflags) |
| 1245 INSERT_VARIABLE(CflagsC) | 1268 INSERT_VARIABLE(CflagsC) |
| 1246 INSERT_VARIABLE(CflagsCC) | 1269 INSERT_VARIABLE(CflagsCC) |
| 1247 INSERT_VARIABLE(CflagsObjC) | 1270 INSERT_VARIABLE(CflagsObjC) |
| 1248 INSERT_VARIABLE(CflagsObjCC) | 1271 INSERT_VARIABLE(CflagsObjCC) |
| 1249 INSERT_VARIABLE(CheckIncludes) | 1272 INSERT_VARIABLE(CheckIncludes) |
| 1250 INSERT_VARIABLE(CompleteStaticLib) | 1273 INSERT_VARIABLE(CompleteStaticLib) |
| 1251 INSERT_VARIABLE(Configs) | 1274 INSERT_VARIABLE(Configs) |
| 1275 INSERT_VARIABLE(Console) |
| 1252 INSERT_VARIABLE(Data) | 1276 INSERT_VARIABLE(Data) |
| 1253 INSERT_VARIABLE(DataDeps) | 1277 INSERT_VARIABLE(DataDeps) |
| 1254 INSERT_VARIABLE(Defines) | 1278 INSERT_VARIABLE(Defines) |
| 1255 INSERT_VARIABLE(Depfile) | 1279 INSERT_VARIABLE(Depfile) |
| 1256 INSERT_VARIABLE(Deps) | 1280 INSERT_VARIABLE(Deps) |
| 1257 INSERT_VARIABLE(ForwardDependentConfigsFrom) | 1281 INSERT_VARIABLE(ForwardDependentConfigsFrom) |
| 1258 INSERT_VARIABLE(IncludeDirs) | 1282 INSERT_VARIABLE(IncludeDirs) |
| 1259 INSERT_VARIABLE(Inputs) | 1283 INSERT_VARIABLE(Inputs) |
| 1260 INSERT_VARIABLE(Ldflags) | 1284 INSERT_VARIABLE(Ldflags) |
| 1261 INSERT_VARIABLE(Libs) | 1285 INSERT_VARIABLE(Libs) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1272 INSERT_VARIABLE(Sources) | 1296 INSERT_VARIABLE(Sources) |
| 1273 INSERT_VARIABLE(Testonly) | 1297 INSERT_VARIABLE(Testonly) |
| 1274 INSERT_VARIABLE(Visibility) | 1298 INSERT_VARIABLE(Visibility) |
| 1275 } | 1299 } |
| 1276 return info_map; | 1300 return info_map; |
| 1277 } | 1301 } |
| 1278 | 1302 |
| 1279 #undef INSERT_VARIABLE | 1303 #undef INSERT_VARIABLE |
| 1280 | 1304 |
| 1281 } // namespace variables | 1305 } // namespace variables |
| OLD | NEW |