meson: Fix indentation

This commit is contained in:
Kenny Levinsen 2021-03-15 20:26:06 +01:00
parent a9b2079319
commit c53c94985e

View file

@ -48,7 +48,7 @@ add_project_arguments(
) )
if ['debugoptimized', 'release', 'minsize'].contains(get_option('buildtype')) if ['debugoptimized', 'release', 'minsize'].contains(get_option('buildtype'))
add_project_arguments('-D_FORTIFY_SOURCE=2', language: 'c') add_project_arguments('-D_FORTIFY_SOURCE=2', language: 'c')
endif endif
# Hacks # Hacks
@ -187,22 +187,22 @@ if get_option('examples').enabled()
endif endif
tests = { tests = {
'linked_list': ['common/linked_list.c'], 'linked_list': ['common/linked_list.c'],
'connection': ['common/connection.c'], 'connection': ['common/connection.c'],
'poller': ['common/linked_list.c', 'seatd/poller.c'], 'poller': ['common/linked_list.c', 'seatd/poller.c'],
} }
foreach name, value : tests foreach name, value : tests
test(name, executable( test(name, executable(
'@0@_test'.format(name), '@0@_test'.format(name),
['tests/@0@.c'.format(name), value], ['tests/@0@.c'.format(name), value],
include_directories: [include_directories('.', 'include')])) include_directories: [include_directories('.', 'include')]))
endforeach endforeach
if get_option('server').enabled() if get_option('server').enabled()
scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7', native: true) scdoc = dependency('scdoc', required: get_option('man-pages'), version: '>= 1.9.7', native: true)
else else
scdoc = disabler() scdoc = disabler()
endif endif
if scdoc.found() if scdoc.found()
@ -232,8 +232,8 @@ if scdoc.found()
endif endif
summary({ summary({
'seatd': get_option('seatd').enabled(), 'seatd': get_option('seatd').enabled(),
'builtin': get_option('builtin').enabled(), 'builtin': get_option('builtin').enabled(),
'systemd': logind_provider == 'systemd', 'systemd': logind_provider == 'systemd',
'elogind': logind_provider == 'elogind', 'elogind': logind_provider == 'elogind',
}, bool_yn: true) }, bool_yn: true)