forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.mli
75 lines (62 loc) · 1.53 KB
/
install.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
(** Opam install file *)
open! Stdune
module Section : sig
type t =
| Lib
| Lib_root
| Libexec
| Libexec_root
| Bin
| Sbin
| Toplevel
| Share
| Share_root
| Etc
| Doc
| Stublibs
| Man
| Misc
val decode : t Dune_lang.Decoder.t
(** [true] iff the executable bit should be set for files installed
in this location. *)
val should_set_executable_bit : t -> bool
module Paths : sig
type section = t
type t =
{ lib : Path.t
; lib_root : Path.t
; libexec : Path.t
; libexec_root : Path.t
; bin : Path.t
; sbin : Path.t
; toplevel : Path.t
; share : Path.t
; share_root : Path.t
; etc : Path.t
; doc : Path.t
; stublibs : Path.t
; man : Path.t
}
val make
: package:Package.Name.t
-> destdir:Path.t
-> ?libdir:Path.t
-> unit
-> t
val get : t -> section -> Path.t
end with type section := t
end
module Entry : sig
type t = private
{ src : Path.t
; dst : string option
; section : Section.t
}
val make : Section.t -> ?dst:string -> Path.t -> t
val set_src : t -> Path.t -> t
val relative_installed_path : t -> paths:Section.Paths.t -> Path.t
val add_install_prefix : t -> paths:Section.Paths.t -> prefix:Path.t -> t
end
val files : Entry.t list -> Path.Set.t
val gen_install_file : Entry.t list -> string
val load_install_file : Path.t -> Entry.t list