build: Add project arguments
Add language specific project arguments and ensure that -Werror is enabled, enforcing code to be as clean as possible. Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
66051636c5
commit
a66fe04c19
1 changed files with 13 additions and 0 deletions
13
meson.build
13
meson.build
|
@ -2,6 +2,19 @@ project('libcamera - supporting complex camera pipelines', 'c', 'cpp',
|
||||||
version : '0.1',
|
version : '0.1',
|
||||||
license : 'LGPL 2.1+')
|
license : 'LGPL 2.1+')
|
||||||
|
|
||||||
|
common_arguments = [
|
||||||
|
'-Wall',
|
||||||
|
'-Wextra',
|
||||||
|
'-Werror',
|
||||||
|
'-Wno-unused-parameter',
|
||||||
|
]
|
||||||
|
|
||||||
|
c_arguments = common_arguments
|
||||||
|
cpp_arguments = common_arguments
|
||||||
|
|
||||||
|
add_project_arguments(c_arguments, language: 'c')
|
||||||
|
add_project_arguments(cpp_arguments, language: 'cpp')
|
||||||
|
|
||||||
inc = include_directories('include')
|
inc = include_directories('include')
|
||||||
|
|
||||||
subdir('include')
|
subdir('include')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue