OASISFormat: 0.3
Name:        cstruct
Version:     0.7.1
Synopsis:    Manipulate external buffers as C-like structs
Authors:     Anil Madhavapeddy, Richard Mortier, Thomas Gazagnaire, Pierre Chambart
License:     ISC
Plugins:     META (0.3)
BuildTools:  ocamlbuild

Flag lwt
  Description: build the Lwt library
  Default: false

Flag async
  Description: build the Async_unix library
  Default: false

Flag unix
  Description: build the UNIX library
  Default: false

Library cstruct
  Path:       lib/
  Modules:    Cstruct
  BuildDepends: bigarray, ocplib-endian, ocplib-endian.bigstring
  CSources: cstruct_stubs.c
  CCOpt:    -O3

Library async_cstruct
  Build$:     flag(async)
  Path:       async/
  BuildDepends: cstruct,async,threads
  Findlibname: async
  Findlibparent: cstruct
  Modules: Async_cstruct

Library lwt_cstruct
  Build$:     flag(lwt)
  Path:       lwt/
  BuildDepends: cstruct,lwt.unix
  Findlibname: lwt
  Findlibparent: cstruct
  Modules: Lwt_cstruct

Library unix_cstruct
  Build$:             flag(unix)
  Path:       unix/
  BuildDepends: cstruct,unix
  Findlibname: unix
  Findlibparent: cstruct
  Modules: Unix_cstruct
 
Library "cstruct-syntax"
  FindlibName: syntax
  FindlibParent: cstruct
  BuildTools: ocamlbuild
  Path: syntax
  BuildDepends: camlp4.lib, camlp4.quotations.r, camlp4.extend, bigarray
  Modules: Pa_cstruct
  XMETAEnable: true
  XMETAType: syntax
  XMETADescription: Syntax extension for Cstruct
  XMETARequires: camlp4
