(executables (names toplevel) (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 react reactiveData str dynlink (select ocp_indent.ml from (ocp-indent.lib -> ocp_indent.ok.ml) (-> ocp_indent.fake.ml)) (select colorize.ml from (higlo -> colorize.higlo.ml) (!higlo -> colorize.fake.ml)) (select graphics_support.ml from (js_of_ocaml-lwt.graphics -> graphics_support.enabled.ml) (-> graphics_support.disabled.ml)) (select ppx_support.ml from (js_of_ocaml-ppx -> ppx_support.enabled.ml) (-> ppx_support.disabled.ml))) (flags (:standard -rectypes)) (link_flags (:standard -linkall)) (modes byte js) (js_of_ocaml (link_flags (:standard)) (build_runtime_flags (:standard +toplevel.js +dynlink.js --file %{dep:examples.ml} --file %{dep:test_dynlink.cmo} --file %{dep:test_dynlink.js})) (flags (:standard --toplevel (:include effects_flags.sexp)))) (modules (:standard \ test_dynlink examples effects_flags)) (preprocess (pps js_of_ocaml-ppx))) (rule (targets test_dynlink.cmo test_dynlink.cmi) (action (run ocamlc -c %{dep:test_dynlink.ml}))) (rule (targets test_dynlink.js) (action (run %{bin:js_of_ocaml} --pretty --toplevel %{dep:test_dynlink.cmo}))) (rule (targets export.txt) (deps (package js_of_ocaml-ppx) (package js_of_ocaml) (package js_of_ocaml-compiler) (package js_of_ocaml-lwt) (package js_of_ocaml-tyxml) (package js_of_ocaml-toplevel)) (action (run jsoo_listunits -o %{targets} stdlib graphics str dynlink js_of_ocaml-compiler.runtime js_of_ocaml-lwt.graphics js_of_ocaml-ppx.as-lib js_of_ocaml.deriving lwt tyxml.functor tyxml.functor:html_types.cmi react reactiveData js_of_ocaml js_of_ocaml-lwt js_of_ocaml-tyxml js_of_ocaml-toplevel))) (executable (name effects_flags) (modules effects_flags)) (rule (target effects_flags.sexp) (action (with-stdout-to %{target} (run ./effects_flags.exe sexp)))) (rule (target effects_flags.txt) (action (with-stdout-to %{target} (run ./effects_flags.exe txt)))) (rule (targets toplevel.js) (action (run %{bin:js_of_ocaml} compile --pretty %{read-strings:effects_flags.txt} --Werror --target-env browser --file %{dep:examples.ml} --file %{dep:test_dynlink.cmo} --file %{dep:test_dynlink.js} --export %{dep:export.txt} --toplevel --disable shortvar %{dep:toplevel.bc} -o %{targets}))) (alias (name default) (deps toplevel.js toplevel.bc.js index.html))