Module Ocb_stubblr_topkg
Hook up Ocb_stubblr with topkg.
Activating ocb-stubblr
val build_arg : Topkg.Cmd.tbuild_argis the command-line parameter that needs to be passed toocamlbuildin order to accessOcb_stubblrinsidemyocamlbuild.ml.
val build_cmd : Topkg.Conf.t -> Topkg.Conf.os -> Topkg.Cmd.tbuild_cmd c osis the defaultTopkg.build_cmd extended withbuild_arg.
val cmd : Topkg.Conf.t -> Topkg.Conf.os -> Topkg.fpath list -> unit Topkg.resultcmd c os filesis a full invocation ofbuild_cmd.
Install helpers
val mirage : ?xen:bool -> ?fs:bool -> Topkg.fpath -> Topkg.Pkg.installmirage ?xen ?fs clibinstalls Mirage-specific multi-lib variants of the given.clibfile.xenenablesmirage-xentarget. Defaults tofalse.fsenablesmirage-freestandingtarget. Defaults tofalse.
Usage
In pkg.ml:
Making ocb-stubblr available from myocamlbuild.ml
#require "ocb-stubblr.topkg"
let build = Pkg.build ~cmd:Ocb_stubblr_topkg.cmd ()
let () = Pkg.describe ~build ...Mirage
Pkg.describe ... @@ fun c ->
...
Ok [ ...; mirage ~xen ~fs "path/to/libstubs.clib"]