package ocamlbuild

  1. Overview
  2. Docs
type pathname = string
type t = Ocamlbuild_pack.Command.t =
  1. | Seq of t list
  2. | Cmd of spec
  3. | Echo of string list * pathname
  4. | Nop
and spec = Ocamlbuild_pack.Command.spec =
  1. | N
  2. | S of spec list
  3. | A of string
  4. | P of pathname
  5. | Px of pathname
  6. | Sh of string
  7. | T of tags
  8. | V of string
  9. | Quote of spec
val atomize : string list -> spec
val atomize_paths : string list -> spec
val execute : ?quiet:bool -> ?pretend:bool -> t -> unit
val execute_many : ?quiet:bool -> ?pretend:bool -> t list -> (bool list * exn) option
val setup_virtual_command_solver : string -> (unit -> spec) -> unit
val search_in_path : string -> string
val reduce : spec -> spec
val print : Format.formatter -> t -> unit
val to_string : t -> string
val string_of_command_spec : spec -> string
val string_target_and_tags_of_command_spec : spec -> string * string * Ocamlbuild_pack.Tags.t
val iter_tags : (Ocamlbuild_pack.Tags.t -> unit) -> t -> unit
val fold_pathnames : (pathname -> 'a -> 'a) -> t -> 'a -> 'a
val digest : t -> Digest.t
val jobs : int Pervasives.ref
val dump_parallel_stats : unit -> unit
val deps_of_tags : Ocamlbuild_pack.Tags.t -> pathname list
val dep : Ocamlbuild_pack.Tags.elt list -> pathname list -> unit
val pdep : Ocamlbuild_pack.Tags.elt list -> Ocamlbuild_pack.Tags.elt -> (string -> pathname list) -> unit
val list_all_deps : unit -> (Ocamlbuild_pack.Tags.t * pathname list) list
val file_or_exe_exists : string -> bool
OCaml

Innovation. Community. Security.