android13/build/bazel/json_module_graph/fullTransitiveDepsPropertie...

17 lines
405 B
Plaintext

# CMD: Returns the properties of module types in the transitive closure of module $arg
include "library";
[((moduleGraphNoVariants | removeSelfEdges) as $m |
[$arg] |
transitiveDeps($m)) as $names |
.[] |
select (IN(.Name; $names | .[]))] |
group_by(.Type) |
map({Type: .[0].Type,
Props: map(.Module.Android.SetProperties) | flatten | map(.Name) | unique | sort }) |
sort_by(.Type)