Improve gn path command.

Finds only non-data dependencies by default. A new flag is added to include these. Normally users are only interested in linked dependencies.

Adds a --public flag to print only public dependencies.

Sorts any output first by public-ness, then by length of the path. This generally matches what users are looking for.

Review URL: https://codereview.chromium.org/1424313009

Cr-Original-Commit-Position: refs/heads/master@{#358051}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c20901b3694df1dfcd5197f6baead231c48de07f
1 file changed
tree: e638b3d8b293170a41f7208fa546ed6d863699a0
  1. tools/