2019-10-30 16:26:42 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(C) 2019 Marvell International Ltd.
|
|
|
|
#
|
|
|
|
|
|
|
|
# meson file, for building this example as part of a main DPDK build.
|
|
|
|
#
|
|
|
|
# To build this example as a standalone application with an already-installed
|
|
|
|
# DPDK instance, use 'make'
|
|
|
|
|
|
|
|
deps += 'eventdev'
|
|
|
|
sources = files(
|
|
|
|
'main.c',
|
|
|
|
'l2fwd_poll.c',
|
|
|
|
'l2fwd_common.c',
|
2019-10-30 16:26:43 +00:00
|
|
|
'l2fwd_event.c',
|
2019-10-30 16:26:44 +00:00
|
|
|
'l2fwd_event_internal_port.c',
|
|
|
|
'l2fwd_event_generic.c'
|
2019-10-30 16:26:42 +00:00
|
|
|
)
|
2019-10-30 16:26:49 +00:00
|
|
|
|
|
|
|
# for clang 32-bit compiles we need libatomic for 64-bit atomic ops
|
|
|
|
if cc.get_id() == 'clang' and dpdk_conf.get('RTE_ARCH_64') == false
|
|
|
|
ext_deps += cc.find_library('atomic')
|
|
|
|
endif
|