Skip to content

Commit e2040ae

Browse files
roberthEricson2314
authored andcommitted
meson.build: Make schema checks optional
1 parent 5b15544 commit e2040ae

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

meson.build

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,9 @@ if get_option('unit-tests')
6060
subproject('libflake-tests')
6161
endif
6262
subproject('nix-functional-tests')
63-
subproject('json-schema-checks')
63+
if get_option('json-schema-checks')
64+
subproject('json-schema-checks')
65+
endif
66+
if get_option('kaitai-struct-checks')
67+
subproject('kaitai-struct-checks')
68+
endif

meson.options

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,17 @@ option(
2727
value : false,
2828
description : 'Build benchmarks (requires gbenchmark)',
2929
)
30+
31+
option(
32+
'kaitai-struct-checks',
33+
type : 'boolean',
34+
value : true,
35+
description : 'Check the Kaitai Struct specifications (requires Kaitai Struct)',
36+
)
37+
38+
option(
39+
'json-schema-checks',
40+
type : 'boolean',
41+
value : true,
42+
description : 'Check JSON schema validity of schemas and examples (requires jv)',
43+
)

0 commit comments

Comments
 (0)