File: dune

package info (click to toggle)
js-of-ocaml 5.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 32,020 kB
  • sloc: ml: 91,250; javascript: 57,289; ansic: 315; makefile: 271; lisp: 23; sh: 6; perl: 4
file content (119 lines) | stat: -rw-r--r-- 1,914 bytes parent folder | download
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
(executables
 (names main)
 (libraries js_of_ocaml num str)
 (link_flags
  (:standard -linkall))
 (modules main)
 (modes byte))

(executables
 (names unix)
 (libraries js_of_ocaml num str unix)
 (link_flags
  (:standard -linkall))
 (modules unix)
 (modes byte))

(rule
 (targets main.output)
 (mode
  (promote (until-clean)))
 (enabled_if
  (< %{ocaml_version} 5))
 (action
  (with-stdout-to
   %{targets}
   (run
    %{bin:js_of_ocaml}
    check-runtime
    +dynlink.js
    +toplevel.js
    %{dep:main.bc}))))

(rule
 (targets unix-unix.output)
 (enabled_if
  (and
   (< %{ocaml_version} 5)
   (= %{os_type} Unix)))
 (mode
  (promote (until-clean)))
 (action
  (with-stdout-to
   %{targets}
   (run
    %{bin:js_of_ocaml}
    check-runtime
    +dynlink.js
    +toplevel.js
    %{dep:unix.bc}))))

(rule
 (targets unix-win32.output)
 (enabled_if
  (and
   (< %{ocaml_version} 5)
   (= %{os_type} Win32)))
 (mode
  (promote (until-clean)))
 (action
  (with-stdout-to
   %{targets}
   (run
    %{bin:js_of_ocaml}
    check-runtime
    +dynlink.js
    +toplevel.js
    %{dep:unix.bc}))))

(rule
 (targets main.output5)
 (mode
  (promote (until-clean)))
 (enabled_if
  (>= %{ocaml_version} 5))
 (action
  (with-stdout-to
   %{targets}
   (run
    %{bin:js_of_ocaml}
    check-runtime
    +dynlink.js
    +toplevel.js
    %{dep:main.bc}))))

(rule
 (targets unix-unix.output5)
 (enabled_if
  (and
   (>= %{ocaml_version} 5)
   (= %{os_type} Unix)))
 (mode
  (promote (until-clean)))
 (action
  (with-stdout-to
   %{targets}
   (run
    %{bin:js_of_ocaml}
    check-runtime
    +dynlink.js
    +toplevel.js
    %{dep:unix.bc}))))

(rule
 (targets unix-win32.output5)
 (enabled_if
  (and
   (>= %{ocaml_version} 5)
   (= %{os_type} Win32)))
 (mode
  (promote (until-clean)))
 (action
  (with-stdout-to
   %{targets}
   (run
    %{bin:js_of_ocaml}
    check-runtime
    +dynlink.js
    +toplevel.js
    %{dep:unix.bc}))))