From c6dbd6d3ba476da7638e52e3f8742f5594f6f894 Mon Sep 17 00:00:00 2001 From: Alexander Shursha Date: Thu, 28 Nov 2024 12:01:12 +0300 Subject: [PATCH] meson: add checking build-cal Sponsored by: Future Crew, LLC --- meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index fc2a4588d..14ae9b223 100644 --- a/meson.build +++ b/meson.build @@ -2762,6 +2762,7 @@ if opt and not is_disabler(exe) manadocs += ['login-utils/sulogin.8.adoc'] endif +opt = not get_option('build-cal').disabled() exe = executable( 'cal', cal_sources, @@ -2770,10 +2771,13 @@ exe = executable( lib_tcolors], dependencies : [curses_libs], install_dir : usrbin_exec_dir, - install : true) -exes += exe -manadocs += ['misc-utils/cal.1.adoc'] -bashcompletions += ['cal'] + install : opt, + build_by_default : opt) +if opt and not is_disabler(exe) + exes += exe + manadocs += ['misc-utils/cal.1.adoc'] + bashcompletions += ['cal'] +endif opt = not get_option('build-logger').disabled() exe = executable( -- 2.47.3