Debian Codegraph @

tools/dune_rule_gen/coq_module.mli

raw symbols SCIP
1 (************************************************************************)
2 (* This file is licensed under The MIT License *)
3 (* See LICENSE for more information *)
4 (* (c) MINES ParisTech 2018-2019 *)
5 (* (c) INRIA 2020-2022 *)
6 (* Written by: Emilio Jesús Gallego Arias *)
7 (* Written by: Rudi Grinberg *)
8 (************************************************************************)
9
10 type t
11
12 val make : source:Path.t -> prefix:string list -> name:string -> t
13 val source : t -> Path.t
14 val prefix : t -> string list
15
16 val prefix_to_dir : string list -> string
17
18 (** We support two build modes for now *)
19 module Rule_type : sig
20
21 type native = Disabled | Coqc | CoqNative
22 type t =
23 | Regular of { native : native }
24
25 val native_coqc : t -> bool
26 end
27
28 (** Return the native object files for a module *)
29 val native_obj_files : tname:string list -> t -> string list
30
31 (** Return the object files for a module *)
32 val obj_files :
33 tname:string list
34 -> rule:Rule_type.t
35 -> t
36 -> string list
37
38 (** Return pairs of object files and install locations *)
39 val install_files :
40 tname:string list
41 -> rule:Rule_type.t
42 -> t
43 -> (string * string) list
44
45 val pp : Format.formatter -> t -> unit
46
47 val with_timing : bool