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

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

Issue 2880093002: gn desc: printing public_deps without --all and --tree
Patch Set: addressing some comments Created 3 years, 6 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 | « no previous file | tools/gn/desc_builder.cc » ('j') | tools/gn/desc_builder.cc » ('J')
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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 Configs can have child configs. Specifying --tree will show the hierarchy. 365 Configs can have child configs. Specifying --tree will show the hierarchy.
366 366
367 Printing outputs 367 Printing outputs
368 368
369 The "outputs" section will list all outputs that apply, including the outputs 369 The "outputs" section will list all outputs that apply, including the outputs
370 computed from the tool definition (eg for "executable", "static_library", ... 370 computed from the tool definition (eg for "executable", "static_library", ...
371 targets). 371 targets).
372 372
373 Printing deps 373 Printing deps
374 374
375 Deps will include all public, private, and data deps (TODO this could be 375 Deps could include public, private and data deps.
376 clarified and enhanced) sorted in order applying. The following may be used: 376
377 If the command is invoked with --tree or --all, deps will include all public,
378 private and data deps. If the command is invoked without --tree and --all deps
379 will only include private and data deps. In this case public deps will be
380 printed as part of the section "public_deps". Deps will be sorted in order
381 applying. The following may be used:
377 382
378 --all 383 --all
379 Collects all recursive dependencies and prints a sorted flat list. Also 384 Collects all recursive dependencies and prints a sorted flat list. Also
380 usable with --tree (see below). 385 usable with --tree (see below).
381 )" 386 )"
382 387
383 TARGET_PRINTING_MODE_COMMAND_LINE_HELP 388 TARGET_PRINTING_MODE_COMMAND_LINE_HELP
384 "\n" 389 "\n"
385 TARGET_TESTONLY_FILTER_COMMAND_LINE_HELP 390 TARGET_TESTONLY_FILTER_COMMAND_LINE_HELP
386 391
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 505
501 if (!PrintConfig(config, what_to_print, !multiple_outputs)) 506 if (!PrintConfig(config, what_to_print, !multiple_outputs))
502 return 1; 507 return 1;
503 } 508 }
504 } 509 }
505 510
506 return 0; 511 return 0;
507 } 512 }
508 513
509 } // namespace commands 514 } // namespace commands
OLDNEW
« no previous file with comments | « no previous file | tools/gn/desc_builder.cc » ('j') | tools/gn/desc_builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698