2019-06-25 11:12:58 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2017 Intel Corporation
|
|
|
|
|
2020-06-18 16:55:50 +00:00
|
|
|
sources = files('rte_distributor.c', 'rte_distributor_single.c')
|
2019-06-25 11:12:58 +00:00
|
|
|
if arch_subdir == 'x86'
|
|
|
|
sources += files('rte_distributor_match_sse.c')
|
|
|
|
else
|
|
|
|
sources += files('rte_distributor_match_generic.c')
|
|
|
|
endif
|
|
|
|
headers = files('rte_distributor.h')
|
|
|
|
deps += ['mbuf']
|
2020-06-18 16:55:50 +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
|