summaryrefslogtreecommitdiff
path: root/mesonbuild/coredata.py
diff options
context:
space:
mode:
authorIgor Gnatenko <ignatenko@redhat.com>2016-12-05 14:27:05 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2016-12-06 20:27:02 +0200
commitc9818c02ecd9750eb9fd95ce510a31eb1d99e1f7 (patch)
tree312c55a24e11c51fa1df951d36ceaf930da6d0e4 /mesonbuild/coredata.py
parent66ed54a94e6511a72fa6a980108aea6301f6c60f (diff)
downloadmeson-c9818c02ecd9750eb9fd95ce510a31eb1d99e1f7.tar.gz
add builtin support for localstatedir
Reported-by: Richard Hughes <richard@hughsie.com> Closes: https://github.com/mesonbuild/meson/issues/1142 Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
Diffstat (limited to 'mesonbuild/coredata.py')
-rw-r--r--mesonbuild/coredata.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py
index 29ea1bf67..1a5abcc5f 100644
--- a/mesonbuild/coredata.py
+++ b/mesonbuild/coredata.py
@@ -212,15 +212,17 @@ builtin_options = {
'datadir' : [ UserStringOption, 'Data file directory.', 'share' ],
'mandir' : [ UserStringOption, 'Manual page directory.', 'share/man' ],
'localedir' : [ UserStringOption, 'Locale data directory.', 'share/locale' ],
- # Sysconfdir is a bit special. It defaults to ${prefix}/etc but nobody
- # uses that. Instead they always set it manually to /etc. This default
- # value is thus pointless and not really used but we set it to this
+ # sysconfdir and localstatedir are a bit special. These defaults to ${prefix}/etc and
+ # ${prefix}/var but nobody uses that. Instead they always set it manually to /etc and /var.
+ # This default values is thus pointless and not really used but we set it to this
# for consistency with other systems.
#
- # Projects installing to sysconfdir probably want to set the following in project():
+ # Projects installing to sysconfdir and/or localstatedir probably want
+ # to set the following in project():
#
- # default_options : ['sysconfdir=/etc']
+ # default_options : ['sysconfdir=/etc', 'localstatedir=/var']
'sysconfdir' : [ UserStringOption, 'Sysconf data directory.', 'etc' ],
+ 'localstatedir' : [ UserStringOption, 'Localstate data directory.', 'var' ],
'werror' : [ UserBooleanOption, 'Treat warnings as errors.', False ],
'warning_level' : [ UserComboOption, 'Compiler warning level to use.', [ '1', '2', '3' ], '1'],
'layout' : [ UserComboOption, 'Build directory layout.', ['mirror', 'flat' ], 'mirror' ],