31 lines
844 B
OCaml
31 lines
844 B
OCaml
(** Preprocessing of OCaml source files *)
|
|
|
|
open! Import
|
|
|
|
(** Setup pre-processing and linting rules and return the list of
|
|
pre-processed modules *)
|
|
val pp_and_lint_modules
|
|
: Super_context.t
|
|
-> dir:Path.t
|
|
-> dep_kind:Build.lib_dep_kind
|
|
-> modules:Module.t Module.Name.Map.t
|
|
-> lint:Jbuild.Preprocess_map.t
|
|
-> preprocess:Jbuild.Preprocess_map.t
|
|
-> preprocessor_deps:(unit, Path.t list) Build.t
|
|
-> lib_name:string option
|
|
-> scope:Scope.t
|
|
-> Module.t Module.Name.Map.t
|
|
|
|
(** Get a path to a cached ppx driver *)
|
|
val get_ppx_driver
|
|
: Super_context.t
|
|
-> scope:Scope.t
|
|
-> (Loc.t * Jbuild.Pp.t) list
|
|
-> Path.t
|
|
|
|
(** [cookie_library_name lib_name] is ["--cookie"; lib_name] if [lib_name] is not
|
|
[None] *)
|
|
val cookie_library_name : string option -> string list
|
|
|
|
val gen_rules : Super_context.t -> string list -> unit
|