ref: bebe5ec8defc589fcc6ecb2bcc17de5e2c384c7b
parent: 1a00be48bda44708e02f8dadb4b9cfacd9e2f78c
author: Marvin Scholz <epirat07@gmail.com>
date: Sat Sep 29 08:41:11 EDT 2018
Build: Add option to disable building tests
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -14,3 +14,8 @@
type: 'boolean',
value: true,
description: 'Build dav1d cli tools')
+
+option('build_tests',
+ type: 'boolean',
+ value: true,
+ description: 'Build dav1d tests')
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,3 +1,12 @@
+#
+# Build definition for the dav1d tests
+#
+
+# Leave subdir if tests are disabled
+if not get_option('build_tests')
+ subdir_done()
+endif
+
if is_asm_enabled
checkasm_sources = files('checkasm/checkasm.c')