[roll] Roll fuchsia [gn_desc] Add gn_desc cli tool

Adds the gn_desc cli tool that can parse gn's desc json
output, and provide a faster query method than re-running
all of GN for every query.

To use, add '//tools/gn_desc' to your host_tools list, or
use '--with-host //tools/gn_desc', followed by:
'fx build host-tools/gn_desc'

This will compile the tool, and run GN to create an
'<outdir>/gn_desc.json', which can then be used with
the tool to find targets:

fx gn_desc -v <outdir>/gn_desc.json match <foo> list

which will print out a list of targets that match the
regex <foo>.

Targets can be selected with:
- match -> regex on the target label
- match-file -> regex on the input and/or output files
- label -> an exact GN target (with toolchain if not default)

Then the commands for displaying the selected targets are:
- list -> the target's label
- summarize -> similar to gn desc, but with more control over
the outputs.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/810736
Original-Revision: 65fbfff5a7be8974f475134c0233b7e687beea2c
GitOrigin-RevId: f3d80f5bfae70cb7438d4d16ad2a539640bfc852
Change-Id: I827e617cd9dbb080ef4aacb900184dbafcd000bb
1 file changed
tree: b16e3bff18fdc15429669e1decee5797a7b72abd
  1. git-hooks/
  2. infra/
  3. third_party/
  4. cts
  5. firmware
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
  14. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.