package oasis
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=18b73deef4ed6e9a83337f24b3bbe2ded65268b3ff7309fcc00d25e57e1dc12e
md5=98492f4657c2c5b30e3b1bc945e58419
doc/oasis.base/BaseBuilt/index.html
Module BaseBuilt
Register files built to be installed
val register :
ctxt:OASISContext.t ->
t ->
OASISTypes.name ->
OASISTypes.host_filename list list ->
unit
Register files built. Each files built is provided as a list of alternatives. At least one alternative file should exist when registering and we only register existing ones.
val unregister : ctxt:OASISContext.t -> t -> OASISTypes.name -> unit
Unregister all files built.
val fold :
ctxt:OASISContext.t ->
t ->
OASISTypes.name ->
('a -> OASISTypes.host_filename -> 'a) ->
'a ->
'a
Fold-left files built, filter existing and non-existing files.
val is_built : ctxt:OASISContext.t -> t -> OASISTypes.name -> bool
Check if a library/object/doc/exec has been built.
val of_executable :
(OASISTypes.unix_filename -> OASISTypes.host_filename) ->
(OASISTypes.common_section * OASISTypes.build_section * OASISTypes.executable) ->
(t * OASISTypes.name * OASISTypes.host_filename list list) list
* OASISTypes.unix_filename
* OASISTypes.unix_filename option
of_executable loc_fn (cs, bs, exec)
Compute at the same time events that should be registered by register
and data returned by OASISExecutable.unix_exec_is
. Use loc_fn
, if generated files are moved to a directory different from sources (e.g. in directory "_build").
val of_library :
(OASISTypes.unix_filename -> OASISTypes.host_filename) ->
(OASISTypes.common_section * OASISTypes.build_section * OASISTypes.library) ->
(t * OASISTypes.name * OASISTypes.host_filename list list) list
* OASISTypes.unix_filename list list
of_library loc_fn (cs, bs, lib)
Same as of_executable
, but using OASISLibrary.generated_unix_files
.
val of_object :
(OASISTypes.unix_filename -> OASISTypes.host_filename) ->
(OASISTypes.common_section * OASISTypes.build_section * OASISTypes.object_) ->
(t * OASISTypes.name * OASISTypes.host_filename list list) list
* OASISTypes.unix_filename list list
of_object loc_fn (cs, bs, lib)
Same as of_executable
, but using OASISObject.generated_unix_files
.