; Various definitions used throughout osemgrep, the OCaml reimplementation
; of the original Python semgrep.
;
; Eventually, this will be merged with the /core library from semgrep-core

(library
  (public_name semgrep.osemgrep_core)
  (name osemgrep_core)
  (wrapped false)
  (libraries
    cmdliner
    uri
    uuidm
    lwt ; for Project_metadata.ml

    commons

    semgrep_core
    semgrep.core_scan
  )
 (preprocess
   (pps
     ppx_profiling
     ppx_deriving.show
     ppx_deriving.eq
     ppx_hash
     ppx_inline_test
     ppx_assert
   )
 )
)

; this is just used in Metrics_.ml
(rule
 (targets semgrep_metrics_j.ml semgrep_metrics_j.mli)
 (deps    semgrep_metrics.atd)
 (action  (run atdgen -j -j-std %{deps})))
(rule
 (targets semgrep_metrics_t.ml semgrep_metrics_t.mli)
 (deps    semgrep_metrics.atd)
 (action  (run atdgen -t %{deps})))
