Add a .jq query to obtain the transitive closure of a whole module type.

Minor refactor for code reuse.

Change-Id: Id6c736a2937ac24319a8dd53086965f5505eb364
Test: ./build/bazel/json_module_graph/query.sh fullTransitiveModuleTypeDeps out/soong/module-graph.json android_app
Test: ./build/bazel/json_module_graph/query.sh fullTransitiveDeps out/soong/module-graph.json Music
Test: ./build/bazel/json_module_graph/query.sh modulesOfType out/soong/module-graph.json android_app
Bug: 198224074
4 files changed
tree: eb5f4a7487df619da8d259e420f187fcc684dbd9
  1. ci/
  2. docs/
  3. examples/
  4. json_module_graph/
  5. mk2rbc/
  6. platforms/
  7. product_variables/
  8. rules/
  9. rules_cc/
  10. scripts/
  11. tests/
  12. bazel.BUILD
  13. bazel.sh
  14. bazel.WORKSPACE
  15. common.bazelrc
  16. darwin.bazelrc
  17. linux.bazelrc
  18. OWNERS
  19. README.md
README.md

Bazel

The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.