meson: test: Simplify top level meson

Utilise the subdir_done() functionality as is used with other optional
components to simplify the top level meson file.

Suggested-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Kieran Bingham 2020-11-24 21:04:37 +00:00
parent 0a823785fa
commit bf68e72276
2 changed files with 5 additions and 4 deletions

View file

@ -121,10 +121,7 @@ subdir('src')
# through configuration values. They are enabled by default.
subdir('Documentation')
if get_option('test')
subdir('test')
endif
subdir('test')
if not meson.is_cross_build()
kernel_version_req = '>= 5.0.0'

View file

@ -1,5 +1,9 @@
# SPDX-License-Identifier: CC0-1.0
if not get_option('test')
subdir_done()
endif
subdir('libtest')
subdir('camera')