OASISFormat: 0.3
Name:        cstruct
Version:     1.4.0
Synopsis:    Manipulate external buffers as C-like structs
Authors:     Anil Madhavapeddy, Richard Mortier, Thomas Gazagnaire, Pierre Chambart, David Kaloper
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, sexplib, sexplib.syntax
  XMETARequires: bigarray, ocplib-endian, ocplib-endian.bigstring, sexplib
  CSources: cstruct_stubs.c
  CCOpt:    -O3 -Wall

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

Executable test_bounds
  Install:      false
  Path:         lib_test
  BuildDepends: cstruct,unix,oUnit
  MainIs:       bounds.ml

Test test_bounds
  Command:      ./bounds.byte
  Run:          true

Document api
  Title: Documentation and API reference
  Type: ocamlbuild (0.3)
  BuildTools+: ocamldoc
  XOcamlbuildPath: doc
  XOcamlbuildModules: Cstruct, Lwt_cstruct, Unix_cstruct
  Install: false
