samoht / assemblage

A collection of tools to manage the configuration of OCaml projects
54 stars 4 forks source link

Support for generating opam .config files #175

Closed dbuenzli closed 4 years ago

dbuenzli commented 9 years ago

Somehow. See http://opam.ocaml.org/doc/manual/dev-manual.html#sec40.

dbuenzli commented 9 years ago

One way could be to add one more optional parameter (record, trace, export ?) to configuration key creation (if you want to capture a derived configuration value you can simply create a private configuration key using the value as the default value). Drivers are then free to interpret this boolean as they wish. In the default driver, any exported configuration key would be dumped to a $PKG.config file.

dbuenzli commented 9 years ago

See also the switch and package configuration variable proposal https://github.com/ocaml/opam/issues/2247