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 (41 lines) | stat: -rw-r--r-- 766 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
(executables
 (names test_toplevel)
 (libraries js_of_ocaml js_of_ocaml_toplevel)
 (flags
  (:standard -linkall))
 (modes byte))

(rule
 (targets export.txt)
 (deps
  (package js_of_ocaml-toplevel))
 (action
  (run jsoo_listunits -o %{targets} stdlib js_of_ocaml-toplevel)))

(rule
 (targets test_toplevel.js)
 (action
  (run
   %{bin:js_of_ocaml}
   --export
   %{dep:export.txt}
   --toplevel
   --disable
   shortvar
   %{dep:test_toplevel.bc}
   -o
   %{targets})))

(rule
 (target test_toplevel.referencejs)
 (deps test_toplevel.js)
 (action
  (with-stdout-to
   %{target}
   (run node ./test_toplevel.js))))

(rule
 (alias runtest)
 (deps test_toplevel.reference test_toplevel.referencejs)
 (action
  (diff test_toplevel.reference test_toplevel.referencejs)))