Merge pull request #28115 from yuwata/meson-tiny-fixes

meson: several tiny fixes
This commit is contained in:
Daan De Meyer
2023-06-22 11:49:36 +02:00
committed by GitHub
2 changed files with 15 additions and 20 deletions
+13 -20
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',
@@ -4248,9 +4244,6 @@ executable(
install_rpath : rootpkglibdir,
install : have_standalone_binaries,
install_dir : rootlibexecdir)
if have_standalone_binaries
public_programs += exe
endif
executable(
'systemd-update-done',
@@ -4454,11 +4447,11 @@ foreach test : tests
versiondep,
]
name = fs.stem(sources[0])
name = fs.name(sources[0])
if not name.endswith('.cc')
deps += [userspace]
endif
name = name.split('.')[0]
name = fs.stem(name)
suite = fs.name(fs.parent(sources[0])).replace('sd-', '')
@@ -4519,10 +4512,10 @@ exe = executable(
threads,
userspace,
],
build_by_default : want_tests != 'false' and static_libsystemd_pic,
install : install_tests and static_libsystemd_pic,
build_by_default : want_tests != 'false' and static_libsystemd != 'false',
install : install_tests and static_libsystemd != 'false',
install_dir : unittestsdir)
if want_tests != 'false' and static_libsystemd_pic
if want_tests != 'false' and static_libsystemd != 'false'
test('test-libsystemd-static-sym', exe)
endif
@@ -4547,20 +4540,20 @@ exe = executable(
c_args : ['-Wno-deprecated-declarations'] + test_cflags,
link_with : [install_libudev_static],
dependencies : userspace,
build_by_default : want_tests != 'false' and static_libudev_pic,
install : install_tests and static_libudev_pic,
build_by_default : want_tests != 'false' and static_libudev != 'false',
install : install_tests and static_libudev != 'false',
install_dir : unittestsdir)
if want_tests != 'false' and static_libudev_pic
if want_tests != 'false' and static_libudev != 'false'
test('test-libudev-static-sym', exe)
endif
if want_tests != 'false'
udev_rule_runner = TESTS['udev-rule-runner'].full_path()
exe = TESTS.get('udev-rule-runner')
test('test-udev',
test_udev_py,
args : ['-v'],
env : ['UDEV_RULE_RUNNER=@0@'.format(udev_rule_runner)],
env : ['UDEV_RULE_RUNNER=' + exe.full_path()],
depends : exe,
timeout : 180)
endif
+2
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',