-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
60 lines (57 loc) · 1.18 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
project('hwctrl', 'cpp',
version: '0.1.0',
meson_version: '>=0.53.2',
default_options: [
'cpp_std=c++2a',
'warning_level=3'
]
)
cpp_compiler = meson.get_compiler('cpp')
add_project_arguments(cpp_compiler.get_supported_arguments([
'-Wconversion',
'-Wsign-conversion',
'-Wdiv-by-zero',
'-Wshorten-64-to-32',
'-Wfloat-equal',
'-Wcast-align',
'-Wuseless-cast',
'-Wshadow',
'-Wmissing-field-initializers',
'-Wmissing-noreturn',
'-Wmissing-declarations',
'-Wmissing-variable-declarations',
'-Wmissing-prototypes',
'-Wstrict-prototypes',
'-Woverloaded-virtual',
'-Winline',
'-Wvla',
'-Wpointer-arith',
'-Wempty-body',
'-Wpragmas',
'-Wformat-security',
'-Wformat=2',
'-Wformat-nonliteral',
'-Wwrite-strings',
'-Wnested-externs',
'-Wendif-labels',
'-Wunreachable-code',
'-Wunreachable-code-break',
'-Waddress',
'-Wnull-dereference',
'-Wattributes',
'-Wextended-offsetof',
'-Wlanguage-extension-token',
'-Wswitch-enum',
'-Wunused-macros',
'-Wunused-parameter',
'-Wredundant-decls',
'-Wheader-guard',
'-Wmisleading-indentation',
'-Wlogical-op',
'-Wduplicated-cond',
'-Wduplicated-branches',
'-Wlifetime',
'-Weffc++'
]), language: 'cpp')
subdir('lib')
subdir('exe')