Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Side by Side Diff: tools/gn/functions.cc

Issue 1751903003: Add "bundle_data" target as first step for adding bundle support to gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-typos
Patch Set: Rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/functions.h ('k') | tools/gn/functions_target.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « tools/gn/functions.h ('k') | tools/gn/functions_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698