Module PLUGIN.Findlib
type command_spec= Command.spectype error=|Cannot_run_ocamlfind|Dependency_not_found of string * string|Package_not_found of string|Cannot_parse_query of string * string
exceptionFindlib_error of error
val string_of_error : error -> stringReturn a string message describing an error.
val report_error : error -> 'aReport an error on the standard error and exit with code 2.
type package={name : string;description : string;version : string;archives_byte : string;Archive names, with the .cma extension, but without the directory.
archives_native : string;Archive names, with the .cmxa extension, but without the directory.
link_options : string;location : string;dependencies : package list;Transitive closure, as returned by
ocamlfind query -r.}Package information.
val query : string -> packageQuery information about a package, given its name. May raise
Not_found.
val topological_closure : package list -> package listComputes the transitive closure of a list of packages and sort them in topological order. Given any list of package
l,topological_closure lreturns a list of packages includingland their dependencies, in an order where any element may only depend on the previous ones.
val include_flags : package list -> command_specReturn the list of include directories.
val compile_flags_byte : package list -> command_specReturn the flags to add when compiling in byte mode (include directories).
val compile_flags_native : package list -> command_specSame as
compile_flags_bytebut for native mode.
val link_flags_byte : package list -> command_specReturn the flags to add when linking in byte mode. It includes: include directories, libraries and special link options.
val link_flags_native : package list -> command_specSame as
link_flags_bytebut for native mode.