dune/src/ocamldep.mli

38 lines
801 B
OCaml

(** ocamldep management *)
module Dep_graph : sig
type t
val deps_of
: t
-> Module.t
-> (unit, Module.t list) Build.t
val top_closed_implementations
: t
-> Module.t list
-> (unit, Module.t list) Build.t
end
module Dep_graphs : sig
type t = Dep_graph.t Ml_kind.Dict.t
val dummy : Module.t -> t
end
(** Generate ocamldep rules for all the modules in the context.
[already_used] represents the modules that are used by another
stanzas in the same directory. No [.d] rule will be generated for
such modules. *)
val rules
: ?already_used:Module.Name.Set.t
-> Compilation_context.t
-> Dep_graphs.t
(** Compute the dependencies of an auxiliary module. *)
val rules_for_auxiliary_module
: Compilation_context.t
-> Module.t
-> Dep_graphs.t