(env
 (_
  (binaries
    merlin-wrapper
   (test-dirs/extract_ranges/extract_ranges.exe as extract_ranges)
   (test-dirs/show_location/show_location.exe as show_location))
  (env-vars
   (MERLIN merlin-wrapper)
   (OCAMLC ocamlc)
   (DUNE dune))))

(cram
 (package merlin)
 (applies_to :whole_subtree)
 (deps
  %{bin:merlin-wrapper}
  %{bin:ocamlmerlin-server}
  %{bin:ocamlmerlin}
  %{bin:extract_ranges}
  %{bin:show_location}
  %{bin:dot-merlin-reader}))

(cram
 (applies_to with-ppx)
 (deps
  (package ppxlib)))
