meson: add ENABLE_ANALYZE conditional

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-08-20 17:35:50 +02:00
parent 4338ab8163
commit b3259a6e5f

View file

@ -1415,42 +1415,43 @@ else
endif endif
conf.set10('ENABLE_REMOTE', have) conf.set10('ENABLE_REMOTE', have)
foreach term : ['utmp', foreach term : ['analyze',
'hibernate', 'backlight',
'environment-d',
'binfmt', 'binfmt',
'coredump', 'coredump',
'pstore', 'efi',
'resolve', 'environment-d',
'logind', 'firstboot',
'gshadow',
'hibernate',
'hostnamed', 'hostnamed',
'hwdb',
'idn',
'ima',
'initrd',
'ldconfig',
'localed', 'localed',
'logind',
'machined', 'machined',
'portabled',
'userdb',
'networkd', 'networkd',
'nss-myhostname',
'nss-systemd',
'portabled',
'pstore',
'quotacheck',
'randomseed',
'resolve',
'rfkill',
'smack',
'sysusers',
'timedated', 'timedated',
'timesyncd', 'timesyncd',
'firstboot',
'randomseed',
'backlight',
'vconsole',
'quotacheck',
'sysusers',
'tmpfiles', 'tmpfiles',
'hwdb',
'rfkill',
'xdg-autostart',
'ldconfig',
'efi',
'tpm', 'tpm',
'ima', 'userdb',
'smack', 'utmp',
'gshadow', 'vconsole',
'idn', 'xdg-autostart']
'initrd',
'nss-myhostname',
'nss-systemd']
have = get_option(term) have = get_option(term)
name = 'ENABLE_' + term.underscorify().to_upper() name = 'ENABLE_' + term.underscorify().to_upper()
conf.set10(name, have) conf.set10(name, have)
@ -1767,7 +1768,7 @@ public_programs += executable(
libmount, libmount,
libblkid], libblkid],
install_rpath : rootlibexecdir, install_rpath : rootlibexecdir,
install : get_option('analyze')) install : conf.get('ENABLE_ANALYZE'))
executable( executable(
'systemd-journald', 'systemd-journald',
@ -3681,7 +3682,7 @@ foreach tuple : [
['link-networkd-shared', get_option('link-networkd-shared')], ['link-networkd-shared', get_option('link-networkd-shared')],
['link-timesyncd-shared', get_option('link-timesyncd-shared')], ['link-timesyncd-shared', get_option('link-timesyncd-shared')],
['kernel-install', get_option('kernel-install')], ['kernel-install', get_option('kernel-install')],
['systemd-analyze', get_option('analyze')], ['systemd-analyze', conf.get('ENABLE_ANALYZE') == 1],
] ]
if tuple.length() >= 2 if tuple.length() >= 2