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 782 matching lines...) Loading... |
793 map[k##command] = FunctionInfo(&Run##command, \ | 793 map[k##command] = FunctionInfo(&Run##command, \ |
794 k##command##_HelpShort, \ | 794 k##command##_HelpShort, \ |
795 k##command##_Help, \ | 795 k##command##_Help, \ |
796 is_target); | 796 is_target); |
797 | 797 |
798 INSERT_FUNCTION(Action, true) | 798 INSERT_FUNCTION(Action, true) |
799 INSERT_FUNCTION(ActionForEach, true) | 799 INSERT_FUNCTION(ActionForEach, true) |
800 INSERT_FUNCTION(Copy, true) | 800 INSERT_FUNCTION(Copy, true) |
801 INSERT_FUNCTION(Executable, true) | 801 INSERT_FUNCTION(Executable, true) |
802 INSERT_FUNCTION(Group, true) | 802 INSERT_FUNCTION(Group, true) |
| 803 INSERT_FUNCTION(LoadableModule, true) |
803 INSERT_FUNCTION(SharedLibrary, true) | 804 INSERT_FUNCTION(SharedLibrary, true) |
804 INSERT_FUNCTION(SourceSet, true) | 805 INSERT_FUNCTION(SourceSet, true) |
805 INSERT_FUNCTION(StaticLibrary, true) | 806 INSERT_FUNCTION(StaticLibrary, true) |
806 INSERT_FUNCTION(Target, true) | 807 INSERT_FUNCTION(Target, true) |
807 | 808 |
808 INSERT_FUNCTION(Assert, false) | 809 INSERT_FUNCTION(Assert, false) |
809 INSERT_FUNCTION(Config, false) | 810 INSERT_FUNCTION(Config, false) |
810 INSERT_FUNCTION(DeclareArgs, false) | 811 INSERT_FUNCTION(DeclareArgs, false) |
811 INSERT_FUNCTION(Defined, false) | 812 INSERT_FUNCTION(Defined, false) |
812 INSERT_FUNCTION(ExecScript, false) | 813 INSERT_FUNCTION(ExecScript, false) |
(...skipping 99 matching lines...) Loading... |
912 } | 913 } |
913 | 914 |
914 // Otherwise it's a no-block function. | 915 // Otherwise it's a no-block function. |
915 if (!VerifyNoBlockForFunctionCall(function, block, err)) | 916 if (!VerifyNoBlockForFunctionCall(function, block, err)) |
916 return Value(); | 917 return Value(); |
917 return found_function->second.no_block_runner(scope, function, | 918 return found_function->second.no_block_runner(scope, function, |
918 args.list_value(), err); | 919 args.list_value(), err); |
919 } | 920 } |
920 | 921 |
921 } // namespace functions | 922 } // namespace functions |
OLD | NEW |