| 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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 | 796 |
| 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(Copy, true) | 807 INSERT_FUNCTION(Copy, true) |
| 807 INSERT_FUNCTION(Executable, true) | 808 INSERT_FUNCTION(Executable, true) |
| 808 INSERT_FUNCTION(Group, true) | 809 INSERT_FUNCTION(Group, true) |
| 809 INSERT_FUNCTION(LoadableModule, true) | 810 INSERT_FUNCTION(LoadableModule, true) |
| 810 INSERT_FUNCTION(SharedLibrary, true) | 811 INSERT_FUNCTION(SharedLibrary, true) |
| 811 INSERT_FUNCTION(SourceSet, true) | 812 INSERT_FUNCTION(SourceSet, true) |
| 812 INSERT_FUNCTION(StaticLibrary, true) | 813 INSERT_FUNCTION(StaticLibrary, true) |
| 813 INSERT_FUNCTION(Target, true) | 814 INSERT_FUNCTION(Target, true) |
| 814 | 815 |
| 815 INSERT_FUNCTION(Assert, false) | 816 INSERT_FUNCTION(Assert, false) |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 } | 920 } |
| 920 | 921 |
| 921 // Otherwise it's a no-block function. | 922 // Otherwise it's a no-block function. |
| 922 if (!VerifyNoBlockForFunctionCall(function, block, err)) | 923 if (!VerifyNoBlockForFunctionCall(function, block, err)) |
| 923 return Value(); | 924 return Value(); |
| 924 return found_function->second.no_block_runner(scope, function, | 925 return found_function->second.no_block_runner(scope, function, |
| 925 args.list_value(), err); | 926 args.list_value(), err); |
| 926 } | 927 } |
| 927 | 928 |
| 928 } // namespace functions | 929 } // namespace functions |
| OLD | NEW |