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:
parent
0a823785fa
commit
bf68e72276
2 changed files with 5 additions and 4 deletions
|
@ -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'
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
if not get_option('test')
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
subdir('libtest')
|
||||
|
||||
subdir('camera')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue