B0_ocaml.Libresolver
Library resolvers.
module Scope : sig ... end
Resolution scopes.
make m ocaml_conf scopes
is a library resolver looking for libraries in the given scopes
, in order. ocaml_conf
is the toolchain configuration. m
gets marked by ocamlib
.
val default : B0_store.t -> B0_memo.t -> t B0_std.Fut.t
default store memo
determines a default library resolver for key
. It uses the conf
in store
and uses an Scope.build
with the build found in the store via B0_build.self
followed by an Scope.ocamlfind
in memo and a cache in the directory of the build.
val key : t B0_store.key
val lookups : t -> Lib.t option B0_std.Fut.t Libname.Map.t
lookups r
are the lookups performed in r
so far.
val find : t -> Libname.t -> Lib.t option B0_std.Fut.t
find r libname
finds library libname
in r
.
val get : t -> Libname.t -> Lib.t B0_std.Fut.t
get r libname
gets library libname
in r
. The memo of r
fails if the library cannot be found.
val get_list : t -> Libname.t list -> Lib.t list B0_std.Fut.t
get_list r libnames
looks up libraries libnames
in r
. Libraries are returned in the given order and the memo of r
fails if a library cannot be found.
val get_list_and_deps : t -> Libname.t list -> Lib.t list B0_std.Fut.t
get_list_and_deps b libnames
looks up the libraires libnames
and their dependencies in r
. The result is a sorted in (stable) dependency order and the memo of r
fails if a library cannot be found.