summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-06-24 13:17:26 +0100
committerSimon McVittie <smcv@collabora.com>2022-07-13 20:36:13 +0100
commitff92efa389a57a5250c6996df6614234d4d462e0 (patch)
tree47b7c2a8ef387e3f380dfff21e0ee38508db268f /meson_options.txt
parente75d8a7cbc98c13a1e75360e7ea6a36123ad849d (diff)
downloaddbus-ff92efa389a57a5250c6996df6614234d4d462e0.tar.gz
build: Implement a runtime_dir option
If the prefix is /usr, then this defaults to /run, similar to the special cases for /var and /etc built into Meson. This is correct for typical modern Linux distributions implementing FHS 3.0. This is intentionally not consistent with Autotools and CMake: if distributions are transitioning to a different way to build dbus, then that's a good time to re-evaluate their build options. Otherwise, this defaults to LOCALSTATEDIR/run, consistent with Autotools and CMake. Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index ce293453..4babdd65 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -170,6 +170,15 @@ option(
description: 'Make pkg-config metadata relocatable'
)
+# Deliberately not named runstatedir to avoid colliding with
+# https://github.com/mesonbuild/meson/issues/4141
+option(
+ 'runtime_dir',
+ type: 'string',
+ value: '',
+ description: 'Directory for transient runtime state [default: LOCALSTATEDIR/run or /run]'
+)
+
option(
'selinux',
type: 'feature',