Ocb_stubblr_topkgHook up Ocb_stubblr with topkg.
ocb-stubblrval build_arg : Topkg.Cmd.tbuild_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.tbuild_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.resultcmd c os files is a full invocation of build_cmd.
val mirage :
?lib_dst_dir:Topkg.fpath ->
?xen:bool ->
?fs:bool ->
Topkg.fpath ->
Topkg.Pkg.install listmirage ?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.
In pkg.ml:
ocb-stubblrlet build = Pkg.build ~cmd:Ocb_stubblr_topkg.cmd ()
let () = Pkg.describe ~build ...Pkg.describe ... @@ fun c ->
...
Ok ([ ... ] @
Ocb_stubblr_topkg.clib_mirage
~cond ~xen ~fs "path/to/libstubs.clib")