-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
25 lines (20 loc) · 988 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
project('ric-script', ['c'], version: '1.0.0',
default_options: ['warning_level=3', 'werror=false'])
subdir('src')
# Source code style guide
cpplint_program = find_program('cpplint', required : false)
if cpplint_program.found()
# - https://github.com/cpplint/cpplint
cpplint_config = ['--verbose=0',
'--linelength=130',
'--exclude=' + join_paths(meson.current_source_dir(), 'src', 'y.tab.*'),
'--exclude=' + join_paths(meson.current_source_dir(), 'src', 'lex.yy.c'),
'--exclude=' + join_paths(meson.current_source_dir(), 'src', 'external'),
'--filter=-build/include_subdir,-build/header_guard,-legal/copyright,'+
'-build/include_what_you_use,-readability/casting,-build/include_subdir,'+
'-build/include_order,-readability/multiline_string',
'--verbose=5',
'--recursive',
join_paths(meson.current_source_dir(), 'src')]
cpplint_target = run_target('cpplint', command : [cpplint_program, cpplint_config])
endif