Also, let's deflatten the lists of sources in preparation for the next commit at the same time. In systemctl, we split out systemctl-main.c to make sure the definition of main() is in a separate object which allows us to extract the systemctl.c object and link it in the fuzzer target without getting a multiple definition error when linking.
65 lines
2.1 KiB
Meson
65 lines
2.1 KiB
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
systemd_sysupdate_sources = files(
|
|
'sysupdate-cache.c',
|
|
'sysupdate-feature.c',
|
|
'sysupdate-instance.c',
|
|
'sysupdate-partition.c',
|
|
'sysupdate-pattern.c',
|
|
'sysupdate-resource.c',
|
|
'sysupdate-transfer.c',
|
|
'sysupdate-update-set.c',
|
|
'sysupdate.c',
|
|
)
|
|
systemd_sysupdate_extract_sources = files(
|
|
'sysupdate-update-set-flags.c',
|
|
'sysupdate-util.c',
|
|
)
|
|
|
|
systemd_updatectl_sources = files(
|
|
'updatectl.c',
|
|
)
|
|
|
|
executables += [
|
|
libexec_template + {
|
|
'name' : 'systemd-sysupdate',
|
|
'public' : true,
|
|
'conditions' : ['ENABLE_SYSUPDATE'],
|
|
'sources' : systemd_sysupdate_sources + systemd_sysupdate_extract_sources,
|
|
'extract' : systemd_sysupdate_extract_sources,
|
|
'link_with' : [
|
|
libshared,
|
|
libshared_fdisk,
|
|
],
|
|
'dependencies' : [
|
|
libblkid,
|
|
libfdisk,
|
|
libopenssl,
|
|
threads,
|
|
],
|
|
},
|
|
libexec_template + {
|
|
'name' : 'systemd-sysupdated',
|
|
'dbus' : true,
|
|
'conditions' : ['ENABLE_SYSUPDATED'],
|
|
'sources' : files('sysupdated.c'),
|
|
'dependencies' : threads,
|
|
},
|
|
executable_template + {
|
|
'name' : 'updatectl',
|
|
'public' : true,
|
|
'sources' : systemd_updatectl_sources,
|
|
'objects' : ['systemd-sysupdate'],
|
|
'conditions' : ['ENABLE_SYSUPDATED'],
|
|
},
|
|
]
|
|
|
|
if conf.get('ENABLE_SYSUPDATED') == 1
|
|
install_data('org.freedesktop.sysupdate1.conf',
|
|
install_dir : dbuspolicydir)
|
|
install_data('org.freedesktop.sysupdate1.service',
|
|
install_dir : dbussystemservicedir)
|
|
install_data('org.freedesktop.sysupdate1.policy',
|
|
install_dir : polkitpolicydir)
|
|
endif
|