xref: /dpdk/drivers/net/octeontx/base/meson.build (revision 1539acc20a63ec36d1045cdc2e1ae0e6fd0499a2)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2017 Cavium, Inc
3
4sources = [
5        'octeontx_pkovf.c',
6        'octeontx_pkivf.c',
7        'octeontx_bgx.c',
8]
9
10depends = ['ethdev', 'mempool_octeontx']
11static_objs = []
12foreach d: depends
13    if not is_variable('shared_rte_' + d)
14        subdir_done()
15    endif
16    static_objs += get_variable('static_rte_' + d)
17endforeach
18
19c_args = cflags
20base_lib = static_library('octeontx_base', sources,
21    c_args: c_args,
22    dependencies: static_objs,
23)
24
25base_objs = base_lib.extract_all_objects(recursive: true)
26