From e2040aecacdf81dde9aad59a6bbc66162a04f668 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 6 Nov 2025 01:25:22 +0100 Subject: [PATCH] meson.build: Make schema checks optional --- meson.build | 7 ++++++- meson.options | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f3158ea6d..c072a4821 100644 --- a/meson.build +++ b/meson.build @@ -60,4 +60,9 @@ if get_option('unit-tests') subproject('libflake-tests') endif subproject('nix-functional-tests') -subproject('json-schema-checks') +if get_option('json-schema-checks') + subproject('json-schema-checks') +endif +if get_option('kaitai-struct-checks') + subproject('kaitai-struct-checks') +endif diff --git a/meson.options b/meson.options index d2c9fa40c..2739b0c71 100644 --- a/meson.options +++ b/meson.options @@ -27,3 +27,17 @@ option( value : false, description : 'Build benchmarks (requires gbenchmark)', ) + +option( + 'kaitai-struct-checks', + type : 'boolean', + value : true, + description : 'Check the Kaitai Struct specifications (requires Kaitai Struct)', +) + +option( + 'json-schema-checks', + type : 'boolean', + value : true, + description : 'Check JSON schema validity of schemas and examples (requires jv)', +)