; Generate worker.ml from worker.cppo.ml with conditional OXCAML flag (rule (targets worker.ml) (deps (:x worker.cppo.ml)) (enabled_if (not %{ocaml-config:ox})) (action (run %{bin:cppo} -V OCAML:%{ocaml_version} %{x} -o %{targets}))) (rule (targets worker.ml) (deps (:x worker.cppo.ml)) (enabled_if %{ocaml-config:ox}) (action (run %{bin:cppo} -V OCAML:%{ocaml_version} -D OXCAML %{x} -o %{targets}))) (library (name worker) (public_name merlin-js.worker) (ocamlopt_flags (:standard -w -58)) (js_of_ocaml (javascript_files stubs.js)) (preprocess (pps js_of_ocaml-ppx)) (libraries protocol merlin-lib.kernel merlin-lib.utils merlin-lib.query_protocol merlin-lib.query_commands merlin-lib.ocaml_parsing js_of_ocaml))