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

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

Issue 279023002: Add GN function get_label_info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comment Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/functions.h ('k') | tools/gn/gn.gyp » ('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 <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 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 INSERT_FUNCTION(SourceSet, true) 645 INSERT_FUNCTION(SourceSet, true)
646 INSERT_FUNCTION(StaticLibrary, true) 646 INSERT_FUNCTION(StaticLibrary, true)
647 INSERT_FUNCTION(Test, true) 647 INSERT_FUNCTION(Test, true)
648 648
649 INSERT_FUNCTION(Assert, false) 649 INSERT_FUNCTION(Assert, false)
650 INSERT_FUNCTION(Config, false) 650 INSERT_FUNCTION(Config, false)
651 INSERT_FUNCTION(DeclareArgs, false) 651 INSERT_FUNCTION(DeclareArgs, false)
652 INSERT_FUNCTION(Defined, false) 652 INSERT_FUNCTION(Defined, false)
653 INSERT_FUNCTION(ExecScript, false) 653 INSERT_FUNCTION(ExecScript, false)
654 INSERT_FUNCTION(GetEnv, false) 654 INSERT_FUNCTION(GetEnv, false)
655 INSERT_FUNCTION(GetLabelInfo, false)
655 INSERT_FUNCTION(GetTargetOutputs, false) 656 INSERT_FUNCTION(GetTargetOutputs, false)
656 INSERT_FUNCTION(Import, false) 657 INSERT_FUNCTION(Import, false)
657 INSERT_FUNCTION(Print, false) 658 INSERT_FUNCTION(Print, false)
658 INSERT_FUNCTION(ProcessFileTemplate, false) 659 INSERT_FUNCTION(ProcessFileTemplate, false)
659 INSERT_FUNCTION(ReadFile, false) 660 INSERT_FUNCTION(ReadFile, false)
660 INSERT_FUNCTION(RebasePath, false) 661 INSERT_FUNCTION(RebasePath, false)
661 INSERT_FUNCTION(SetDefaults, false) 662 INSERT_FUNCTION(SetDefaults, false)
662 INSERT_FUNCTION(SetDefaultToolchain, false) 663 INSERT_FUNCTION(SetDefaultToolchain, false)
663 INSERT_FUNCTION(SetSourcesAssignmentFilter, false) 664 INSERT_FUNCTION(SetSourcesAssignmentFilter, false)
664 INSERT_FUNCTION(Template, false) 665 INSERT_FUNCTION(Template, false)
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 return found_function->second.executed_block_runner( 734 return found_function->second.executed_block_runner(
734 function, args.list_value(), &block_scope, err); 735 function, args.list_value(), &block_scope, err);
735 } 736 }
736 737
737 // Otherwise it's a no-block function. 738 // Otherwise it's a no-block function.
738 return found_function->second.no_block_runner(scope, function, 739 return found_function->second.no_block_runner(scope, function,
739 args.list_value(), err); 740 args.list_value(), err);
740 } 741 }
741 742
742 } // namespace functions 743 } // namespace functions
OLDNEW
« no previous file with comments | « tools/gn/functions.h ('k') | tools/gn/gn.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698