module Ocamldep:sig..end
type error =
| |
Execution_error of |
| |
Invalid_line of |
exception Exception of error
type dependency = {
|
file : |
(* |
Path of analyzed file.
| *) |
|
modules : |
(* |
List of modules the file depends upon.
| *) |
val analyse_files : ?path:string ->
?preprocessor:string -> string list -> dependency listanalyse_files ~path files analyzes the files in files through ocamldep
executable (whose path is given by path, defaulting to "ocamldep").
preprocessor is the command source files should be passed through,
defaulting to "" (meaning identity).
Raises Exception if either executable cannot be run,
or returns invalid results.