feat: change meson option type from bool to feature

This commit is contained in:
kraftwerk28 2023-10-20 18:44:37 +03:00
parent 7b666b2aad
commit 8544ae6112
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ add_project_arguments(
['-pedantic', ['-pedantic',
'-fstrict-aliasing', '-fstrict-aliasing',
'-Wstrict-aliasing']) + '-Wstrict-aliasing']) +
(get_option('ext-underline') (get_option('ext-underline').enabled()
? ['-DFOOT_EXT_UNDERLINE=1'] ? ['-DFOOT_EXT_UNDERLINE=1']
: ['-DFOOT_EXT_UNDERLINE=0']), : ['-DFOOT_EXT_UNDERLINE=0']),
language: 'c', language: 'c',

View file

@ -28,5 +28,5 @@ option('utmp-backend', type: 'combo', value: 'auto', choices: ['none', 'libutemp
option('utmp-default-helper-path', type: 'string', value: 'auto', option('utmp-default-helper-path', type: 'string', value: 'auto',
description: 'Default path to the utmp helper binary. Default: auto-detect') description: 'Default path to the utmp helper binary. Default: auto-detect')
option('ext-underline', type: 'boolean', value: false, option('ext-underline', type: 'feature', value: 'disabled',
description: 'Enable underline styles & colors from xterm-kitty') description: 'Enable underline styles & colors similar to those in kitty terminal')