New upstream version 18.11-rc1
[deb_dpdk.git] / drivers / net / octeontx / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Cavium, Inc
3
4 sources = [
5         'octeontx_pkovf.c',
6         'octeontx_pkivf.c',
7         'octeontx_bgx.c'
8 ]
9
10 depends = ['ethdev', 'mempool_octeontx']
11 static_objs = []
12 foreach d: depends
13         static_objs += [get_variable('static_rte_' + d)]
14 endforeach
15
16 c_args = cflags
17 if allow_experimental_apis
18         c_args += '-DALLOW_EXPERIMENTAL_API'
19 endif
20 base_lib = static_library('octeontx_base', sources,
21         c_args: c_args,
22         dependencies: static_objs,
23 )
24
25 base_objs = base_lib.extract_all_objects()