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:
parent
f7e5f39d61
commit
f727f3b963
15
meson.build
15
meson.build
@ -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())
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user