; Library defining mostly Target.ml and a few related modules.
;
; Note that the actual targeting code is in ../targeting/

(library
 (public_name semgrep.target)
 (name semgrep_core_target)
 (wrapped false)
 (libraries
   ; standard libraries
   ; in libs/
   commons
   ; in src/
   ; We should not depend on any other semgrep libs
   semgrep.sca ; for SCA_depencency.ml in Lockfile_xtarget.ml and more
   semgrep.rule ; for semgrep_output_v1.atd core types like 'ecosystem'
 )
 (preprocess
   (pps
     ppx_profiling
     ppx_deriving.eq
     ppx_deriving.ord
     ppx_deriving.show
     ppx_hash
   )
 )
)

; this is for a few files in this directory which contain multiple types
; using the same field names
(env
  (_
    (flags (:standard  -w -30))))
