Permalink
Browse files

add experimental obuild file, from vincenthz/obuild-files

  • Loading branch information...
1 parent 43feec1 commit 470f76fb882156d88d2a8cc0555e078ba43b50c7 @avsm committed Jan 26, 2013
Showing with 39 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 CHANGES
  3. +37 −0 cstruct.obuild
View
@@ -2,3 +2,4 @@ setup.data
setup.log
*.swp
_build/
+dist/
View
@@ -1,5 +1,6 @@
0.6.2 (trunk):
+* Add experimental `cstruct.obuild` for the `obuild` build tool.
* 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.
* Add `set_len` and `add_len` to manipulate the total-length field directly.
View
@@ -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.