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

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

Issue 206813002: Remove GN GYP generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « tools/gn/commands.h ('k') | tools/gn/copy_target_generator.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/commands.h" 5 #include "tools/gn/commands.h"
6 #include "tools/gn/filesystem_utils.h" 6 #include "tools/gn/filesystem_utils.h"
7 #include "tools/gn/item.h" 7 #include "tools/gn/item.h"
8 #include "tools/gn/label.h" 8 #include "tools/gn/label.h"
9 #include "tools/gn/setup.h" 9 #include "tools/gn/setup.h"
10 #include "tools/gn/standard_out.h" 10 #include "tools/gn/standard_out.h"
(...skipping 19 matching lines...) Expand all
30 static CommandInfoMap info_map; 30 static CommandInfoMap info_map;
31 if (info_map.empty()) { 31 if (info_map.empty()) {
32 #define INSERT_COMMAND(cmd) \ 32 #define INSERT_COMMAND(cmd) \
33 info_map[k##cmd] = CommandInfo(k##cmd##_HelpShort, \ 33 info_map[k##cmd] = CommandInfo(k##cmd##_HelpShort, \
34 k##cmd##_Help, \ 34 k##cmd##_Help, \
35 &Run##cmd); 35 &Run##cmd);
36 36
37 INSERT_COMMAND(Args) 37 INSERT_COMMAND(Args)
38 INSERT_COMMAND(Desc) 38 INSERT_COMMAND(Desc)
39 INSERT_COMMAND(Gen) 39 INSERT_COMMAND(Gen)
40 INSERT_COMMAND(Gyp)
41 INSERT_COMMAND(Help) 40 INSERT_COMMAND(Help)
42 INSERT_COMMAND(Refs) 41 INSERT_COMMAND(Refs)
43 42
44 #undef INSERT_COMMAND 43 #undef INSERT_COMMAND
45 } 44 }
46 return info_map; 45 return info_map;
47 } 46 }
48 47
49 const Target* GetTargetForDesc(const std::vector<std::string>& args) { 48 const Target* GetTargetForDesc(const std::vector<std::string>& args) {
50 // Deliberately leaked to avoid expensive process teardown. 49 // Deliberately leaked to avoid expensive process teardown.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 "The \"" + label.GetUserVisibleName(false) + "\" thing\n" 82 "The \"" + label.GetUserVisibleName(false) + "\" thing\n"
84 "is not a target. Somebody should probably implement this command for " 83 "is not a target. Somebody should probably implement this command for "
85 "other\nitem types."); 84 "other\nitem types.");
86 return NULL; 85 return NULL;
87 } 86 }
88 87
89 return target; 88 return target;
90 } 89 }
91 90
92 } // namespace commands 91 } // namespace commands
OLDNEW
« no previous file with comments | « tools/gn/commands.h ('k') | tools/gn/copy_target_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698