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

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

Issue 2880093002: gn desc: printing public_deps without --all and --tree
Patch Set: adding data_deps and linked_deps 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') | 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 <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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 all_dependent_configs 308 all_dependent_configs
309 allow_circular_includes_from 309 allow_circular_includes_from
310 arflags [--blame] 310 arflags [--blame]
311 args 311 args
312 cflags [--blame] 312 cflags [--blame]
313 cflags_cc [--blame] 313 cflags_cc [--blame]
314 cflags_cxx [--blame] 314 cflags_cxx [--blame]
315 check_includes 315 check_includes
316 configs [--tree] (see below) 316 configs [--tree] (see below)
317 data_deps (see below)
317 defines [--blame] 318 defines [--blame]
318 depfile 319 depfile
319 deps [--all] [--tree] (see below) 320 deps [--all] [--tree] (see below)
320 include_dirs [--blame] 321 include_dirs [--blame]
321 inputs 322 inputs
322 ldflags [--blame] 323 ldflags [--blame]
323 lib_dirs 324 lib_dirs
324 libs 325 libs
326 linked_deps (see below)
325 outputs 327 outputs
328 public
326 public_configs 329 public_configs
327 public 330 public_deps (see below)
328 script 331 script
329 sources 332 sources
330 testonly 333 testonly
331 visibility 334 visibility
332 335
333 runtime_deps 336 runtime_deps
334 Compute all runtime deps for the given target. This is a computed list 337 Compute all runtime deps for the given target. This is a computed list
335 and does not correspond to any GN variable, unlike most other values 338 and does not correspond to any GN variable, unlike most other values
336 here. 339 here.
337 340
(...skipping 27 matching lines...) Expand all
365 Configs can have child configs. Specifying --tree will show the hierarchy. 368 Configs can have child configs. Specifying --tree will show the hierarchy.
366 369
367 Printing outputs 370 Printing outputs
368 371
369 The "outputs" section will list all outputs that apply, including the outputs 372 The "outputs" section will list all outputs that apply, including the outputs
370 computed from the tool definition (eg for "executable", "static_library", ... 373 computed from the tool definition (eg for "executable", "static_library", ...
371 targets). 374 targets).
372 375
373 Printing deps 376 Printing deps
374 377
375 Deps will include all public, private, and data deps (TODO this could be 378 There are 4 different fields which contain information about deps:
376 clarified and enhanced) sorted in order applying. The following may be used: 379
380 - deps: if the command is invoked without --tree and --all it just
brettw 2017/06/08 18:02:52 The formatting I would use in other places to avoi
mbonadei1 2017/06/09 11:16:36 Done.
381 includes private deps (see below for --tree and --all);
382 - public_deps: if the command is invoked without --tree and --all it
383 includes public deps. If the command is invoked with --tree or --all
384 this field is not printed;
385 - data_deps: includes data deps;
386 - linked_deps: includes public and private deps sorted in order applying.
387
388 The following may be used:
377 389
378 --all 390 --all
379 Collects all recursive dependencies and prints a sorted flat list. Also 391 Collects all recursive dependencies and prints a sorted flat list. Also
380 usable with --tree (see below). 392 usable with --tree (see below).
381 )" 393 )"
382 394
383 TARGET_PRINTING_MODE_COMMAND_LINE_HELP 395 TARGET_PRINTING_MODE_COMMAND_LINE_HELP
384 "\n" 396 "\n"
385 TARGET_TESTONLY_FILTER_COMMAND_LINE_HELP 397 TARGET_TESTONLY_FILTER_COMMAND_LINE_HELP
386 398
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 512
501 if (!PrintConfig(config, what_to_print, !multiple_outputs)) 513 if (!PrintConfig(config, what_to_print, !multiple_outputs))
502 return 1; 514 return 1;
503 } 515 }
504 } 516 }
505 517
506 return 0; 518 return 0;
507 } 519 }
508 520
509 } // namespace commands 521 } // namespace commands
OLDNEW
« no previous file with comments | « no previous file | tools/gn/desc_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698