Debian Codegraph @

src/shutdown/meson.build

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 if conf.get('HAVE_LIBMOUNT') != 1
4 subdir_done()
5 endif
6
7 shutdown_detach_sources = files(
8 'detach-swap.c',
9 'umount.c',
10 )
11
12 executables += [
13 libexec_template + {
14 'name' : 'systemd-shutdown',
15 'extract' : files(
16 'detach-dm.c',
17 'detach-loopback.c',
18 'detach-md.c',
19 'shutdown.c',
20 ) + shutdown_detach_sources,
21 'dependencies' : libmount_cflags,
22 },
23 libexec_template + {
24 'name' : 'systemd-shutdown.standalone',
25 'objects' : ['systemd-shutdown'],
26 'link_with' : [
27 libc_wrapper_static,
28 libbasic_static,
29 libshared_static,
30 libsystemd_static,
31 ],
32 'dependencies' : libmount_cflags,
33 },
34 test_template + {
35 'sources' : files('test-umount.c') +
36 shutdown_detach_sources,
37 'dependencies' : libmount_cflags,
38 },
39 ]