[gcr/meson-stuff: 4/6] meson: add falback for systemduserunitdir prefix
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr/meson-stuff: 4/6] meson: add falback for systemduserunitdir prefix
- Date: Sun, 12 Jun 2022 21:42:38 +0000 (UTC)
commit 5a1fd9b7df1891a28e7d673e0210c811b063203b
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun Jun 12 23:36:33 2022 +0200
meson: add falback for systemduserunitdir prefix
meson.build | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index a1e08822..e94db021 100644
--- a/meson.build
+++ b/meson.build
@@ -68,7 +68,10 @@ libsystemd_deps = []
libsystemd = dependency('libsystemd', required: get_option('systemd'))
systemd = dependency('systemd', required: get_option('systemd'))
if libsystemd.found() and systemd.found()
- systemduserunitdir = systemd.get_pkgconfig_variable('systemduserunitdir')
+ systemduserunitdir = systemd.get_variable('systemduserunitdir',
+ pkgconfig_define: [ 'prefix', get_option('prefix') ],
+ default_value: 'lib' / 'systemd' / 'user',
+ )
libsystemd_deps += libsystemd
with_systemd = true
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]