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_driver/Conf/index.html

Module B0_driver.ConfSource

Driver configuration.

Default file names

Sourceval b0_file_name : string

b0_file_name is "B0.ml" the default b0 file name.

Sourceval drivers_dir_name : string

driver_dir_name is ".drivers" the default directory for drivers in the b0 directory.

Configurations

Sourcetype t

The type for configurations.

Sourceval make : b0_dir:B0_std.Fpath.t -> b0_file:B0_std.Fpath.t option -> cache_dir:B0_std.Fpath.t -> cwd:B0_std.Fpath.t -> code:B0_ocaml.Code.t option -> env:B0_std.Os.Env.t -> hash_fun:(module B0_hash.T) -> jobs:int -> no_pager:bool -> unit -> t

make constructs a configuration with given attributes. See the accessors for semantics.

Sourceval b0_file : t -> B0_std.Fpath.t option

b0_file is the absolute path to the b0 file (if any).

Sourceval b0_dir : t -> B0_std.Fpath.t

b0_dir is the absolute path to the b0 directory.

Sourceval cache_dir : t -> B0_std.Fpath.t

cache_dir is the absolute path to the cache directory.

Sourceval cwd : t -> B0_std.Fpath.t

cwd is the absolute path to the current working directory.

Sourceval code : t -> B0_ocaml.Code.t option

code is the code to which the driver is compiled.

env is the process environment of the driver.

Sourceval hash_fun : t -> (module B0_hash.T)

hash_fun is the hash function to use for build caching.

Sourceval jobs : t -> int

jobs is the maximal number of spawns allowed.

Sourceval memo : t -> (B0_memo.t, string) result

memo is the memoizer for the configuration.

Sourceval no_pager : t -> bool

no_pager indicates no paging is desired on stdout.

Derived data

Sourceval get_b0_file : t -> (B0_std.Fpath.t, string) result

get_b0_file provides an error message if b0_file is None.

Setup

Sourceval setup_with_cli : b0_dir:B0_std.Fpath.t option -> b0_file:B0_std.Fpath.t option -> cache_dir:B0_std.Fpath.t option -> code:B0_ocaml.Code.t option -> hash_fun:(module B0_hash.T) option -> jobs:int option -> no_color:bool -> log_level:B0_std.Log.level -> no_pager:bool -> unit -> (t, string) result

setup_with_cli determines and setups a configuration with the given values. These are expected to have been determined by environment variables and command line arugments.