2017-02-26 19:49:54 +00:00
|
|
|
(** API for jbuild plugins *)
|
|
|
|
|
|
|
|
module V1 : sig
|
|
|
|
(** Current build context *)
|
|
|
|
val context : string
|
|
|
|
|
|
|
|
(** OCaml version for the current buid context. It might not be the
|
|
|
|
same as [Sys.ocaml_version] *)
|
|
|
|
val ocaml_version : string
|
|
|
|
|
|
|
|
(** Output of [ocamlc -config] for this context *)
|
|
|
|
val ocamlc_config : (string * string) list
|
|
|
|
|
|
|
|
(** [send s] send [s] to jbuilder. [s] should be the contents of a
|
|
|
|
jbuild file following the specification described in the manual. *)
|
|
|
|
val send : string -> unit
|
2018-07-02 07:17:53 +00:00
|
|
|
|
|
|
|
(** Execute a command and read it's output *)
|
|
|
|
val run_and_read_lines : string -> string list
|
2017-02-26 19:49:54 +00:00
|
|
|
end
|