From dbab4fb9e5c3537fc8298d543f1a2e5e74a194f9 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 25 Jun 2023 15:39:45 +0900 Subject: [PATCH] meson: move declaration of user-sessions --- meson.build | 13 +------------ src/user-sessions/meson.build | 9 +++++++++ 2 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 src/user-sessions/meson.build diff --git a/meson.build b/meson.build index d7a297584ae..2251a9b0958 100644 --- a/meson.build +++ b/meson.build @@ -2412,6 +2412,7 @@ subdir('src/sysupdate') subdir('src/timedate') subdir('src/timesync') subdir('src/tmpfiles') +subdir('src/user-sessions') subdir('src/userdb') subdir('src/xdg-autostart-generator') @@ -2558,18 +2559,6 @@ if want_tests != 'false' depends : exe) endif -if conf.get('HAVE_PAM') == 1 - executable( - 'systemd-user-sessions', - 'src/user-sessions/user-sessions.c', - include_directories : includes, - link_with : [libshared], - dependencies : userspace, - install_rpath : pkglibdir, - install : true, - install_dir : libexecdir) -endif - if conf.get('HAVE_BLKID') == 1 and conf.get('ENABLE_BOOTLOADER') == 1 if get_option('link-boot-shared') boot_link_with = [libshared] diff --git a/src/user-sessions/meson.build b/src/user-sessions/meson.build new file mode 100644 index 00000000000..938e5267ef5 --- /dev/null +++ b/src/user-sessions/meson.build @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later + +executables += [ + libexec_template + { + 'name' : 'systemd-user-sessions', + 'conditions' : ['HAVE_PAM'], + 'sources' : files('user-sessions.c'), + }, +]