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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 FunctionInfoInitializer() { | 797 FunctionInfoInitializer() { |
798 #define INSERT_FUNCTION(command, is_target) \ | 798 #define INSERT_FUNCTION(command, is_target) \ |
799 map[k##command] = FunctionInfo(&Run##command, \ | 799 map[k##command] = FunctionInfo(&Run##command, \ |
800 k##command##_HelpShort, \ | 800 k##command##_HelpShort, \ |
801 k##command##_Help, \ | 801 k##command##_Help, \ |
802 is_target); | 802 is_target); |
803 | 803 |
804 INSERT_FUNCTION(Action, true) | 804 INSERT_FUNCTION(Action, true) |
805 INSERT_FUNCTION(ActionForEach, true) | 805 INSERT_FUNCTION(ActionForEach, true) |
806 INSERT_FUNCTION(BundleData, true) | 806 INSERT_FUNCTION(BundleData, true) |
| 807 INSERT_FUNCTION(CreateBundle, true) |
807 INSERT_FUNCTION(Copy, true) | 808 INSERT_FUNCTION(Copy, true) |
808 INSERT_FUNCTION(Executable, true) | 809 INSERT_FUNCTION(Executable, true) |
809 INSERT_FUNCTION(Group, true) | 810 INSERT_FUNCTION(Group, true) |
810 INSERT_FUNCTION(LoadableModule, true) | 811 INSERT_FUNCTION(LoadableModule, true) |
811 INSERT_FUNCTION(SharedLibrary, true) | 812 INSERT_FUNCTION(SharedLibrary, true) |
812 INSERT_FUNCTION(SourceSet, true) | 813 INSERT_FUNCTION(SourceSet, true) |
813 INSERT_FUNCTION(StaticLibrary, true) | 814 INSERT_FUNCTION(StaticLibrary, true) |
814 INSERT_FUNCTION(Target, true) | 815 INSERT_FUNCTION(Target, true) |
815 | 816 |
816 INSERT_FUNCTION(Assert, false) | 817 INSERT_FUNCTION(Assert, false) |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 } | 921 } |
921 | 922 |
922 // Otherwise it's a no-block function. | 923 // Otherwise it's a no-block function. |
923 if (!VerifyNoBlockForFunctionCall(function, block, err)) | 924 if (!VerifyNoBlockForFunctionCall(function, block, err)) |
924 return Value(); | 925 return Value(); |
925 return found_function->second.no_block_runner(scope, function, | 926 return found_function->second.no_block_runner(scope, function, |
926 args.list_value(), err); | 927 args.list_value(), err); |
927 } | 928 } |
928 | 929 |
929 } // namespace functions | 930 } // namespace functions |
OLD | NEW |