-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmeson.build
34 lines (27 loc) · 972 Bytes
/
meson.build
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
#
# 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(
description: project_description,
filebase: 'libclist-'+major,
name: 'libclist',
version: meson.project_version(),
)
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)