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

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

Issue 2880093002: gn desc: printing public_deps without --all and --tree
Patch Set: Created 3 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
« no previous file with comments | « no previous file | tools/gn/desc_builder.cc » ('j') | tools/gn/target.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,
brettw 2017/05/23 17:23:05 Documentation formatting: Can you wrap this togeth
mbonadei1 2017/05/26 09:29:44 Done.
378 private and data deps.
379 If the command is invoked without --tree and --all deps will only include
380 private and data deps. In this case public deps will be printed as part of
brettw 2017/05/23 17:23:05 This says "deps" will include data deps, is that r
mbonadei1 2017/05/26 09:29:44 I am not sure I am following, let me try to rephra
381 the section "public_deps".
382 Deps will be sorted in order applying. The following may be used:
377 383
378 --all 384 --all
379 Collects all recursive dependencies and prints a sorted flat list. Also 385 Collects all recursive dependencies and prints a sorted flat list. Also
380 usable with --tree (see below). 386 usable with --tree (see below).
381 )" 387 )"
382 388
383 TARGET_PRINTING_MODE_COMMAND_LINE_HELP 389 TARGET_PRINTING_MODE_COMMAND_LINE_HELP
384 "\n" 390 "\n"
385 TARGET_TESTONLY_FILTER_COMMAND_LINE_HELP 391 TARGET_TESTONLY_FILTER_COMMAND_LINE_HELP
386 392
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 506
501 if (!PrintConfig(config, what_to_print, !multiple_outputs)) 507 if (!PrintConfig(config, what_to_print, !multiple_outputs))
502 return 1; 508 return 1;
503 } 509 }
504 } 510 }
505 511
506 return 0; 512 return 0;
507 } 513 }
508 514
509 } // namespace commands 515 } // namespace commands
OLDNEW
« no previous file with comments | « no previous file | tools/gn/desc_builder.cc » ('j') | tools/gn/target.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698