You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| README.md | 3 years ago | |
| directDeps.jq | 3 years ago | |
| distanceFromLeaves.jq | 3 years ago | |
| filterSubtree.jq | 3 years ago | |
| fullTransitiveDeps.jq | 3 years ago | |
| library.jq | 3 years ago | |
| printModule.jq | 3 years ago | |
| query.sh | 3 years ago | |
| transitiveDeps.jq | 3 years ago | |
| usedVariations.jq | 3 years ago | |
| variantTransitions.jq | 3 years ago | |
README.md
JSON module graph queries
This directory contains jq scripts that query Soong's module graph.
It uses the JSON module graph that Soongs dumps when the
SOONG_DUMP_JSON_MODULE_GRAPH environment variable is set.
Usage:
SOONG_DUMP_JSON_MODULE_GRAPH=<some file> m nothing
query.sh [-C] <command> <some file> [argument]
The following commands are available:
printModuleprints all variations of a given modulefilterSubtreedumps only those modules that are in the given subtree of the source treedirectDepsprints the names of the direct dependencies of the given moduletransitiveDepsprints the names of the transitive dependencies of the given modulefullTransitiveDepsreturns the full transitive dependencies of the given moduledistanceFromLeavesprints the longest distance each module has from a leaf in the module graph within the transitive closure of given moduleusedVariationsreturns a map that shows which variations are used in the input and what values they takevariantTransitionssummarizes the variant transitions in the transitive closure of the given module
It's best to filter the full module graph to the part you are interested in
because jq isn't too fast on the full graph.