Flag bundle
  Description: Build BAP bundler
  Default: false

Library bundle
  Build$:        flag(everything) || flag(bundle)
  Path:          lib/bap_bundle
  FindlibName:   bap-bundle
  BuildDepends:  uri, camlzip, unix, core_kernel, core_kernel.caml_unix, ppx_bap
  Modules:       Bap_bundle
  InternalModules: Bap_bundle_config

Executable "bapbundle"
  Build$:         flag(everything) || flag(bundle)
  Path:           tools
  MainIs:         bapbundle.ml
  Install:        true
  CompiledObject: best
  BuildDepends:   core_kernel, bap-bundle, fileutils, uri
