mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
meson: Run clang-tidy on libsystemd headers as well
This commit is contained in:
@@ -2841,14 +2841,14 @@ alias_target('gensources', generated_sources)
|
||||
clang_tidy = find_program('clang-tidy', required : false)
|
||||
if meson.version().version_compare('>=1.4.0')
|
||||
foreach source : sources
|
||||
if fs.name(source).endswith('.h')
|
||||
if not source.full_path().endswith('.c') and not source.full_path().endswith('.h')
|
||||
continue
|
||||
endif
|
||||
|
||||
inputs = [source]
|
||||
|
||||
header = source.full_path().replace('.c', '.h')
|
||||
if fs.exists(header)
|
||||
if fs.exists(header) and header != source.full_path()
|
||||
inputs += header
|
||||
endif
|
||||
|
||||
|
||||
@@ -52,6 +52,9 @@ _not_installed_headers = [
|
||||
'sd-resolve.h',
|
||||
]
|
||||
|
||||
sources += systemd_headers
|
||||
sources += files(_not_installed_headers)
|
||||
|
||||
install_headers(
|
||||
systemd_headers,
|
||||
'_sd-common.h',
|
||||
|
||||
Reference in New Issue
Block a user