(executable
 (public_name mte)
 (name mte)
 (modules assets assets_crunch headers mte config util management)
 (libraries
  json
  types
  headers_lib
  syntax
  ;
  mirage-crypto
  duration
  vif
  fmt
  jsont
  cohttp))

(library
 (name json)
 (modules json)
 (libraries jsont jsont.bytesrw fmt syntax types))

(library
 (name types)
 (modules types)
 (libraries fmt syntax))

(library
 (name headers_lib)
 (modules headers_lib)
 (libraries fmt syntax))

(library
 (name syntax)
 (modules syntax)
 (libraries))

(library
 (name base_32)
 (modules base_32)
 (libraries base32))

(rule
 (target assets_crunch.ml)
 (deps
  (source_tree assets))
 (action
  (with-stdout-to
   %{null}
   (run ocaml-crunch -m plain assets -o %{target}))))
