1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

meson: move declaration of systemd-analyze

This commit is contained in:
Yu Watanabe 2023-06-25 15:15:56 +09:00
parent f7e5f39d61
commit f727f3b963
2 changed files with 16 additions and 14 deletions

View File

@ -2533,21 +2533,8 @@ endforeach
############################################################
exe = executable(
'systemd-analyze',
systemd_analyze_sources,
include_directories : core_includes,
link_with : [libcore,
libshared],
dependencies : [libseccomp,
userspace],
install_rpath : pkglibdir,
install : conf.get('ENABLE_ANALYZE') == 1)
if conf.get('ENABLE_ANALYZE') == 1
public_programs += exe
endif
if want_tests != 'false'
exe = executables_by_name.get('systemd-analyze')
test('test-compare-versions',
test_compare_versions_sh,
args : exe.full_path())

View File

@ -33,6 +33,21 @@ systemd_analyze_sources = files(
'analyze.c',
)
executables += [
executable_template + {
'name' : 'systemd-analyze',
'public' : conf.get('ENABLE_ANALYZE') == 1,
'sources' : systemd_analyze_sources,
'include_directories' : core_includes,
'link_with' : [
libcore,
libshared,
],
'dependencies' : libseccomp,
'install' : conf.get('ENABLE_ANALYZE') == 1,
},
]
tests += [
{
'sources' : files(