Skip to content

Commit

Permalink
add experimental obuild file, from vincenthz/obuild-files
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Jan 26, 2013
1 parent 43feec1 commit 470f76f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ setup.data
setup.log setup.log
*.swp *.swp
_build/ _build/
dist/
1 change: 1 addition & 0 deletions CHANGES
@@ -1,5 +1,6 @@
0.6.2 (trunk): 0.6.2 (trunk):


* Add experimental `cstruct.obuild` for the `obuild` build tool.
* Use bounds checked version of all functions in the external interface. * Use bounds checked version of all functions in the external interface.
* Expose the `Cstruct.debug` to dump internal state of a buffer to a string. * Expose the `Cstruct.debug` to dump internal state of a buffer to a string.
* Add `set_len` and `add_len` to manipulate the total-length field directly. * Add `set_len` and `add_len` to manipulate the total-length field directly.
Expand Down
37 changes: 37 additions & 0 deletions cstruct.obuild
@@ -0,0 +1,37 @@
name: cstruct
version: 0.6.2
synopsis: manipulate external buffers as C-like structs
authors: Anil Madhavapeddy, Richard Mortier, Thomas Gazagnaire, Pierre Chambart
license: isc
obuild-ver: 1

library cstruct
path: lib/
modules: cstruct
builddepends: bigarray, ocplib-endian, ocplib-endian.bigstring
cdir: lib/
csources: cstruct_stubs.c
ccopt: -o3

sub lwt
path: lwt/
builddepends: cstruct,lwt.unix
modules: lwt_cstruct

sub unix
path: unix/
builddepends: cstruct,unix
modules: unix_cstruct

sub syntax
path: syntax
builddepends: camlp4.lib, camlp4.quotations.r, camlp4.extend
modules: pa_cstruct
syntax: true
pp: camlp4o

example pcap
path: lib_test/
main-is: pcap.ml
builddepends: cstruct.unix,cstruct.syntax
pp: camlp4o

0 comments on commit 470f76f

Please sign in to comment.