forked from usnistgov/ndn-dpdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
39 lines (35 loc) · 857 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
35
36
37
38
39
project('NDN-DPDK', 'c',
default_options: [
'b_pie=true',
'debug=true',
'optimization=3',
'warning_level=2',
'werror=true'
],
meson_version: '>=1.0.0'
)
subdir('csrc')
subdir('mk')
cc = meson.get_compiler('c')
dpdk = dependency('libdpdk')
spdk = dependency('spdk_init')
uring = dependency('liburing')
static_library('ndn-dpdk-c', csrc,
dependencies: [dpdk, spdk, uring],
pic: true
)
run_target('cgoflags',
command: [find_program('mk/cgoflags.sh'), cgoflags_dirs]
)
run_target('cgostruct',
command: [find_program('mk/cgostruct.sh'), cgostruct_dirs]
)
run_target('cgotest',
command: [find_program('mk/cgotest.sh'), cgotest_dirs]
)
run_target('schema',
command: [find_program('mk/schema/build.sh')]
)
run_target('bpf',
command: [find_program('mk/bpf.sh'), (cc.has_header('bpf/bpf_helpers.h') ? 'xdp=1' : 'xdp=0')]
)