-
Notifications
You must be signed in to change notification settings - Fork 359
/
dune
38 lines (33 loc) · 1.37 KB
/
dune
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
(library
(name opam_core)
(public_name opam-core)
(synopsis "OCaml Package Manager core internal stdlib")
; TODO: Remove (re_export ...) when CI uses the OCaml version that includes https://github.com/ocaml/ocaml/pull/11989
(libraries re (re_export ocamlgraph) unix sha jsonm swhid_core uutf
(select opamACL.ml from
(opam-core.libacl -> opamACL.libacl.ml)
( -> opamACL.dummy.ml))
(select opamStubs.ml from
(opam-core.stubs -> opamStubs.win32.ml)
( -> opamStubs.dummy.ml)))
(flags (:standard
(:include ../ocaml-flags-standard.sexp)
(:include ../ocaml-flags-configure.sexp)
(:include ../ocaml-context-flags.sexp)))
(wrapped false))
(rule
(copy opamStubsTypes.ml opamStubsTypes.mli))
(rule
(write-file opamCoreConfigDeveloper.ml
"let value = \"%{read-strings:developer}\""))
(rule
(write-file opamVersionInfo.ml
"let version = \"%{read-strings:version}\""))
(rule
(targets version)
(deps ../../shell/get_version.ml ../../configure.ac)
(action (with-stdout-to %{targets} (run ocaml ../../shell/get_version.ml ../../configure.ac))))
(rule
(targets developer)
(mode fallback)
(action (with-stdout-to %{targets} (echo ""))))