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

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

Issue 516703005: Remove built-in component and test targets from GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 <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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 636
637 FunctionInfoInitializer() { 637 FunctionInfoInitializer() {
638 #define INSERT_FUNCTION(command, is_target) \ 638 #define INSERT_FUNCTION(command, is_target) \
639 map[k##command] = FunctionInfo(&Run##command, \ 639 map[k##command] = FunctionInfo(&Run##command, \
640 k##command##_HelpShort, \ 640 k##command##_HelpShort, \
641 k##command##_Help, \ 641 k##command##_Help, \
642 is_target); 642 is_target);
643 643
644 INSERT_FUNCTION(Action, true) 644 INSERT_FUNCTION(Action, true)
645 INSERT_FUNCTION(ActionForEach, true) 645 INSERT_FUNCTION(ActionForEach, true)
646 INSERT_FUNCTION(Component, true)
647 INSERT_FUNCTION(Copy, true) 646 INSERT_FUNCTION(Copy, true)
648 INSERT_FUNCTION(Executable, true) 647 INSERT_FUNCTION(Executable, true)
649 INSERT_FUNCTION(Group, true) 648 INSERT_FUNCTION(Group, true)
650 INSERT_FUNCTION(SharedLibrary, true) 649 INSERT_FUNCTION(SharedLibrary, true)
651 INSERT_FUNCTION(SourceSet, true) 650 INSERT_FUNCTION(SourceSet, true)
652 INSERT_FUNCTION(StaticLibrary, true) 651 INSERT_FUNCTION(StaticLibrary, true)
653 INSERT_FUNCTION(Test, true)
654 652
655 INSERT_FUNCTION(Assert, false) 653 INSERT_FUNCTION(Assert, false)
656 INSERT_FUNCTION(Config, false) 654 INSERT_FUNCTION(Config, false)
657 INSERT_FUNCTION(DeclareArgs, false) 655 INSERT_FUNCTION(DeclareArgs, false)
658 INSERT_FUNCTION(Defined, false) 656 INSERT_FUNCTION(Defined, false)
659 INSERT_FUNCTION(ExecScript, false) 657 INSERT_FUNCTION(ExecScript, false)
660 INSERT_FUNCTION(ForEach, false) 658 INSERT_FUNCTION(ForEach, false)
661 INSERT_FUNCTION(GetEnv, false) 659 INSERT_FUNCTION(GetEnv, false)
662 INSERT_FUNCTION(GetLabelInfo, false) 660 INSERT_FUNCTION(GetLabelInfo, false)
663 INSERT_FUNCTION(GetPathInfo, false) 661 INSERT_FUNCTION(GetPathInfo, false)
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 return Value(); 745 return Value();
748 return result; 746 return result;
749 } 747 }
750 748
751 // Otherwise it's a no-block function. 749 // Otherwise it's a no-block function.
752 return found_function->second.no_block_runner(scope, function, 750 return found_function->second.no_block_runner(scope, function,
753 args.list_value(), err); 751 args.list_value(), err);
754 } 752 }
755 753
756 } // namespace functions 754 } // 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