forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscope.mli
35 lines (26 loc) · 766 Bytes
/
scope.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(** Scopes *)
(** A scope is a project + a library database *)
open! Stdune
type t
val root : t -> Path.t
val name : t -> Dune_project.Name.t
val project : t -> Dune_project.t
(** Return the library database associated to this scope *)
val libs : t -> Lib.DB.t
(** Scope databases *)
module DB : sig
type scope = t
type t
(** Return the new scope database as well as the public libraries
database *)
val create
: projects:Dune_project.t list
-> context:string
-> installed_libs:Lib.DB.t
-> ext_lib:string
-> ext_obj:string
-> (Path.t * Dune_file.Library.t) list
-> t * Lib.DB.t
val find_by_dir : t -> Path.t -> scope
val find_by_name : t -> Dune_project.Name.t -> scope
end with type scope := t