(env
 (dev
  (flags
   (:standard -warn-error -A))))

(library
 (name posix_stat)
 (public_name posix-stat)
 (synopsis
  "posix-stat provides access to the features exposed in sys/stat.h")
 (foreign_stubs
  (language c)
  (names posix_stat_generated_stubs))
 (libraries
  ctypes
  posix-types
  posix-errno
  posix-time2
  posix-stat.types
  posix-stat.stubs))

(rule
 (targets posix_stat_generated_stubs.ml)
 (action
  (run ./generator/gen_stubs.exe ml %{targets})))

(rule
 (targets posix_stat_generated_stubs.c)
 (action
  (run ./generator/gen_stubs.exe c %{targets})))
