File: dune

package info (click to toggle)
pyml 20250807-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 592 kB
  • sloc: ml: 7,043; ansic: 1,802; makefile: 317; sh: 13
file content (67 lines) | stat: -rw-r--r-- 1,519 bytes parent folder | download | duplicates (3)
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})))