-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
56 lines (47 loc) · 1.87 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#
# Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES, ALL RIGHTS RESERVED.
#
# This software product is a proprietary product of NVIDIA CORPORATION &
# AFFILIATES (the "Company") and all right, title, and interest in and to the
# software product, including all associated intellectual property rights, are
# and shall remain exclusively with the Company.
#
# This software product is governed by the End User License Agreement
# provided with the software product.
#
project('doca-geneve-demo', 'C', 'CPP',
version: '0.0.1',
default_options: ['buildtype=debug']
)
APP_NAME = meson.project_name()
cpp_args = ['-std=c++11']
add_project_arguments('-DDOCA_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-common', required : true)
app_dependencies += dependency('doca-argp', required : true)
app_dependencies += dependency('doca-flow', required : true)
app_dependencies += dependency('doca-dpdk-bridge', required : true)
common_dir_path = '/opt/mellanox/doca/applications/common'
app_inc_dirs = [include_directories(common_dir_path)]
app_srcs = [
'geneve_demo_main.c',
'geneve_demo_flows.c',
'geneve_demo_pkt_rss.c',
'geneve_demo_program_args.c',
'geneve_demo_session_hashtable.c',
'geneve_demo_vnet_conf.c',
'geneve_demo_load_vnet_conf_sessions.c',
# DOCA-SDK-provided utilities:
common_dir_path + '/dpdk_utils.c',
common_dir_path + '/utils.c',
]
executable(APP_NAME, app_srcs,
cpp_args : cpp_args,
dependencies : app_dependencies,
include_directories : app_inc_dirs)