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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 FunctionInfoInitializer() { | 631 FunctionInfoInitializer() { |
632 #define INSERT_FUNCTION(command, is_target) \ | 632 #define INSERT_FUNCTION(command, is_target) \ |
633 map[k##command] = FunctionInfo(&Run##command, \ | 633 map[k##command] = FunctionInfo(&Run##command, \ |
634 k##command##_HelpShort, \ | 634 k##command##_HelpShort, \ |
635 k##command##_Help, \ | 635 k##command##_Help, \ |
636 is_target); | 636 is_target); |
637 | 637 |
638 INSERT_FUNCTION(Action, true) | 638 INSERT_FUNCTION(Action, true) |
639 INSERT_FUNCTION(ActionForEach, true) | 639 INSERT_FUNCTION(ActionForEach, true) |
640 INSERT_FUNCTION(Component, true) | 640 INSERT_FUNCTION(Component, true) |
| 641 INSERT_FUNCTION(Copy, true) |
641 INSERT_FUNCTION(Executable, true) | 642 INSERT_FUNCTION(Executable, true) |
642 INSERT_FUNCTION(Group, true) | 643 INSERT_FUNCTION(Group, true) |
643 INSERT_FUNCTION(SharedLibrary, true) | 644 INSERT_FUNCTION(SharedLibrary, true) |
644 INSERT_FUNCTION(SourceSet, true) | 645 INSERT_FUNCTION(SourceSet, true) |
645 INSERT_FUNCTION(StaticLibrary, true) | 646 INSERT_FUNCTION(StaticLibrary, true) |
646 INSERT_FUNCTION(Test, true) | 647 INSERT_FUNCTION(Test, true) |
647 | 648 |
648 INSERT_FUNCTION(Assert, false) | 649 INSERT_FUNCTION(Assert, false) |
649 INSERT_FUNCTION(Config, false) | 650 INSERT_FUNCTION(Config, false) |
650 INSERT_FUNCTION(Copy, 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(GetTargetOutputs, false) | 655 INSERT_FUNCTION(GetTargetOutputs, false) |
656 INSERT_FUNCTION(Import, false) | 656 INSERT_FUNCTION(Import, false) |
657 INSERT_FUNCTION(Print, false) | 657 INSERT_FUNCTION(Print, false) |
658 INSERT_FUNCTION(ProcessFileTemplate, false) | 658 INSERT_FUNCTION(ProcessFileTemplate, false) |
659 INSERT_FUNCTION(ReadFile, false) | 659 INSERT_FUNCTION(ReadFile, false) |
660 INSERT_FUNCTION(RebasePath, false) | 660 INSERT_FUNCTION(RebasePath, false) |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 return found_function->second.executed_block_runner( | 733 return found_function->second.executed_block_runner( |
734 function, args.list_value(), &block_scope, err); | 734 function, args.list_value(), &block_scope, err); |
735 } | 735 } |
736 | 736 |
737 // Otherwise it's a no-block function. | 737 // Otherwise it's a no-block function. |
738 return found_function->second.no_block_runner(scope, function, | 738 return found_function->second.no_block_runner(scope, function, |
739 args.list_value(), err); | 739 args.list_value(), err); |
740 } | 740 } |
741 | 741 |
742 } // namespace functions | 742 } // namespace functions |
OLD | NEW |