-
Notifications
You must be signed in to change notification settings - Fork 1
/
dune
93 lines (86 loc) · 1.9 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
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
;; We build first the bytecode to be used by the jsoo compiler
(executable
(name test_bigint)
(modules test_bigint)
(libraries js_of_ocaml
js_of_ocaml-compiler
js_of_ocaml-ppx
jsoo-lib
)
(modes byte)
(preprocess (pps js_of_ocaml-ppx))
)
;; We build first the bytecode to be used by the jsoo compiler
(executable
(name test_number)
(modules test_number)
(libraries js_of_ocaml
js_of_ocaml-compiler
js_of_ocaml-ppx
jsoo-lib
)
(modes byte)
(preprocess (pps js_of_ocaml-ppx))
)
(executable
(name test_array_buffer)
(modules test_array_buffer)
(libraries js_of_ocaml
js_of_ocaml-compiler
js_of_ocaml-ppx
jsoo-lib
)
(modes byte)
(preprocess (pps js_of_ocaml-ppx))
)
(executable
(name test_es_module)
(modules test_es_module)
(libraries js_of_ocaml
js_of_ocaml-compiler
js_of_ocaml-ppx
jsoo-lib
)
(modes byte)
(preprocess (pps js_of_ocaml-ppx))
)
(rule
(targets test_bigint.bc.js)
(action
(run %{bin:js_of_ocaml}
%{lib:integers_stubs_js:runtime.js}
;; Options for debugging purposes
%{dep:test_bigint.bc} --pretty --no-inline -o test_bigint.bc.js
)
)
)
(rule
(targets test_number.bc.js)
(action
(run %{bin:js_of_ocaml}
%{lib:integers_stubs_js:runtime.js}
;; Options for debugging purposes
%{dep:test_number.bc} --pretty --no-inline -o test_number.bc.js
)
)
)
(rule
(targets test_array_buffer.bc.js)
(action
(run %{bin:js_of_ocaml}
%{lib:integers_stubs_js:runtime.js}
;; Options for debugging purposes
%{dep:test_array_buffer.bc} --pretty --no-inline -o test_array_buffer.bc.js
)
)
)
(rule
(targets test_es_module.bc.js)
(action
(run %{bin:js_of_ocaml}
%{lib:integers_stubs_js:runtime.js}
;; Options for debugging purposes
%{dep:test_es_module.bc} --pretty --no-inline -o test_es_module.bc.js
)
)
)