package b0

  1. Overview
  2. Docs
Software construction and deployment kit

Install

dune-project
 Dependency

Authors

Maintainers

Sources

b0-0.0.6.tbz
sha512=e9aa779e66c08fc763019f16d4706f465d16c05d6400b58fbd0313317ef33ddea51952e2b058db28e65f7ddb7012f328c8bf02d8f1da17bb543348541a2587f0

doc/b0.file/B0_ocaml/Libresolver/index.html

Module B0_ocaml.LibresolverSource

Library resolvers.

Resolvers

Sourcemodule Scope : sig ... end

Resolution scopes.

Sourcetype t

The type for library resolvers.

Sourceval make : B0_memo.t -> Conf.t -> Scope.t list -> t

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.

Store key

default store memo determines a default library resolver for key. It uses the Conf.key in store and uses a 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.

key is the library resolver used by the build units defined by B0_ocaml. It defaults to default.

Properties

Sourceval lookups : t -> Lib.t option B0_std.Fut.t Libname.Map.t

lookups r are the lookups performed in r so far.

Sourceval memo : t -> B0_memo.t

memo r is the memoizer of r.

Sourceval ocaml_conf : t -> Conf.t

ocaml_conf r is the OCaml configuration of r.

Sourceval scopes : t -> Scope.t list

scopes r are the scopes of r.

Lookup

Sourceval find : B0_memo.t -> t -> Libname.t -> Lib.t option B0_std.Fut.t

find m r libname finds library libname in r. m is used to report notifications.

get m r libname gets library libname in r. The memo of r fails if the library cannot be found. m is used to report notication or failure.

Sourceval get_list_and_exports : B0_memo.t -> t -> Libname.t list -> Lib.t list B0_std.Fut.t

get_list r libnames looks up libraries libnames in r and the libraries they B0_ocaml.exports. Libraries are returned in the given order and the memo of r fails if a library cannot be found.

Sourceval get_list_and_deps : B0_memo.t -> 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.