mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 04:40:13 +01:00
2d3877aabd7d docs: avoid duplicate headers ba751b517888 c-stdaux: be more consistent with #ifdef 9796f4a63a4b c-stdaux: move _c_always_inline_ to *-generic 34067b3a5f4f c-stdaux: avoid declspec-fallback for _c_public_ 82b82245cf36 c-stdaux: expose _c_public_ in *-generic 37fa624afcd6 docs: set C_COMPILER_DOCS 7197bc75f829 docs: add ./src to include path 34ed5b2c4b52 test-basic: avoid _c_unused_ 00cc51c99c64 test-basic: fix *_gnuc() fallback to have an argument 6a9262c168f7 test-basic: use strtol() over close() to set errno 807d4a704757 test-basic: guard cleanup-tests by GNUC 13f65ad8c27c test-basic: separate tests by module fdf399ef7f5b test-api: only test for available APIs 1f9cfe8e3b2f c-stdaux: export C_MODULE_* 65bf768151e3 c-stdaux: move GNUC-macros into separate module 6549fa0eb8f3 c-stdaux: extract unix'ish code into separate module d69c3c0fe7ee c-stdaux: split off portable code 132d82a37607 c-stdaux: add C_COMPILER_DOCS documentation 053b2d9f1c11 c-stdaux: avoid ctx-expr in c_assert() e75f32c2e046 c-stdaux: fix typo in c_assert() docs d75a2350ae22 c-stdaux: stub likely/unlikely as fallback eb90a0d0fced c-stdaux: fix documentation of likely/unlikely 57f332c53184 c-stdaux: fix typo in c_closedir() docs f3d6b60400d3 c-stdaux: add _c_always_inline_ 8d017b02cf12 c-stdaux: provide target identification 3d8f78f964ff ci: enable windows builds git-subtree-dir: src/c-stdaux git-subtree-split: 2d3877aabd7d0e813f4a153ac262ee83b3c04793
126 lines
2.9 KiB
Meson
126 lines
2.9 KiB
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
src_inc = include_directories('.')
|
|
|
|
###############################################################################
|
|
|
|
libc_siphash = static_library(
|
|
'c-siphash',
|
|
sources: 'c-siphash/src/c-siphash.c',
|
|
include_directories: include_directories('c-stdaux/src'),
|
|
c_args: '-std=c11',
|
|
)
|
|
|
|
libc_rbtree = static_library(
|
|
'c-rbtree',
|
|
sources: 'c-rbtree/src/c-rbtree.c',
|
|
include_directories: include_directories('c-stdaux/src'),
|
|
c_args: '-std=c11',
|
|
)
|
|
|
|
libn_acd = static_library(
|
|
'n-acd',
|
|
sources: files(
|
|
'n-acd/src/n-acd.c',
|
|
'n-acd/src/n-acd-probe.c',
|
|
'n-acd/src/util/timer.c',
|
|
enable_ebpf ? 'n-acd/src/n-acd-bpf.c' : 'n-acd/src/n-acd-bpf-fallback.c',
|
|
),
|
|
include_directories: include_directories(
|
|
'c-list/src',
|
|
'c-rbtree/src',
|
|
'c-siphash/src',
|
|
'c-stdaux/src',
|
|
),
|
|
c_args: [
|
|
'-std=c11',
|
|
'-D_GNU_SOURCE',
|
|
'-DSO_ATTACH_BPF=50',
|
|
'-Wno-pointer-arith',
|
|
'-Wno-vla',
|
|
],
|
|
)
|
|
|
|
libn_dhcp4 = static_library(
|
|
'n-dhcp4',
|
|
sources: files(
|
|
'n-dhcp4/src/n-dhcp4-c-connection.c',
|
|
'n-dhcp4/src/n-dhcp4-c-lease.c',
|
|
'n-dhcp4/src/n-dhcp4-client.c',
|
|
'n-dhcp4/src/n-dhcp4-c-probe.c',
|
|
'n-dhcp4/src/n-dhcp4-incoming.c',
|
|
'n-dhcp4/src/n-dhcp4-outgoing.c',
|
|
'n-dhcp4/src/n-dhcp4-socket.c',
|
|
'n-dhcp4/src/util/packet.c',
|
|
'n-dhcp4/src/util/socket.c',
|
|
),
|
|
include_directories: include_directories(
|
|
'c-list/src',
|
|
'c-siphash/src',
|
|
'c-stdaux/src',
|
|
),
|
|
c_args: [
|
|
'-std=c11',
|
|
'-D_GNU_SOURCE',
|
|
'-Wno-declaration-after-statement',
|
|
'-Wno-pointer-arith',
|
|
],
|
|
)
|
|
|
|
###############################################################################
|
|
|
|
subdir('libnm-std-aux')
|
|
subdir('libnm-glib-aux')
|
|
subdir('libnm-log-null')
|
|
subdir('libnm-log-core')
|
|
subdir('libnm-systemd-shared')
|
|
subdir('libnm-systemd-core')
|
|
subdir('libnm-udev-aux')
|
|
subdir('libnm-base')
|
|
subdir('libnm-platform')
|
|
subdir('libnm-lldp')
|
|
subdir('libnm-crypto')
|
|
subdir('libnm-core-public')
|
|
subdir('libnm-core-intern')
|
|
subdir('libnm-core-aux-intern')
|
|
subdir('libnm-core-impl')
|
|
subdir('libnm-core-aux-extern')
|
|
subdir('libnm-client-public')
|
|
subdir('libnm-client-impl')
|
|
subdir('libnm-client-aux-extern')
|
|
subdir('libnmc-base')
|
|
subdir('libnmc-setting')
|
|
if enable_nmtui
|
|
subdir('libnmt-newt')
|
|
endif
|
|
subdir('nmcli')
|
|
subdir('nm-dispatcher')
|
|
subdir('nm-priv-helper')
|
|
subdir('nm-daemon-helper')
|
|
subdir('nm-online')
|
|
if enable_nmtui
|
|
subdir('nmtui')
|
|
endif
|
|
subdir('nm-initrd-generator')
|
|
if enable_nm_cloud_setup
|
|
subdir('nm-cloud-setup')
|
|
endif
|
|
subdir('core')
|
|
subdir('contrib')
|
|
|
|
if enable_tests
|
|
subdir('libnm-client-test')
|
|
subdir('libnm-glib-aux/tests')
|
|
subdir('libnm-platform/tests')
|
|
subdir('libnm-core-impl/tests')
|
|
subdir('libnm-client-impl/tests')
|
|
subdir('libnm-client-aux-extern/tests')
|
|
subdir('libnmc-setting/tests')
|
|
subdir('nm-dispatcher/tests')
|
|
subdir('nm-initrd-generator/tests')
|
|
if enable_nm_cloud_setup
|
|
subdir('nm-cloud-setup/tests')
|
|
endif
|
|
subdir('tests/client')
|
|
subdir('contrib/tests')
|
|
endif
|