Debian Codegraph @

src/portable/meson.build

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 if conf.get('ENABLE_PORTABLED') != 1
4 subdir_done()
5 endif
6
7 systemd_portabled_sources = files(
8 'portable.c',
9 'portabled-bus.c',
10 'portabled-image-bus.c',
11 'portabled-image.c',
12 'portabled-operation.c',
13 'portabled.c',
14 )
15
16 if get_option('link-portabled-shared')
17 portabled_link_with = [libshared]
18 else
19 portabled_link_with = [
20 libshared_static,
21 libsystemd_static,
22 ]
23 endif
24
25 executables += [
26 libexec_template + {
27 'name' : 'systemd-portabled',
28 'dbus' : true,
29 'sources' : systemd_portabled_sources,
30 'link_with' : portabled_link_with,
31 'dependencies' : [
32 libcryptsetup_cflags,
33 libmount_cflags,
34 libselinux_cflags,
35 ],
36 },
37 executable_template + {
38 'name' : 'portablectl',
39 'public' : true,
40 'sources' : files('portablectl.c'),
41 'link_with' : portabled_link_with,
42 },
43 ]
44
45 install_data('org.freedesktop.portable1.conf',
46 install_dir : dbuspolicydir)
47 install_data('org.freedesktop.portable1.service',
48 install_dir : dbussystemservicedir)
49 install_data('org.freedesktop.portable1.service-for-session',
50 install_dir : dbussessionservicedir,
51 rename : 'org.freedesktop.portable1.service')
52 install_data('org.freedesktop.portable1.policy',
53 install_dir : polkitpolicydir)
54
55 install_data('profile/system/default/service.conf', install_dir : systemprofiledir / 'default')
56 install_data('profile/system/nonetwork/service.conf', install_dir : systemprofiledir / 'nonetwork')
57 install_data('profile/system/strict/service.conf', install_dir : systemprofiledir / 'strict')
58 install_data('profile/system/trusted/service.conf', install_dir : systemprofiledir / 'trusted')
59
60 install_data('profile/user/default/service.conf', install_dir : userprofiledir / 'default')
61 install_data('profile/user/nonetwork/service.conf', install_dir : userprofiledir / 'nonetwork')
62 install_data('profile/user/strict/service.conf', install_dir : userprofiledir / 'strict')
63 install_data('profile/user/trusted/service.conf', install_dir : userprofiledir / 'trusted')