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

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

Issue 1752033002: Add "create_bundle" target in order to support bundle with gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-bundle-data
Patch Set: Add unit tests, address comments, update docs and format with clang-format 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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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