who knows what was going on here

This commit is contained in:
cqc
2023-08-26 15:23:07 -05:00
parent 420e350544
commit 60be88d4e1
4 changed files with 1058 additions and 48 deletions

95
dune
View File

@ -14,6 +14,25 @@
(libraries
logs))
(library
(name graphast)
(modes byte)
(kind ppx_rewriter)
(modules graphast)
(libraries
logs
ppxlib
fmt
lwt
))
(executable
(name ppx_graph)
(modes byte)
(modules ppx_graph)
(libraries
graphast))
(executable
(name boot_js)
(modes byte js)
@ -51,7 +70,12 @@
(rule
(targets embedded_fs.js)
(action
(run %{bin:jsoo_fs} -I . -o %{targets} %{dep:examples.ml} %{dep:test_dynlink.js})))
(run %{bin:jsoo_fs}
; lol hack?
-I .
-o %{targets}
%{dep:examples.ml}
%{dep:test_dynlink.js})))
(rule
(targets export.txt)
@ -65,12 +89,17 @@
(action
(run
jsoo_listunits
-o
%{targets}
-o %{targets}
stdlib
graphics
str
dynlink
dynlink
js_of_ocaml
js_of_ocaml-lwt
js_of_ocaml-tyxml
js_of_ocaml-toplevel
js_of_ocaml-compiler
js_of_ocaml-compiler.runtime
js_of_ocaml-lwt.graphics
js_of_ocaml-ppx.as-lib
@ -80,15 +109,11 @@
tyxml.functor:html_types.cmi
react
reactiveData
js_of_ocaml
js_of_ocaml-lwt
js_of_ocaml-tyxml
js_of_ocaml-toplevel
dynlink)))
ppxlib)))
(executables
(names toplevel)
(modules toplevel ppx_graph)
(modules toplevel)
(flags
(:standard -rectypes -linkall))
(modes js)
@ -97,39 +122,37 @@
compile
--pretty
--Werror
--target-env
browser
--export
%{dep:export.txt}
--target-env browser
--export %{dep:export.txt}
--toplevel
--disable
shortvar
--disable shortvar
+toplevel.js
+dynlink.js
%{dep:embedded_fs.js}))
(preprocess
(pps js_of_ocaml-ppx))
(pps js_of_ocaml-ppx ppxlib.metaquot))
(libraries
js_of_ocaml-compiler
js_of_ocaml-tyxml
js_of_ocaml-toplevel
lwt
js_of_ocaml-lwt
;; not used directly
graphics
js_of_ocaml.deriving
js_of_ocaml-lwt.graphics
js_of_ocaml-ppx.as-lib
compiler-libs
compiler-libs.common
compiler-libs.bytecomp
js_of_ocaml-compiler.runtime
ocp-indent.lib
react
reactiveData
str
log_js)
)
fmt
js_of_ocaml-compiler
js_of_ocaml-tyxml
js_of_ocaml-toplevel
lwt
js_of_ocaml-lwt
;; not used directly
graphics
js_of_ocaml.deriving
js_of_ocaml-lwt.graphics
js_of_ocaml-ppx.as-lib
compiler-libs
compiler-libs.common
compiler-libs.bytecomp
js_of_ocaml-compiler.runtime
ocp-indent.lib
react
reactiveData
str
log_js
ppxlib))
; (rule
; (targets toplevel.js)