meson.build status: print actual build options in message

We were printing the option intent (true by default for all), but
some are disabled when a component is not found and this was not
reflected.
This commit is contained in:
Dominique Martinet 2018-02-10 10:04:27 +01:00
parent 34489dca16
commit 19d7edb430
2 changed files with 6 additions and 6 deletions

View File

@ -33,11 +33,11 @@ else
backend_files += files('session/direct.c') backend_files += files('session/direct.c')
endif endif
if systemd.found() and get_option('enable_systemd') if conf_data.get('WLR_HAS_SYSTEMD', false)
backend_files += files('session/logind.c') backend_files += files('session/logind.c')
endif endif
if elogind.found() and get_option('enable_elogind') if conf_data.get('WLR_HAS_ELOGIND', false)
backend_files += files('session/logind.c') backend_files += files('session/logind.c')
endif endif

View File

@ -159,10 +159,10 @@ summary = [
'----------------', '----------------',
'wlroots @0@'.format(meson.project_version()), 'wlroots @0@'.format(meson.project_version()),
'', '',
' libcap: @0@'.format(get_option('enable_libcap')), ' libcap: @0@'.format(conf_data.get('WLR_HAS_LIBCAP', false)),
' systemd: @0@'.format(get_option('enable_systemd')), ' systemd: @0@'.format(conf_data.get('WLR_HAS_SYSTEMD', false)),
' elogind: @0@'.format(get_option('enable_elogind')), ' elogind: @0@'.format(conf_data.get('WLR_HAS_ELOGIND', false)),
' xwayland: @0@'.format(get_option('enable_xwayland')), ' xwayland: @0@'.format(conf_data.get('WLR_HAS_XWAYLAND', false)),
'----------------', '----------------',
'' ''
] ]