package ocb-stubblr
OCamlbuild plugin for C stubs
Install
Dune Dependency
Authors
Maintainers
Sources
ocb-stubblr-0.0.1.tbz
sha256=e0a745e74cc5d78f58b0ea8d10a1cb1b12d1240bba8173b2318c9c70ba30e509
md5=0a7c257f618775fa3215ecd0c900f164
doc/ocb-stubblr.topkg/Ocb_stubblr_topkg/index.html
Module Ocb_stubblr_topkg
Hook up Ocb_stubblr
with topkg
.
Activating ocb-stubblr
val build_arg : Topkg.Cmd.t
build_arg
is the command-line parameter that needs to be passed to ocamlbuild
in order to access Ocb_stubblr
inside myocamlbuild.ml
.
val build_cmd : Topkg.Conf.t -> Topkg.Conf.os -> Topkg.Cmd.t
build_cmd c os
is the default Topkg.build_cmd
extended with build_arg
.
val cmd :
Topkg.Conf.t ->
Topkg.Conf.os ->
Topkg.fpath list ->
unit Topkg.result
cmd c os files
is a full invocation of build_cmd
.
Install helpers
val mirage :
?lib_dst_dir:Topkg.fpath ->
?xen:bool ->
?fs:bool ->
Topkg.fpath ->
Topkg.Pkg.install list
mirage ?lib_dst_dir ?cond ?xen ?fs clib
installs Mirage-specific multi-lib variants of .clib
. It hands off to Topkg.Pkg.clib
.
lib_dst_dir
is passed to clib
.
xen
controls mirage-xen
target. Defaults to false
.
fs
controls mirage-freestanding
target. Defaults to false
.
Usage
In pkg.ml
:
Hooking up ocb-stubblr
let build = Pkg.build ~cmd:Ocb_stubblr_topkg.cmd ()
let () = Pkg.describe ~build ...
Mirage
Pkg.describe ... @@ fun c ->
...
Ok ([ ... ] @
Ocb_stubblr_topkg.clib_mirage
~cond ~xen ~fs "path/to/libstubs.clib")
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page