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 (183 lines) | stat: -rw-r--r-- 3,243 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
(executables
 (names toplevel)
 (libraries
  js_of_ocaml-compiler
  js_of_ocaml-tyxml
  js_of_ocaml-toplevel
  lwt
  js_of_ocaml-lwt
  ;; not used directly
  graphics
  js_of_ocaml.deriving
  react
  reactiveData
  str
  dynlink
  (select
   ocp_indent.ml
   from
   (ocp-indent.lib -> ocp_indent.ok.ml)
   (-> ocp_indent.fake.ml))
  (select
   colorize.ml
   from
   (higlo -> colorize.higlo.ml)
   (!higlo -> colorize.fake.ml))
  (select
   graphics_support.ml
   from
   (js_of_ocaml-lwt.graphics -> graphics_support.enabled.ml)
   (-> graphics_support.disabled.ml))
  (select
   ppx_support.ml
   from
   (js_of_ocaml-ppx -> ppx_support.enabled.ml)
   (-> ppx_support.disabled.ml)))
 (flags
  (:standard -rectypes))
 (link_flags
  (:standard -linkall))
 (modes byte js)
 (js_of_ocaml
  (build_runtime_flags
   (:standard
    --file
    %{dep:examples.ml}
    --file
    %{dep:test_dynlink.cmo}
    --file
    %{dep:test_dynlink.js}
    --file
    %{dep:test_lib_jsoo.js}
    --file
    (:include html_types_path.txt)))
  (flags
   (:standard
    --toplevel
    (:include effects_flags.sexp))))
 (modules
  (:standard \ test_dynlink examples effects_flags))
 (preprocess
  (pps js_of_ocaml-ppx)))

(rule
 (target html_types_path.txt)
 (action
  (with-stdout-to
   %{target}
   (run
    ocamlfind
    query
    tyxml.functor
    -format
    "%d/html_types.cmi:/static/cmis/"))))

(rule
 (targets test_dynlink.cmo test_dynlink.cmi)
 (action
  (run ocamlc -c %{dep:test_dynlink.ml})))

(rule
 (targets test_dynlink.js)
 (action
  (run
   %{bin:js_of_ocaml}
   --pretty
   --toplevel
   %{read-strings:effects_flags.txt}
   %{dep:test_dynlink.cmo})))

(rule
 (target test_lib_jsoo.js)
 (action
  (run
   %{bin:js_of_ocaml}
   --pretty
   --toplevel
   --include-runtime
   %{read-strings:effects_flags.txt}
   %{dep:test_lib/stubs.js}
   %{dep:test_lib/test_lib_jsoo.cma}
   -o
   %{target})))

(rule
 (targets export.txt)
 (deps
  (package js_of_ocaml-ppx)
  (package js_of_ocaml)
  (package js_of_ocaml-compiler)
  (package js_of_ocaml-lwt)
  (package js_of_ocaml-tyxml)
  (package js_of_ocaml-toplevel))
 (action
  (run
   jsoo_listunits
   -o
   %{targets}
   stdlib
   graphics
   str
   dynlink
   js_of_ocaml-compiler.runtime
   js_of_ocaml-lwt.graphics
   js_of_ocaml-ppx.as-lib
   js_of_ocaml.deriving
   lwt
   tyxml.functor
   tyxml.functor:html_types.cmi
   react
   reactiveData
   js_of_ocaml
   js_of_ocaml-lwt
   js_of_ocaml-tyxml
   js_of_ocaml-toplevel)))

(executable
 (name effects_flags)
 (modules effects_flags))

(rule
 (target effects_flags.sexp)
 (action
  (with-stdout-to
   %{target}
   (run ./effects_flags.exe sexp))))

(rule
 (target effects_flags.txt)
 (action
  (with-stdout-to
   %{target}
   (run ./effects_flags.exe txt))))

(rule
 (targets toplevel.js)
 (action
  (run
   %{bin:js_of_ocaml}
   compile
   --pretty
   %{read-strings:effects_flags.txt}
   --target-env
   browser
   --file
   %{dep:examples.ml}
   --file
   %{dep:test_dynlink.cmo}
   --file
   %{dep:test_dynlink.js}
   --file
   %{dep:test_lib_jsoo.js}
   --export
   %{dep:export.txt}
   --toplevel
   --disable
   shortvar
   %{dep:toplevel.bc}
   -o
   %{targets})))

(alias
 (name default)
 (deps toplevel.js toplevel.bc.js index.html))