Module B0_ocaml.Unit

module Unit: sig .. end
OCaml build units and tools.

type build = [ `Func of
B0_ocaml.Lib.resolver option ->
B0_ocaml.Lib.name list -> string -> B0.Build.t -> unit
| `Src_dirs of B0.Fpath.t list
| `Srcs of B0.Fpath.t list ]
val exe : ?loc:B0.Def.loc ->
?src_root:B0.Fpath.t ->
?doc:string ->
?only_aim:B0.Env.build_aim ->
?pkg:B0.Pkg.t ->
?meta:B0.Meta.Unit.t ->
?resolver:B0_ocaml.Lib.resolver ->
?lib_deps:B0_ocaml.Lib.name list ->
?name:string -> string -> build -> B0.Unit.t
exe is an executable named name.
val lib : ?loc:B0.Def.loc ->
?src_root:B0.Fpath.t ->
?doc:string ->
?only_aim:B0.Env.build_aim ->
?pkg:B0.Pkg.t ->
?meta:B0.Meta.Unit.t ->
?resolver:B0_ocaml.Lib.resolver ->
?lib_deps:B0_ocaml.Lib.name list ->
?name:string -> string -> build -> B0.Unit.t
lib name is a library named name.

Low level interface


val tag : bool B0.Meta.Unit.key
tag indicates the unit deals with OCaml related outcomes.
val lib_deps : B0_ocaml.Lib.name list B0.Meta.Unit.key
lib_deps is a list of OCaml libraries names the unit needs to produce its outcomes.
val lib_name : B0_ocaml.Lib.name B0.Meta.Unit.key
lib_name is the name of a library built by the unit.
val exe_meta : lib_deps:B0_ocaml.Lib.name list -> string -> B0.Meta.Unit.t
exe_meta is the default metadata for B0_ocaml.Unit.exe.
val lib_meta : lib_deps:B0_ocaml.Lib.name list -> string -> B0.Meta.Unit.t
exe_meta is the default metadata for B0_ocaml.Unit.lib.