(rule
 (targets common.ml)
 (deps
  (:x common.cppo.ml))
 (enabled_if
  (not %{ocaml-config:ox}))
 (action
  (chdir
   %{workspace_root}
   (run %{bin:cppo} -V OCAML:%{ocaml_version} %{x} -o %{targets}))))

(rule
 (targets common.ml)
 (deps
  (:x common.cppo.ml))
 (enabled_if %{ocaml-config:ox})
 (action
  (chdir
   %{workspace_root}
   (run %{bin:cppo} -V OCAML:%{ocaml_version} -D "OXCAML" %{x} -o %{targets}))))

(library
 (name odoc_xref_test)
 (public_name odoc.xref_test)
 (modes byte)
 (libraries
  tyxml
  compiler-libs.toplevel
  compiler-libs.common
  odoc_xref2
  odoc_odoc
  odoc_model)
 (modules common))
