dune/src/build_system.mli

26 lines
583 B
OCaml
Raw Normal View History

2016-12-02 13:54:32 +00:00
(** Build rules *)
open Import
2016-12-15 11:20:46 +00:00
type t
2016-12-02 13:54:32 +00:00
2016-12-15 11:20:46 +00:00
val create : rules:(unit, unit) Build.t list -> t
2016-12-02 13:54:32 +00:00
module Build_error : sig
type t
val backtrace : t -> Printexc.raw_backtrace
val dependency_path : t -> Path.t list
val exn : t -> exn
exception E of t
end
(** Do the actual build *)
2016-12-15 11:20:46 +00:00
val do_build : t -> Path.t list -> (unit Future.t, Build_error.t) result
val do_build_exn : t -> Path.t list -> unit Future.t
2016-12-02 13:54:32 +00:00
(** Return all the library dependencies (as written by the user) needed to build these
targets *)
2016-12-15 11:20:46 +00:00
val all_lib_deps : t -> Path.t list -> String_set.t Path.Map.t