Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add experimental obuild file, from vincenthz/obuild-files

  • Loading branch information...
commit 470f76fb882156d88d2a8cc0555e078ba43b50c7 1 parent 43feec1
@avsm authored
Showing with 39 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +1 −0  CHANGES
  3. +37 −0 cstruct.obuild
View
1  .gitignore
@@ -2,3 +2,4 @@ setup.data
setup.log
*.swp
_build/
+dist/
View
1  CHANGES
@@ -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
37 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
Please sign in to comment.
Something went wrong with that request. Please try again.