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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 INSERT_FUNCTION(SourceSet, true) | 645 INSERT_FUNCTION(SourceSet, true) |
646 INSERT_FUNCTION(StaticLibrary, true) | 646 INSERT_FUNCTION(StaticLibrary, true) |
647 INSERT_FUNCTION(Test, true) | 647 INSERT_FUNCTION(Test, true) |
648 | 648 |
649 INSERT_FUNCTION(Assert, false) | 649 INSERT_FUNCTION(Assert, false) |
650 INSERT_FUNCTION(Config, false) | 650 INSERT_FUNCTION(Config, false) |
651 INSERT_FUNCTION(DeclareArgs, false) | 651 INSERT_FUNCTION(DeclareArgs, false) |
652 INSERT_FUNCTION(Defined, false) | 652 INSERT_FUNCTION(Defined, false) |
653 INSERT_FUNCTION(ExecScript, false) | 653 INSERT_FUNCTION(ExecScript, false) |
654 INSERT_FUNCTION(GetEnv, false) | 654 INSERT_FUNCTION(GetEnv, false) |
| 655 INSERT_FUNCTION(GetLabelInfo, false) |
655 INSERT_FUNCTION(GetTargetOutputs, false) | 656 INSERT_FUNCTION(GetTargetOutputs, false) |
656 INSERT_FUNCTION(Import, false) | 657 INSERT_FUNCTION(Import, false) |
657 INSERT_FUNCTION(Print, false) | 658 INSERT_FUNCTION(Print, false) |
658 INSERT_FUNCTION(ProcessFileTemplate, false) | 659 INSERT_FUNCTION(ProcessFileTemplate, false) |
659 INSERT_FUNCTION(ReadFile, false) | 660 INSERT_FUNCTION(ReadFile, false) |
660 INSERT_FUNCTION(RebasePath, false) | 661 INSERT_FUNCTION(RebasePath, false) |
661 INSERT_FUNCTION(SetDefaults, false) | 662 INSERT_FUNCTION(SetDefaults, false) |
662 INSERT_FUNCTION(SetDefaultToolchain, false) | 663 INSERT_FUNCTION(SetDefaultToolchain, false) |
663 INSERT_FUNCTION(SetSourcesAssignmentFilter, false) | 664 INSERT_FUNCTION(SetSourcesAssignmentFilter, false) |
664 INSERT_FUNCTION(Template, false) | 665 INSERT_FUNCTION(Template, false) |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 return found_function->second.executed_block_runner( | 734 return found_function->second.executed_block_runner( |
734 function, args.list_value(), &block_scope, err); | 735 function, args.list_value(), &block_scope, err); |
735 } | 736 } |
736 | 737 |
737 // Otherwise it's a no-block function. | 738 // Otherwise it's a no-block function. |
738 return found_function->second.no_block_runner(scope, function, | 739 return found_function->second.no_block_runner(scope, function, |
739 args.list_value(), err); | 740 args.list_value(), err); |
740 } | 741 } |
741 | 742 |
742 } // namespace functions | 743 } // namespace functions |
OLD | NEW |