NetworkManager/meson.build
Thomas Haller 106825f7c5 Squashed 'src/c-list/' changes from a0970f12f1f4..b86ba656ac22
b86ba656ac22 c-list: add c_list_split()
76900e4e3625 build: align with new c-util style

git-subtree-dir: src/c-list
git-subtree-split: b86ba656ac22b00fe785b2f058123e807f97c109
2022-05-06 10:02:08 +02:00

46 lines
1.3 KiB
Meson

project(
'c-list',
'c',
default_options: [
'c_std=c99',
],
license: 'Apache',
meson_version: '>=0.60.0',
version: '3.0.0',
)
major = meson.project_version().split('.')[0]
project_description = 'Circular Intrusive Double Linked List Collection'
mod_pkgconfig = import('pkgconfig')
# See c-stdaux for details on these. We do not have c-stdaux as dependency, so
# we keep a duplicated set here, reduced to the minimum.
cflags = meson.get_compiler('c').get_supported_arguments(
'-D_GNU_SOURCE',
'-Wno-gnu-alignof-expression',
'-Wno-maybe-uninitialized',
'-Wno-unknown-warning-option',
'-Wno-unused-parameter',
'-Wno-error=type-limits',
'-Wno-error=missing-field-initializers',
'-Wdate-time',
'-Wdeclaration-after-statement',
'-Wlogical-op',
'-Wmissing-include-dirs',
'-Wmissing-noreturn',
'-Wnested-externs',
'-Wredundant-decls',
'-Wshadow',
'-Wstrict-aliasing=3',
'-Wsuggest-attribute=noreturn',
'-Wundef',
'-Wwrite-strings',
)
add_project_arguments(cflags, language: 'c')
subdir('src')
meson.override_dependency('libclist-'+major, libclist_dep, static: true)