module Ocb_stubblr_topkg:sig
..end
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
val cmd : Topkg.Conf.t -> Topkg.Conf.os -> Topkg.fpath list -> unit Topkg.result
val mirage : ?xen:bool -> ?fs:bool -> Topkg.fpath -> Topkg.Pkg.install
mirage ?xen ?fs clib
installs Mirage-specific
multi-lib variants of the given .clib
file.
xen
enables mirage-xen
target. Defaults to false
.
fs
enables mirage-freestanding
target. Defaults to false
.
In pkg.ml
:
ocb-stubblr
available from myocamlbuild.ml
#require "ocb-stubblr.topkg"
let build = Pkg.build ~cmd:Ocb_stubblr_topkg.cmd ()
let () = Pkg.describe ~build ...
Pkg.describe ... @@ fun c ->
...
Ok [ ...; mirage ~xen ~fs "path/to/libstubs.clib"]