aboutsummaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2016-11-12 03:08:34 +0100
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2017-05-29 12:12:56 +0200
commit58935ddbaf6f0e2470716d30f70ea18a9f8151c4 (patch)
treed1d3c05980afd415a48431b23051b05918cb902c /config
parentd53ba17d1761261593c598b6a88cfd6ce0eb3514 (diff)
Exporting the suffixes needed to build coqlib, docdir, etc.
This allows to centralize in the configuration file the description of the 3 possible installation layouts (dispatched over directories shared by multiple application as in unix, self-contained style like in windows, local non-installation as with option -local). Also supporting relocalisation when -prefix or -libdir and co is given.
Diffstat (limited to 'config')
-rw-r--r--config/coq_config.mli8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/coq_config.mli b/config/coq_config.mli
index 28a40ca93..2b3bc2c25 100644
--- a/config/coq_config.mli
+++ b/config/coq_config.mli
@@ -8,11 +8,19 @@
val local : bool (* local use (no installation) *)
+(* The fields below are absolute paths *)
val coqlib : string (* where the std library is installed *)
val configdir : string (* where configuration files are installed *)
val datadir : string (* where extra data files are installed *)
val docdir : string (* where the doc is installed *)
+(* The fields below are paths relative to the installation prefix *)
+(* However, if an absolute path, it means discarding the actual prefix *)
+val coqlibsuffix : string (* std library relative to installation prefix *)
+val configdirsuffix : string (* config files relative to installation prefix *)
+val datadirsuffix : string (* data files relative to installation prefix *)
+val docdirsuffix : string (* doc directory relative to installation prefix *)
+
val ocaml : string (* names of ocaml binaries *)
val ocamlfind : string
val ocamllex : string