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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user