From 3fabfbd930ac2c55e4e1acda89021e63acfcc263 Mon Sep 17 00:00:00 2001 From: "David C. Manuelda" Date: Fri, 2 Jan 2026 14:32:55 +0100 Subject: [PATCH] Add 'enable_tools' option --- libvmaf/meson_options.txt | 5 +++++ libvmaf/tools/meson.build | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/libvmaf/meson_options.txt b/libvmaf/meson_options.txt index b5011831d..69dc53f8d 100644 --- a/libvmaf/meson_options.txt +++ b/libvmaf/meson_options.txt @@ -8,6 +8,11 @@ option('enable_docs', value: true, description: 'Build libvmaf documentation') +option('enable_tools', + type: 'boolean', + value: true, + description: 'Build libvmaf tools') + option('enable_asm', type: 'boolean', value: true, diff --git a/libvmaf/tools/meson.build b/libvmaf/tools/meson.build index 0016d9c23..a3d2b8059 100644 --- a/libvmaf/tools/meson.build +++ b/libvmaf/tools/meson.build @@ -1,3 +1,7 @@ +if not get_option('enable_tools') + subdir_done() +endif + compat_cflags = [] if cc.has_function('strsep') compat_cflags += '-DHAVE_STRSEP'