-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
executable file
·34 lines (28 loc) · 1.03 KB
/
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
project('L2FWD', 'C', 'CPP',
license: 'BSD',
# default_options: ['buildtype=debug'],
default_options: ['buildtype=release']
)
APP_NAME = 'l2fwd'
cpp_args = [
'-std=c++11'
]
# Comment this line to restore warnings of experimental DOCA features
# add_project_arguments('-D DOCA_ALLOW_EXPERIMENTAL_API', language: 'c')
dependency_libdpdk = dependency('libdpdk', required : false)
if not dependency_libdpdk.found()
error('Please set PKG_CONFIG_PATH to DPDK packages path, for further instructions please refer to the DOCA Reference Applications guide')
endif
app_dependencies = [dependency_libdpdk]
app_dependencies += dependency('json-c', required : true)
app_dependencies += dependency('threads', required : true)
# app_dependencies += dependency('doca-flow', required : true)
# app_dependencies += dependency('doca-utils', required : true)
vanilla_app_srcs = [
APP_NAME + '.c',
]
# executable('doca_' + APP_NAME, vanilla_app_srcs,
executable(APP_NAME, vanilla_app_srcs,
cpp_args : cpp_args,
dependencies : app_dependencies,
install: false)