bpf: add JIT compilation for x86_64 ISA
[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_validate.c')
9
10 if arch_subdir == 'x86'
11         sources += files('bpf_jit_x86.c')
12 endif
13
14 install_headers = files('bpf_def.h',
15                         'rte_bpf.h')
16
17 deps += ['mbuf', 'net']
18
19 dep = cc.find_library('elf', required: false)
20 if dep.found() == true and cc.has_header('libelf.h', dependencies: dep)
21         sources += files('bpf_load_elf.c')
22         ext_deps += dep
23 endif