From 8544ae611211706b969ebc4e0a4bf2d7970a36cc Mon Sep 17 00:00:00 2001 From: kraftwerk28 Date: Fri, 20 Oct 2023 18:44:37 +0300 Subject: [PATCH] feat: change meson option type from bool to feature --- meson.build | 2 +- meson_options.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 3f153ed4..ddfe4cb3 100644 --- a/meson.build +++ b/meson.build @@ -77,7 +77,7 @@ add_project_arguments( ['-pedantic', '-fstrict-aliasing', '-Wstrict-aliasing']) + - (get_option('ext-underline') + (get_option('ext-underline').enabled() ? ['-DFOOT_EXT_UNDERLINE=1'] : ['-DFOOT_EXT_UNDERLINE=0']), language: 'c', diff --git a/meson_options.txt b/meson_options.txt index c0fe01c2..45b2f9c2 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -28,5 +28,5 @@ option('utmp-backend', type: 'combo', value: 'auto', choices: ['none', 'libutemp option('utmp-default-helper-path', type: 'string', value: 'auto', description: 'Default path to the utmp helper binary. Default: auto-detect') -option('ext-underline', type: 'boolean', value: false, - description: 'Enable underline styles & colors from xterm-kitty') +option('ext-underline', type: 'feature', value: 'disabled', + description: 'Enable underline styles & colors similar to those in kitty terminal')