Debian Codegraph @

third_party/c-list/meson.build

raw
1 project(
2 'c-list',
3 'c',
4 default_options: [
5 'c_std=c99',
6 ],
7 license: 'Apache',
8 meson_version: '>=0.60.0',
9 version: '3.1.0',
10 )
11 major = meson.project_version().split('.')[0]
12 project_description = 'Circular Intrusive Double Linked List Collection'
13
14 mod_pkgconfig = import('pkgconfig')
15
16 # See c-stdaux for details on these. We do not have c-stdaux as dependency, so
17 # we keep a duplicated set here, reduced to the minimum.
18 cflags = meson.get_compiler('c').get_supported_arguments(
19 '-D_GNU_SOURCE',
20
21 '-Wno-gnu-alignof-expression',
22 '-Wno-maybe-uninitialized',
23 '-Wno-unknown-warning-option',
24 '-Wno-unused-parameter',
25
26 '-Wno-error=type-limits',
27 '-Wno-error=missing-field-initializers',
28
29 '-Wdate-time',
30 '-Wdeclaration-after-statement',
31 '-Wlogical-op',
32 '-Wmissing-include-dirs',
33 '-Wmissing-noreturn',
34 '-Wnested-externs',
35 '-Wredundant-decls',
36 '-Wshadow',
37 '-Wstrict-aliasing=3',
38 '-Wsuggest-attribute=noreturn',
39 '-Wundef',
40 '-Wwrite-strings',
41 )
42 add_project_arguments(cflags, language: 'c')
43
44 subdir('src')
45
46 meson.override_dependency('libclist-'+major, libclist_dep, static: true)