This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
22
unikernel/duniverse/dune_/plugin/jbuild_plugin.mli
Normal file
22
unikernel/duniverse/dune_/plugin/jbuild_plugin.mli
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
(** API for jbuild plugins *)
|
||||
|
||||
(* CR-someday amokhov: rename to [dune_plugin]. *)
|
||||
|
||||
module V1 : sig
|
||||
(** Current build context *)
|
||||
val context : string
|
||||
|
||||
(** OCaml version for the current build 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 Dune. [s] should be the contents of a [dune] file
|
||||
following the specification described in the manual. *)
|
||||
val send : string -> unit
|
||||
|
||||
(** Execute a command and read its output *)
|
||||
val run_and_read_lines : string -> string list
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue