bpf: remove use of weak functions
[dpdk.git] / lib / librte_bpf / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
3
4 allow_experimental_apis = true
5 sources = files('bpf.c',
6                 'bpf_exec.c',
7                 'bpf_load.c',
8                 'bpf_pkt.c',
9                 'bpf_validate.c')
10
11 if arch_subdir == 'x86' and dpdk_conf.get('RTE_ARCH_64')
12         sources += files('bpf_jit_x86.c')
13 endif
14
15 install_headers = files('bpf_def.h',
16                         'rte_bpf.h',
17                         'rte_bpf_ethdev.h')
18
19 deps += ['mbuf', 'net', 'ethdev']
20
21 dep = dependency('libelf', required: false)
22 if dep.found()
23         dpdk_conf.set('RTE_LIBRTE_BPF_ELF', 1)
24         sources += files('bpf_load_elf.c')
25         ext_deps += dep
26 endif