b8fe4b301336697aad77abfaf80473362599ff2b
[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         if not is_variable('shared_rte_' + d)
14                 subdir_done()
15         endif
16         static_objs += get_variable('static_rte_' + d)
17 endforeach
18
19 c_args = cflags
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()