A Dune library (unwrapped) may include modules from multiple subdirectories. To support this in OBazl, we to be able to aggregate ocaml_library targets: if lib A depends on libs B and C, then A should provide all the deps of B and C.
Use case: the main dune file of the OCaml compiler:
A Dune library (unwrapped) may include modules from multiple subdirectories. To support this in OBazl, we to be able to aggregate
ocaml_library
targets: if lib A depends on libs B and C, then A should provide all the deps of B and C.Use case: the main dune file of the OCaml compiler:
The Bazel version of this would have an
ocaml_library
target in each of the subdirectories, and the main build file would have:and e.g.
//utils:ocamlcommon
would look like this: