summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-06-27 15:37:17 +0100
committerSimon McVittie <smcv@collabora.com>2022-07-13 20:36:13 +0100
commit398820d1fe45f85ac0a22971b88ce8a9903e4d70 (patch)
treedf09528018bc8bba9373d4beaeeb0687e934121a /bus
parente2f2c5dd42e193d4bddb0bda49b07bf254cff248 (diff)
downloaddbus-398820d1fe45f85ac0a22971b88ce8a9903e4d70.tar.gz
build: Change how we create empty directories from Meson
Use install_emptydir() in Meson versions that support it, or a script with similar invocation in versions that do not. This will make it straightforward to migrate to install_emptydir() when we drop support for Meson versions older than 0.60.0. Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'bus')
-rw-r--r--bus/meson.build13
1 files changed, 13 insertions, 0 deletions
diff --git a/bus/meson.build b/bus/meson.build
index 06e293b8..1aaaf48d 100644
--- a/bus/meson.build
+++ b/bus/meson.build
@@ -184,6 +184,19 @@ if platform_unix and use_traditional_activation
)
endif
+install_emptydirs += [
+ get_option('datadir') / 'dbus-1' / 'session.d',
+ get_option('datadir') / 'dbus-1' / 'services',
+]
+
+if platform_unix
+ install_emptydirs += [
+ get_option('localstatedir') / 'run' / 'dbus',
+ get_option('datadir') / 'dbus-1' / 'system.d',
+ get_option('datadir') / 'dbus-1' / 'system-services',
+ ]
+endif
+
if use_systemd
install_symlinks += [
{