This folder contains a set of utilities to manage products and build packages, i.e. files defined under //<layer>/{packages,products}.
This tool verifies that a given layer's packages/ and products/ directories are properly organized. It checks that:
all which contains all files in that subdirectory;The tool relies on a JSON validator commonly built as part of the Fuchsia build. The validator can be found at:
out/<build_type>/<host_toolchain>/json_validator
This tool generates a visualization of the package hierarchy for a given package file. The resulting graph file uses the DOT format.
python packages/visualize_hierarchy.py --package <topaz/packages/file> --output <graph.dot>
In order to generate an image file from the graph file, use the following command:
dot -Tpng <graph.dot> -o graph.png