From 77544bdfad2af41514ec1435f706fee87ea2969e Mon Sep 17 00:00:00 2001
From: Sébastien Dailly <sebastien@dailly.me>
Date: Mon, 7 Feb 2022 15:38:37 +0100
Subject: Added viz.js code

---
 viz.js/dune | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100755 viz.js/dune

(limited to 'viz.js/dune')

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})))
-- 
cgit v1.2.3