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/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "tools/gn/config.h" | 10 #include "tools/gn/config.h" |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 INSERT_FUNCTION(Print) | 505 INSERT_FUNCTION(Print) |
506 INSERT_FUNCTION(ProcessFileTemplate) | 506 INSERT_FUNCTION(ProcessFileTemplate) |
507 INSERT_FUNCTION(ReadFile) | 507 INSERT_FUNCTION(ReadFile) |
508 INSERT_FUNCTION(SetDefaults) | 508 INSERT_FUNCTION(SetDefaults) |
509 INSERT_FUNCTION(SetDefaultToolchain) | 509 INSERT_FUNCTION(SetDefaultToolchain) |
510 INSERT_FUNCTION(SetSourcesAssignmentFilter) | 510 INSERT_FUNCTION(SetSourcesAssignmentFilter) |
511 INSERT_FUNCTION(SharedLibrary) | 511 INSERT_FUNCTION(SharedLibrary) |
512 INSERT_FUNCTION(StaticLibrary) | 512 INSERT_FUNCTION(StaticLibrary) |
513 INSERT_FUNCTION(Template) | 513 INSERT_FUNCTION(Template) |
514 INSERT_FUNCTION(Test) | 514 INSERT_FUNCTION(Test) |
| 515 INSERT_FUNCTION(ToBuildPath) |
515 INSERT_FUNCTION(Tool) | 516 INSERT_FUNCTION(Tool) |
516 INSERT_FUNCTION(Toolchain) | 517 INSERT_FUNCTION(Toolchain) |
517 INSERT_FUNCTION(ToolchainArgs) | 518 INSERT_FUNCTION(ToolchainArgs) |
518 INSERT_FUNCTION(WriteFile) | 519 INSERT_FUNCTION(WriteFile) |
519 | 520 |
520 #undef INSERT_FUNCTION | 521 #undef INSERT_FUNCTION |
521 } | 522 } |
522 }; | 523 }; |
523 const FunctionInfoInitializer function_info; | 524 const FunctionInfoInitializer function_info; |
524 | 525 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 return found_function->second.executed_block_runner( | 585 return found_function->second.executed_block_runner( |
585 function, args.list_value(), &block_scope, err); | 586 function, args.list_value(), &block_scope, err); |
586 } | 587 } |
587 | 588 |
588 // Otherwise it's a no-block function. | 589 // Otherwise it's a no-block function. |
589 return found_function->second.no_block_runner(scope, function, | 590 return found_function->second.no_block_runner(scope, function, |
590 args.list_value(), err); | 591 args.list_value(), err); |
591 } | 592 } |
592 | 593 |
593 } // namespace functions | 594 } // namespace functions |
OLD | NEW |