-
Notifications
You must be signed in to change notification settings - Fork 31
/
dune
67 lines (56 loc) · 1.48 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
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
(library
(public_name pyml)
(modules numpy py pyops pycaml pyml_arch pytypes pywrappers pyutils)
(foreign_stubs (language c) (names numpy_stubs pyml_stubs))
(wrapped false)
(libraries unix bigarray stdcompat))
(executables
(names generate)
(modules generate)
(libraries stdcompat))
(rule
(targets pywrappers.ml pyml.h pyml_dlsyms.inc pyml_wrappers.inc)
(deps (:gen generate.exe))
(action (run %{gen})))
(rule
(target pyml_arch.ml.sharp)
(deps pyml_arch.ml.c)
(action (with-stdout-to %{target}
(run %{ocaml-config:native_c_compiler} -E %{deps}))))
(rule
(target pyml_arch.ml)
(deps pyml_arch.ml.sharp)
(action (with-stdout-to %{target}
(run sed "/^#/d" %{deps}))))
(library
(name pyml_tests_common)
(modules pyml_tests_common)
(libraries pyml stdcompat))
(test
(name numpy_tests)
(modules numpy_tests)
(libraries pyml pyml_tests_common stdcompat))
(test
(name pyml_tests)
(modules pyml_tests)
(libraries pyml pyml_tests_common stdcompat))
(rule
(enabled_if (>= %{ocaml_version} 4.06))
(target pyops.mli)
(deps pyops.mli.new)
(action (copy %{deps} %{target})))
(rule
(enabled_if (>= %{ocaml_version} 4.06))
(target pyops.ml)
(deps pyops.ml.new)
(action (copy %{deps} %{target})))
(rule
(enabled_if (< %{ocaml_version} 4.06))
(target pyops.mli)
(deps pyops.mli.405)
(action (copy %{deps} %{target})))
(rule
(enabled_if (< %{ocaml_version} 4.06))
(target pyops.ml)
(deps pyops.ml.405)
(action (copy %{deps} %{target})))