| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | (** [findlib_deep_resolve ~file ~package] tries to locate |
| 12 | a [.cmxs] for a given [package]. It also searches for its dependencies. |
| 13 | |
| 14 | Dependencies of coq-core.toplevel (i.e. coqc) are ignored. |
| 15 | |
| 16 | [file] is used for error messages. |
| 17 | |
| 18 | If a [META] file for [package] is found, it will try to use it to resolve |
| 19 | the path to the [.cmxs], and return a relative path to both. If not, it |
| 20 | errors. *) |
| 21 | val findlib_deep_resolve |
| 22 | : file:string |
| 23 | -> package:string |
| 24 | -> string list * string list |
| 25 | |
| 26 | module Internal : sig |
| 27 | (** Call Loadpath.get_worker_path instead *) |
| 28 | val get_worker_path : unit -> string |
| 29 | end |