| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| 381 if the command is invoked without --tree and --all it just includes |
| 382 private deps (see below for --tree and --all); |
| 383 public_deps |
| 384 if the command is invoked without --tree and --all it includes public |
| 385 deps. If the command is invoked with --tree or --all this field is not |
| 386 printed; |
| 387 data_deps |
| 388 includes data deps; |
| 389 linked_deps |
| 390 includes public and private deps sorted in order applying. |
| 391 |
| 392 The following may be used: |
| 377 | 393 |
| 378 --all | 394 --all |
| 379 Collects all recursive dependencies and prints a sorted flat list. Also | 395 Collects all recursive dependencies and prints a sorted flat list. Also |
| 380 usable with --tree (see below). | 396 usable with --tree (see below). |
| 381 )" | 397 )" |
| 382 | 398 |
| 383 TARGET_PRINTING_MODE_COMMAND_LINE_HELP | 399 TARGET_PRINTING_MODE_COMMAND_LINE_HELP |
| 384 "\n" | 400 "\n" |
| 385 TARGET_TESTONLY_FILTER_COMMAND_LINE_HELP | 401 TARGET_TESTONLY_FILTER_COMMAND_LINE_HELP |
| 386 | 402 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 516 |
| 501 if (!PrintConfig(config, what_to_print, !multiple_outputs)) | 517 if (!PrintConfig(config, what_to_print, !multiple_outputs)) |
| 502 return 1; | 518 return 1; |
| 503 } | 519 } |
| 504 } | 520 } |
| 505 | 521 |
| 506 return 0; | 522 return 0; |
| 507 } | 523 } |
| 508 | 524 |
| 509 } // namespace commands | 525 } // namespace commands |
| OLD | NEW |