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

(test
 (name test_api)
 (libraries ounit2 compiler-libs.common ppx_deriving.api)
 (preprocess (pps ppxlib.metaquot)))
