package b0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0
doc/b0.file/B0_ocaml/Lib/index.html
Module B0_ocaml.LibSource
Library information.
An OCaml library is a directory with interfaces and object files. OCaml libraries are resolved by name using a Libresolver.
Libraries
The type for libraries.
val make :
libname:Libname.t ->
requires:Libname.t list ->
exports:Libname.t list ->
dir:B0_std.Fpath.t ->
cmis:B0_std.Fpath.t list ->
cmxs:B0_std.Fpath.t list ->
cma:B0_std.Fpath.t option ->
cmxa:B0_std.Fpath.t option ->
c_archive:B0_std.Fpath.t option ->
c_stubs:B0_std.Fpath.t list ->
js_stubs:B0_std.Fpath.t list ->
warning:string option ->
tmake is a library with given properties. See corresponding accessors for semantics.
val of_dir :
B0_memo.t ->
clib_ext:B0_std.Fpath.ext ->
libname:Libname.t ->
requires:Libname.t list ->
exports:Libname.t list ->
dir:B0_std.Fpath.t ->
archive:string option ->
js_stubs:B0_std.Fpath.t list ->
warning:string option ->
(t, string) resultof_dir is a library with given properties, looked up in dir using clib_ext for the platform specific extension for C libraries. The basename without extension of the library's archives is archive and the JavaScript stubs are js_stubs. This looks up all library files in dir and makes them ready in m along with js_stubs.
Note. If dir doesn't follow the one library per directory convention this over-approximate cmis, cmxs and c_stubs files.
key stores the library definition of a unit.
lib_of_unit b ocaml_conf u defines a library from unit u by consulting key. As a side effect this B0_build.requiress u.
Properties
dir l is the library directory of l.
cmis l is the list of cmis of l.
cmxs l is the list of cmxs of l.
cma l is the cma file of l (if any).
cmxa l is the cmxa file of l (if any).
c_archive l is the cmxa's companion C archive of l. Must exist if the cmxa exists and, since 4.12 if cmxa is not empty.
c_stubs l is the C stubs archives of l (if any).
js_stubs l is the list of JavaScript stubs of l (if any).