| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <iostream> | 8 #include <iostream> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 const char kPool_HelpShort[] = | 685 const char kPool_HelpShort[] = |
| 686 "pool: Defines a pool object."; | 686 "pool: Defines a pool object."; |
| 687 const char kPool_Help[] = | 687 const char kPool_Help[] = |
| 688 "pool: Defines a pool object.\n" | 688 "pool: Defines a pool object.\n" |
| 689 "\n" | 689 "\n" |
| 690 " Pool objects can be applied to a tool to limit the parallelism of the\n" | 690 " Pool objects can be applied to a tool to limit the parallelism of the\n" |
| 691 " build. This object has a single property \"depth\" corresponding to\n" | 691 " build. This object has a single property \"depth\" corresponding to\n" |
| 692 " the number of tasks that may run simultaneously.\n" | 692 " the number of tasks that may run simultaneously.\n" |
| 693 "\n" | 693 "\n" |
| 694 " As the file containing the pool definition may be executed in the\n" | 694 " As the file containing the pool definition may be executed in the\n" |
| 695 " of more than one toolchain it is recommended to specify an explicit\n" | 695 " context of more than one toolchain it is recommended to specify an\n" |
| 696 " toolchain when definining and referencing a pool.\n" | 696 " explicit toolchain when defining and referencing a pool.\n" |
| 697 "\n" | 697 "\n" |
| 698 " A pool is referenced by its label just like a target.\n" | 698 " A pool is referenced by its label just like a target.\n" |
| 699 "\n" | 699 "\n" |
| 700 "Variables\n" | 700 "Variables\n" |
| 701 "\n" | 701 "\n" |
| 702 " depth*\n" | 702 " depth*\n" |
| 703 " * = required\n" | 703 " * = required\n" |
| 704 "\n" | 704 "\n" |
| 705 "Example\n" | 705 "Example\n" |
| 706 "\n" | 706 "\n" |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 } | 1011 } |
| 1012 | 1012 |
| 1013 // Otherwise it's a no-block function. | 1013 // Otherwise it's a no-block function. |
| 1014 if (!VerifyNoBlockForFunctionCall(function, block, err)) | 1014 if (!VerifyNoBlockForFunctionCall(function, block, err)) |
| 1015 return Value(); | 1015 return Value(); |
| 1016 return found_function->second.no_block_runner(scope, function, | 1016 return found_function->second.no_block_runner(scope, function, |
| 1017 args.list_value(), err); | 1017 args.list_value(), err); |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 } // namespace functions | 1020 } // namespace functions |
| OLD | NEW |