meson: Add configuration option to build the cam application
Building the cam application isn't always desired, for instance in a production environment that only needs the libcamera library. Add a meson option to disable it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
976e01d59b
commit
c7dd9655e5
2 changed files with 6 additions and 2 deletions
|
@ -11,6 +11,11 @@ option('android_platform',
|
|||
value : 'generic',
|
||||
description : 'Select the Android platform to compile for')
|
||||
|
||||
option('cam',
|
||||
type : 'feature',
|
||||
value : 'auto',
|
||||
description : 'Compile the cam test application')
|
||||
|
||||
option('documentation',
|
||||
type : 'feature',
|
||||
description : 'Generate the project documentation')
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
libevent = dependency('libevent_pthreads', required : false)
|
||||
libevent = dependency('libevent_pthreads', required : get_option('cam'))
|
||||
|
||||
if not libevent.found()
|
||||
warning('libevent_pthreads not found, \'cam\' application will not be compiled')
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue