mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-27 10:40:43 +02:00
Imported c-list code with command: git subtree add --prefix shared/c-list/ git@github.com:c-util/c-list.git master --squash To update the library use: git subtree pull --prefix shared/c-list/ git@github.com:c-util/c-list.git master --squash
34 lines
1,007 B
Meson
34 lines
1,007 B
Meson
#
|
|
# target: libclist.so
|
|
# (No .so is built so far, since we are header-only. This might change in the
|
|
# future, if we add more complex list helpers.)
|
|
#
|
|
|
|
libclist_dep = declare_dependency(
|
|
include_directories: include_directories('.'),
|
|
version: meson.project_version(),
|
|
)
|
|
|
|
if not meson.is_subproject()
|
|
install_headers('c-list.h')
|
|
|
|
mod_pkgconfig.generate(
|
|
version: meson.project_version(),
|
|
name: 'libclist',
|
|
filebase: 'libclist',
|
|
description: 'Circular Intrusive Double Linked List Collection in ISO-C11',
|
|
)
|
|
endif
|
|
|
|
#
|
|
# target: test-*
|
|
#
|
|
|
|
test_api = executable('test-api', ['test-api.c'], dependencies: libclist_dep)
|
|
test('API Symbol Visibility', test_api)
|
|
|
|
test_basic = executable('test-basic', ['test-basic.c'], dependencies: libclist_dep)
|
|
test('Basic API Behavior', test_basic)
|
|
|
|
test_embed = executable('test-embed', ['test-embed.c'], dependencies: libclist_dep)
|
|
test('Embedded List Nodes', test_embed)
|