package ocb-stubblr
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=1d678402e9f3780dbf93d30c51f33f439495c2153296b4d63d8dc5217e724cbf
md5=57b37a1ff318d0baa08259e5505590f3
Description
Do you get excited by C stubs? Do they sometimes make you swoon, and even faint,
and in the end no cmxa
s get properly linked -- not to mention correct
multi-lib support?
Do you wish that the things that excite you the most, would excite you just a little less? Then ocb-stubblr is just the library for you.
ocb-stubblr is about ten lines of code that you need to repeat over, over, over
and over again if you are using ocamlbuild
to build OCaml projects that
contain C stubs -- now with 100% more lib!
It does what everyone wants to do with .clib
files in their project
directories. It can also clone the .clib
and arrange for multiple compilations
with different sets of discovered cflags
.
ocb-stubblr is distributed under the ISC license.
Published: 28 Oct 2016
README
ocb-stubblr — OCamlbuild plugin for C stubs
v0.0.2
Do you get excited by C stubs? Do they sometimes make you swoon, and even faint, and in the end no cmxa
s get properly linked -- not to mention correct multi-lib support?
Do you wish that the things that excite you the most, would excite you just a little less? Then ocb-stubblr is just the library for you.
ocb-stubblr is about ten lines of code that you need to repeat over, over, over and over again if you are using ocamlbuild
to build OCaml projects that contain C stubs -- now with 100% more lib!
It does what everyone wants to do with .clib
files in their project directories. It can also clone the .clib
and arrange for multiple compilations with different sets of discovered cflags
.
ocb-stubblr is distributed under the ISC license.
Set it up
pkg/pkg.ml
:
#require "ocb-stubblr.topkg"
open Ocb_stubblr_topkg
let () =
Pkg.describe ~build:(Pkg.build ~cmd ()) ...
myocamlbuild.ml
:
open Ocamlbuild_plugin
let () = dispatchv Ocb_stubblr.init
opam
:
depends: [
"ocamlfind" {build}
"ocamlbuild" {build}
"topkg" {build}
"ocb-stubblr" {build}
...
]
Documentation
Interfaces are documented. Online too.
Development
Feel free to pitch in with ideas, especially if you have work-flows that are not, but could almost be supported.
Dependencies (5)
- astring
-
topkg
>= "0.7.8" & < "0.8.0"
- ocamlbuild
-
ocamlfind
build
-
ocaml
>= "4.02.0"
Dev Dependencies
None
Used by (10)
-
cpuid
= "0.1.1"
-
dtoa
< "0.3.0"
-
ipv6-multicast
< "0.9"
-
irmin-watcher
= "0.2.0"
-
mirage-entropy
< "0.5.0"
-
mirage-solo5
>= "0.2.0" & < "0.6.2"
-
mirage-xen
>= "3.0.6" & < "3.2.0"
-
papi
< "0.1.1"
- sendmsg
-
tsdl
>= "0.9.2" & < "0.9.7"
Conflicts
None