]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: implement colors-default
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 21 Nov 2022 01:49:40 +0000 (02:49 +0100)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 21 Nov 2022 01:49:40 +0000 (02:49 +0100)
meson.build
meson_options.txt

index 4ef8745c67d3e4856caab7e11d459a7e8562fef0..115a285a2ca0fccc38a129a03db59651304fdb44 100644 (file)
@@ -734,6 +734,7 @@ conf.set('USE_HWCLOCK_CMOS', use_hwclock_cmos ? 1 : false)
 
 conf.set('HAVE_TLS', get_option('use-tls') ? 1 : false)
 conf.set('PG_BELL', get_option('pg-bell') ? 1 : false)
+conf.set('USE_COLORS_BY_DEFAULT', get_option('colors-default') ? 1 : false)
 
 ############################################################
 
index 07abf315bf83579f8c02a3e5a9f760c43bf0e355..339948b91394a0b833bd16fe8cc41d072ce924d7 100644 (file)
@@ -193,6 +193,8 @@ option('use-tls',
 option('pg-bell',
        type : 'boolean', value : true,
        description : 'should pg ring the bell on invalid keys?')
+option('colors-default', type: 'boolean', value: 'true',
+       description: 'Enables colorized output from utils by default')
 
 option('fs-search-path',
        type : 'string',