aboutsummaryrefslogtreecommitdiff
path: root/script.it/dune
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-01-03 05:42:35 +0100
committerSébastien Dailly <sebastien@chimrod.com>2021-01-03 20:19:14 +0100
commita8f37f041dce3f16917b6659d3ca97492f178f4d (patch)
tree35223969024c9ebaed7309b5a6299f8de5f18d1f /script.it/dune
parent20addbe8fd0ac4c79c8a69a4f888ec320a9ca4c3 (diff)
Communication with webworker
Diffstat (limited to 'script.it/dune')
-rwxr-xr-xscript.it/dune35
1 files changed, 24 insertions, 11 deletions
diff --git a/script.it/dune b/script.it/dune
index 1536f2b..e7ca0dc 100755
--- a/script.it/dune
+++ b/script.it/dune
@@ -1,26 +1,39 @@
-(executables
- (names script)
+(executable
+ (name script)
(libraries
- js_of_ocaml
brr
brr.note
- vg
- vg.htmlc
- messages
- messages_json
- worker
shapes
- tools
elements
blog
- path
+ layer
)
(modes js)
- (preprocess (pps ppx_hash))
+ (modules script state)
+ (preprocess (pps ppx_hash js_of_ocaml-ppx))
(link_flags (:standard -no-check-prims))
)
+
(rule
(targets script.js)
(deps script.bc.js)
(action (run cp %{deps} %{targets})))
+
+(executable
+ (name worker)
+ (modules worker)
+ (libraries
+ js_of_ocaml
+ shapes
+ path
+ )
+ (modes js)
+ (preprocess (pps ppx_hash js_of_ocaml-ppx))
+ (link_flags (:standard -no-check-prims))
+ )
+
+(rule
+ (targets worker.js)
+ (deps worker.bc.js)
+ (action (run cp %{deps} %{targets})))