meson: make lines more consistent

This commit is contained in:
Diego Viola 2023-12-14 18:35:00 -03:00 committed by Zbigniew Jędrzejewski-Szmek
parent 1905d621db
commit e6267e832b

View file

@ -698,7 +698,7 @@ if run_command(ln, '--relative', '--help', check : false).returncode() != 0
error('ln does not support --relative (added in coreutils 8.16)')
endif
############################################################
#####################################################################
gperf = find_program('gperf')
@ -724,7 +724,7 @@ message('gperf len type is @0@'.format(gperf_len_type))
conf.set('GPERF_LEN_TYPE', gperf_len_type,
description : 'The type of gperf "len" parameter')
############################################################
#####################################################################
if not cc.has_header('sys/capability.h')
error('POSIX caps headers not found')
@ -744,7 +744,7 @@ foreach header : ['crypt.h',
cc.has_header(header))
endforeach
############################################################
#####################################################################
fallback_hostname = get_option('fallback-hostname')
if fallback_hostname == '' or fallback_hostname[0] == '.' or fallback_hostname[0] == '-'
@ -1659,13 +1659,13 @@ conf.set10('ENABLE_TIMEDATECTL', get_option('timedated') or get_option('timesync
conf.set10('SYSTEMD_SLOW_TESTS_DEFAULT', slow_tests)
############################################################
#####################################################################
pymod = import('python')
python = pymod.find_installation('python3', required : true, modules : ['jinja2'])
python_39 = python.language_version().version_compare('>=3.9')
############################################################
#####################################################################
if conf.get('BPF_FRAMEWORK') == 1
bpf_clang_flags = [
@ -1814,7 +1814,7 @@ endif
want_ukify = get_option('ukify').require(python_39, error_message : 'Python >= 3.9 required').allowed()
conf.set10('ENABLE_UKIFY', want_ukify)
############################################################
#####################################################################
check_version_history_py = find_program('tools/check-version-history.py')
elf2efi_py = find_program('tools/elf2efi.py')
@ -1832,7 +1832,7 @@ update_man_rules_py = find_program('tools/update-man-rules.py')
update_syscall_tables_sh = find_program('tools/update-syscall-tables.sh')
xml_helper_py = find_program('tools/xml_helper.py')
############################################################
#####################################################################
version_tag = get_option('version-tag')
version_h = vcs_tag(
@ -1849,13 +1849,13 @@ if shared_lib_tag == ''
shared_lib_tag = meson.project_version()
endif
############################################################
#####################################################################
if get_option('b_coverage')
userspace_c_args += ['-include', 'src/basic/coverage.h']
endif
############################################################
#####################################################################
config_h = configure_file(
output : 'config.h',
@ -1873,7 +1873,7 @@ userspace = declare_dependency(
man_page_depends = []
############################################################
#####################################################################
simple_tests = []
libsystemd_tests = []
@ -2006,7 +2006,7 @@ install_libudev_static = static_library(
c_args : static_libudev_pic ? [] : ['-fno-PIC'],
pic : static_libudev_pic)
############################################################
#####################################################################
runtest_env = custom_target(
'systemd-runtest.env',
@ -2027,7 +2027,7 @@ if '-O2' in c_args and '-flto=auto' in c_args
test_cflags += cc.first_supported_argument('-Wno-maybe-uninitialized')
endif
############################################################
#####################################################################
executable_template = {
'include_directories' : includes,
@ -2123,7 +2123,7 @@ module_additional_kwargs = {
'dependencies' : userspace,
}
############################################################
#####################################################################
# systemd-analyze requires 'libcore'
subdir('src/core')
@ -2241,7 +2241,7 @@ subdir('mime')
alias_target('devel', libsystemd_pc, libudev_pc, systemd_pc, udev_pc)
############################################################
#####################################################################
foreach test : simple_tests
executables += test_template + { 'sources' : [test] }
@ -2378,7 +2378,7 @@ endforeach
alias_target('fuzzers', fuzzer_exes)
############################################################
#####################################################################
test_dlopen = executables_by_name.get('test-dlopen')
@ -2442,7 +2442,7 @@ foreach dict : modules
endif
endforeach
############################################################
#####################################################################
ukify = custom_target(
'ukify',
@ -2461,12 +2461,12 @@ if want_ukify
libexecdir / 'ukify'))
endif
############################################################
#####################################################################
subdir('rules.d')
subdir('test')
############################################################
#####################################################################
subdir('docs/sysvinit')
subdir('docs/var-log')
@ -2508,7 +2508,7 @@ install_subdir('LICENSES',
install_emptydir(systemdstatedir)
############################################################
#####################################################################
# Ensure that changes to the docs/ directory do not break the
# basic Github pages build. But only run it in developer mode,
@ -2524,7 +2524,7 @@ if get_option('mode') == 'developer' and want_tests != 'false' and jekyll.found(
'--destination', project_build_root / '_site'])
endif
############################################################
#####################################################################
check_help = find_program('tools/check-help.sh')
check_version = find_program('tools/check-version.sh')
@ -2593,7 +2593,7 @@ foreach tuple : fuzz_sanitizers
endif
endforeach
############################################################
#####################################################################
if git.found()
all_files = run_command(
@ -2650,7 +2650,7 @@ if git.found()
'HEAD'])
endif
############################################################
#####################################################################
check_api_docs_sh = find_program('tools/check-api-docs.sh')
run_target(
@ -2670,7 +2670,7 @@ if not meson.is_cross_build()
command : [export_dbus_interfaces_py, '@OUTPUT@', dbus_programs])
endif
############################################################
#####################################################################
alt_time_epoch = run_command('date', '-Is', '-u', '-d', '@@0@'.format(time_epoch),
check : true).stdout().strip()