-
Notifications
You must be signed in to change notification settings - Fork 42
/
meson.build.base
77 lines (61 loc) · 1.82 KB
/
meson.build.base
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
fs = import('fs')
src = '../../src'
hdep = src / 'hardware_dep'
xtrn = hdep / 'dpdk/data_plane/externs'
srcg = 'srcgen'
project_description = meson.project_name()
project_source_files = [
srcg / 'dataplane.c',
srcg / 'dataplane_deparse.c',
srcg / 'dataplane_key.c',
srcg / 'dataplane_show.c',
srcg / 'dataplane_smem.c',
srcg / 'dataplane_stats.c',
srcg / 'dataplane_table_default_entry.c',
srcg / 'dataplane_update.c',
srcg / 'tables.c',
srcg / 'parser.c',
srcg / 'hdr_fld.c',
srcg / 'hdr_fld_sprintf.c',
srcg / 'actions.c',
srcg / 'controlplane.c',
srcg / 'stats.c',
srcg / 'stats_requirements.c',
srcg / 'common.c',
hdep / 'dpdk/main.c',
hdep / 'dpdk/main_async.c',
hdep / 'shared/ctrl_plane/ctrl_plane_backend.c',
hdep / 'shared/ctrl_plane/fifo.c',
hdep / 'shared/ctrl_plane/handlers.c',
hdep / 'shared/ctrl_plane/messages.c',
hdep / 'shared/ctrl_plane/sock_helpers.c',
hdep / 'shared/ctrl_plane/threadpool.c',
hdep / 'dpdk/data_plane/dpdk_lib.c',
hdep / 'dpdk/data_plane/dpdk_tables.c',
hdep / 'dpdk/data_plane/dpdk_primitives.c',
hdep / 'dpdk/data_plane/dpdk_primitives_impl.c',
hdep / 'shared/data_plane/ternary_naive.c',
srcg / 'dpdkx_gen_extern.h',
srcg / 'dpdkx_gen_extern.c',
hdep / 'shared/util_debug.c',
hdep / 'shared/backend.c',
hdep / 'shared/dataplane_hdr_fld_pkt.c',
srcg / 'stateful_memory.c',
xtrn / 'dpdkx_smem.c',
]
build_args = []
if meson.get_compiler('c').get_id() == 'clang'
build_args += ['-Wno-parentheses-equality']
endif
incdirs = [
srcg,
srcg / 'multi',
src / 'testing/includes',
hdep / 'dpdk/includes',
hdep / 'shared/includes',
hdep / 'shared/ctrl_plane',
]
all_dependencies = [
dependency('libdpdk'),
dependency('threads'),
]