Create a tool to list source file dependencies for libunwindstack

The output format of this tool is the same as the "sources = [ ... ]"
format used by GN. The tool is helpful because otherwise it's very
difficult to determine the full list of header files needed by
libunwindstack to compile: the compilation will succeed even if those
header files aren't listed in the sources list.

In a follow-up CL, I'm planning to split this tool out into two
subcommands: `print` (which is the tool implemented in this CL) and
`prune`, which deletes source files in the src/ directory that aren't
required to compile.

Bug: 991960
Change-Id: Ibdcfbc10dc7f37908139658dc8c90b6b71cd2d1b
Reviewed-by: Mike Wittman <>
2 files changed
tree: 5434040cc301faf9d069bfbf1c44645817dc9596
  1. .clang-format
  5. README.chromium
  6. patches/
  7. src/
  8. tools/