1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
4 # override default name to drop the hyphen
6 cflags += '-Wno-deprecated-declarations'
31 deps += ['ethdev', 'gro', 'gso', 'cmdline', 'metrics', 'meter', 'bus_pci']
32 if dpdk_conf.has('RTE_LIB_BITRATESTATS')
33 deps += 'bitratestats'
35 if dpdk_conf.has('RTE_LIB_PDUMP')
38 if dpdk_conf.has('RTE_LIB_BITRATESTATS')
39 deps += 'bitratestats'
41 if dpdk_conf.has('RTE_LIB_LATENCYSTATS')
42 deps += 'latencystats'
44 if dpdk_conf.has('RTE_CRYPTO_SCHEDULER')
45 deps += 'crypto_scheduler'
47 if dpdk_conf.has('RTE_NET_BOND')
50 if dpdk_conf.has('RTE_NET_BNXT')
53 if dpdk_conf.has('RTE_NET_I40E')
56 if dpdk_conf.has('RTE_NET_IXGBE')
59 if dpdk_conf.has('RTE_NET_DPAA')
60 deps += ['bus_dpaa', 'mempool_dpaa', 'net_dpaa']
62 if dpdk_conf.has('RTE_LIB_BPF')
63 sources += files('bpf_cmd.c')
66 jansson_dep = dependency('jansson', required: false, method: 'pkg-config')
67 if jansson_dep.found()
68 dpdk_conf.set('RTE_HAS_JANSSON', 1)
69 ext_deps += jansson_dep