aboutsummaryrefslogtreecommitdiff
path: root/viz.js/dune
diff options
context:
space:
mode:
Diffstat (limited to 'viz.js/dune')
-rwxr-xr-xviz.js/dune37
1 files changed, 37 insertions, 0 deletions
diff --git a/viz.js/dune b/viz.js/dune
new file mode 100755
index 0000000..d6eba67
--- /dev/null
+++ b/viz.js/dune
@@ -0,0 +1,37 @@
+(executable
+ (name convert)
+ (libraries
+ js_of_ocaml
+ js_of_ocaml-lwt
+ promise
+ process
+ )
+ (modes js)
+ (preprocess (pps js_of_ocaml-ppx))
+ (link_flags (:standard -no-check-prims))
+ (modules convert dispatch CanvasTool)
+ )
+
+(rule
+ (targets convert.js)
+ (deps convert.bc.js)
+ (action (copy %{deps} %{targets})))
+
+(executable
+ (name worker)
+ (libraries
+ js_of_ocaml
+ js_of_ocaml-lwt
+ promise
+ process
+ )
+ (modes js)
+ (preprocess (pps js_of_ocaml-ppx))
+ (link_flags (:standard -no-check-prims))
+ (modules worker)
+ )
+
+(rule
+ (targets worker.js)
+ (deps worker.bc.js)
+ (action (copy %{deps} %{targets})))