description = "[@@deriving json]"
requires(ppx_driver) = "compiler-libs.common ppxlib ppxlib.ast"
archive(ppx_driver,byte) = "ppx_deriving_json.cma"
archive(ppx_driver,native) = "ppx_deriving_json.cmxa"
plugin(ppx_driver,byte) = "ppx_deriving_json.cma"
plugin(ppx_driver,native) = "ppx_deriving_json.cmxs"
# This is what dune uses to find out the runtime dependencies of
# a preprocessor
ppx_runtime_deps = "js_of_ocaml.deriving"
# This line makes things transparent for people mixing preprocessors
# and normal dependencies
requires(-ppx_driver) = "js_of_ocaml.deriving"
requires(-ppx_driver,-custom_ppx) += "ppx_deriving"
ppxopt(-ppx_driver,-custom_ppx) = "ppx_deriving,package:js_of_ocaml-ppx_deriving_json"
library_kind = "ppx_deriver"