File: dune

package info (click to toggle)
js-of-ocaml 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 7,372 kB
  • sloc: ml: 70,468; javascript: 8,238; ansic: 319; makefile: 217; lisp: 23; sh: 6; perl: 4
file content (38 lines) | stat: -rw-r--r-- 530 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
(executables
 (names viewer_js) ;; add converter & viewer
 (libraries js_of_ocaml-lwt)
 (modes byte)
 (modules
  (:standard
   \
   scene_extents
   svg
   main
   viewer
   converter
   dot_lexer
   dot_graph
   dot_render))
 (preprocess
  (pps js_of_ocaml-ppx)))

(ocamllex dot_lexer)

(rule
 (targets viewer_js.js)
 (action
  (run
   %{bin:js_of_ocaml}
   --source-map
   %{dep:viewer_js.bc}
   -o
   %{targets}
   --pretty
   -I
   ./
   --file
   %{dep:scene.json})))

(alias
 (name default)
 (deps viewer_js.js index.html))