(rule
 (deps ../compat_macros.cppo)
 (targets ppx_deriving_eq.ml)
 (action (run %{bin:cppo} -V OCAML:%{ocaml_version}
              %{dep:ppx_deriving_eq.cppo.ml} -o %{targets})))

(library
 (name ppx_deriving_eq)
 (public_name ppx_deriving.eq)
 (synopsis "[@@deriving eq]")
 (preprocess
  (action (run ppxfind -legacy ppx_tools.metaquot --as-pp %{input-file})))
 (libraries compiler-libs.common ppx_tools ppx_deriving.api)
 (kind ppx_deriver))
