f-stack/dpdk/drivers/net/octeontx/base/meson.build

26 lines
564 B
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Cavium, Inc
sources = [
2022-09-06 04:00:10 +00:00
'octeontx_pkovf.c',
'octeontx_pkivf.c',
'octeontx_bgx.c',
2019-06-25 11:12:58 +00:00
]
depends = ['ethdev', 'mempool_octeontx']
static_objs = []
foreach d: depends
2022-09-06 04:00:10 +00:00
if not is_variable('shared_rte_' + d)
subdir_done()
endif
static_objs += get_variable('static_rte_' + d)
2019-06-25 11:12:58 +00:00
endforeach
c_args = cflags
base_lib = static_library('octeontx_base', sources,
2022-09-06 04:00:10 +00:00
c_args: c_args,
dependencies: static_objs,
2019-06-25 11:12:58 +00:00
)
2022-09-06 04:00:10 +00:00
base_objs = base_lib.extract_all_objects(recursive: true)