; Generate impl.ml from impl.cppo.ml with conditional OXCAML flag (rule (targets impl.ml) (deps (:x impl.cppo.ml)) (enabled_if (not %{ocaml-config:ox})) (action (run %{bin:cppo} -V OCAML:%{ocaml_version} %{x} -o %{targets}))) (rule (targets impl.ml) (deps (:x impl.cppo.ml)) (enabled_if %{ocaml-config:ox}) (action (run %{bin:cppo} -V OCAML:%{ocaml_version} -D OXCAML %{x} -o %{targets}))) (library (public_name js_top_worker) (modules toplexer ocamltop impl environment) (libraries logs lwt js_of_ocaml-compiler astring mime_printer compiler-libs.common compiler-libs.toplevel merlin-lib.kernel merlin-lib.utils merlin-lib.query_protocol merlin-lib.query_commands merlin-lib.ocaml_parsing) (js_of_ocaml (javascript_files stubs.js))) (ocamllex toplexer) ; Web worker library (no OxCaml differences) (library (public_name js_top_worker-web) (name js_top_worker_web) (modules worker findlibish jslib) (preprocess (pps js_of_ocaml-ppx)) (libraries js_top_worker js_top_worker-rpc.message js_top_worker-widget js_of_ocaml-toplevel js_of_ocaml-lwt logs.browser uri angstrom findlib fpath yojson))