diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2022-11-30 13:45:34 +0000 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2022-12-02 21:48:03 +0000 |
commit | 30995f9dd7c24314c362a3e30102b89196bcef84 (patch) | |
tree | 56637f1b55c4b7bb33c887f3531eac71dd0abfe4 /meson_options.txt | |
parent | 3bbe96ca89212152ac2c7aed0219569f2b6c5b30 (diff) |
build: Add runtime_dir option to set runstatedir path
This will be used in upcoming commits to allow the previously-hardcoded
`/run` path to be set at configure time.
Most people will not want to change it from `/run`, even when building
test builds, as otherwise interaction with system mounts and services
will not work.
Inspired by equivalent changes in dbus.git in their commit
ff92efa389a57a5250c6996df6614234d4d462e0.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 9c2c70b6c..517d5757c 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -14,6 +14,14 @@ option('gio_module_dir', value : '', description : 'load gio modules from this directory (default to \'libdir/gio/modules\' if unset)') +# FIXME: Deliberately not named runstatedir to avoid colliding with +# https://github.com/mesonbuild/meson/issues/4141; port to that when Meson +# supports it +option('runtime_dir', + type: 'string', + value: '', + description: 'Directory for transient runtime state [default: /run]') + option('selinux', type : 'feature', value : 'auto', |