Up

Module Application_specific_fields

Application_specific_fields is a single field in the build-info sexp that holds a Sexp.t String.Map.t, which can be chosen by the application to hold custom fields that it needs.

Signature

val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val putenv : t -> unit

putenv t stores t in the process environment so that build_info.sh will see it. One calls putenv t in a program before calling OMake to set the appropriate environment variable so that the application-specific fields in the program being compiled will have value t. That is, one calls putenv in the program building the application and Version_util.application_specific_fields in the application itself.