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
|
project('icipc', ['c'],
version : '0.1',
license : 'MIT',
meson_version : '>= 0.52.0',
default_options : [
'warning_level=1',
'buildtype=debugoptimized',
]
)
threads_dep = dependency('threads', required: true)
pkgconfig = import('pkgconfig')
cc = meson.get_compiler('c')
common_flags = [
'-fvisibility=hidden',
'-Wsuggest-attribute=format',
'-Wsign-compare',
'-Wpointer-arith',
'-Wpointer-sign',
'-Wformat',
'-Wformat-security',
'-Wimplicit-fallthrough',
'-Wmissing-braces',
'-Wtype-limits',
'-Wvariadic-macros',
'-Wno-missing-field-initializers',
'-Wno-unused-parameter',
'-Wno-pedantic',
'-Wold-style-declaration',
'-Wunused-result',
]
add_project_arguments(cc.get_supported_arguments(common_flags), language: 'c')
subdir('lib')
subdir('src')
subdir('tests')
|