meson: shorten code a bit

This commit is contained in:
Yu Watanabe
2023-06-20 08:06:43 +09:00
parent e04e42312d
commit 1782534bb1
2 changed files with 4 additions and 6 deletions

View File

@@ -1842,9 +1842,6 @@ else
endif
conf.set10('ENABLE_IMPORTD', have)
want_kernel_install = get_option('kernel-install')
conf.set10('ENABLE_KERNEL_INSTALL', want_kernel_install)
want_homed = get_option('homed')
if want_homed != 'false'
have = (conf.get('HAVE_OPENSSL') == 1 and
@@ -1861,9 +1858,6 @@ conf.set10('ENABLE_HOMED', have)
have = have and conf.get('HAVE_PAM') == 1
conf.set10('ENABLE_PAM_HOME', have)
have = get_option('oomd')
conf.set10('ENABLE_OOMD', have)
want_remote = get_option('remote')
if want_remote != 'false'
have_deps = [conf.get('HAVE_MICROHTTPD') == 1,
@@ -1896,6 +1890,7 @@ foreach term : ['analyze',
'idn',
'ima',
'initrd',
'kernel-install',
'ldconfig',
'localed',
'logind',
@@ -1904,6 +1899,7 @@ foreach term : ['analyze',
'nscd',
'nss-myhostname',
'nss-systemd',
'oomd',
'portabled',
'pstore',
'quotacheck',

View File

@@ -1,5 +1,7 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
want_kernel_install = conf.get('ENABLE_KERNEL_INSTALL') == 1
ukify_install = custom_target(
'60-ukify.install',
input : '60-ukify.install.in',