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

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

Issue 1386783003: [GN]: Support for loadable modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "tools/gn/builder.h" 8 #include "tools/gn/builder.h"
9 #include "tools/gn/filesystem_utils.h" 9 #include "tools/gn/filesystem_utils.h"
10 #include "tools/gn/item.h" 10 #include "tools/gn/item.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 return true; 183 return true;
184 } 184 }
185 if (value == "executable") { 185 if (value == "executable") {
186 *type = Target::EXECUTABLE; 186 *type = Target::EXECUTABLE;
187 return true; 187 return true;
188 } 188 }
189 if (value == "shared_library") { 189 if (value == "shared_library") {
190 *type = Target::SHARED_LIBRARY; 190 *type = Target::SHARED_LIBRARY;
191 return true; 191 return true;
192 } 192 }
193 if (value == "loadable_module") {
194 *type = Target::LOADABLE_MODULE;
195 return true;
196 }
193 if (value == "static_library") { 197 if (value == "static_library") {
194 *type = Target::STATIC_LIBRARY; 198 *type = Target::STATIC_LIBRARY;
195 return true; 199 return true;
196 } 200 }
197 if (value == "source_set") { 201 if (value == "source_set") {
198 *type = Target::SOURCE_SET; 202 *type = Target::SOURCE_SET;
199 return true; 203 return true;
200 } 204 }
201 if (value == "copy") { 205 if (value == "copy") {
202 *type = Target::COPY_FILES; 206 *type = Target::COPY_FILES;
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 } 494 }
491 } 495 }
492 496
493 void FilterAndPrintTargetSet(bool indent, 497 void FilterAndPrintTargetSet(bool indent,
494 const std::set<const Target*>& targets) { 498 const std::set<const Target*>& targets) {
495 std::vector<const Target*> target_vector(targets.begin(), targets.end()); 499 std::vector<const Target*> target_vector(targets.begin(), targets.end());
496 FilterAndPrintTargets(indent, &target_vector); 500 FilterAndPrintTargets(indent, &target_vector);
497 } 501 }
498 502
499 } // namespace commands 503 } // namespace commands
OLDNEW
« no previous file with comments | « tools/gn/commands.h ('k') | tools/gn/docs/faq.md » ('j') | tools/gn/function_toolchain.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698