forked from aengelke/binopt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
42 lines (37 loc) · 1.53 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
project('binopt', ['c', 'cpp'],
default_options: ['buildtype=debugoptimized',
'warning_level=3',
'c_std=gnu99',
'cpp_std=c++17'])
if get_option('warning_level').to_int() >= 3
add_project_arguments(['-Wmissing-field-initializers',
'-Wold-style-definition',
'-Wmissing-declarations',
'-Wmissing-prototypes',
'-Wredundant-decls',
'-Wmissing-noreturn',
'-Wshadow',
'-Wpointer-arith',
'-Wwrite-strings',
'-Winline',
'-Wformat-nonliteral',
'-Wformat-security',
'-Wswitch-default',
'-Winit-self',
'-Wnested-externs',
'-Wstrict-prototypes',
'-Wmissing-include-dirs',
'-Wundef',
'-Wmissing-format-attribute'
], language: 'c')
endif
add_project_arguments(['-Wno-unused-parameter'], language: 'c')
add_project_arguments(['-Wno-unused-parameter'], language: 'cpp')
binopt_inc = include_directories('include')
subdir('include')
subdir('src')
binopt = declare_dependency(include_directories: binopt_inc,
link_with: binopt_lib)
subdir('rewriter')
subdir('benchmarks')
subdir('examples')