f-stack/dpdk/drivers/net/mlx5/meson.build

58 lines
1.1 KiB
Meson
Raw Normal View History

2019-06-25 11:12:58 +00:00
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018 6WIND S.A.
# Copyright 2018 Mellanox Technologies, Ltd
2021-02-05 08:48:47 +00:00
if not (is_linux or is_windows)
2020-06-18 16:55:50 +00:00
build = false
2021-02-05 08:48:47 +00:00
reason = 'only supported on Linux and Windows'
2020-06-18 16:55:50 +00:00
subdir_done()
endif
2021-02-05 08:48:47 +00:00
deps += ['hash', 'common_mlx5']
2022-09-02 04:40:05 +00:00
headers = files('rte_pmd_mlx5.h')
2021-02-05 08:48:47 +00:00
sources = files(
'mlx5.c',
'mlx5_ethdev.c',
'mlx5_flow.c',
'mlx5_flow_meter.c',
'mlx5_flow_dv.c',
'mlx5_flow_verbs.c',
'mlx5_flow_age.c',
'mlx5_mac.c',
'mlx5_mr.c',
'mlx5_rss.c',
'mlx5_rxmode.c',
'mlx5_rxq.c',
'mlx5_rxtx.c',
'mlx5_stats.c',
'mlx5_trigger.c',
'mlx5_txq.c',
'mlx5_txpp.c',
'mlx5_vlan.c',
'mlx5_utils.c',
'mlx5_devx.c',
)
if (dpdk_conf.has('RTE_ARCH_X86_64')
or dpdk_conf.has('RTE_ARCH_ARM64')
or dpdk_conf.has('RTE_ARCH_PPC_64'))
sources += files('mlx5_rxtx_vec.c')
2019-06-25 11:12:58 +00:00
endif
2021-02-05 08:48:47 +00:00
cflags_options = [
'-std=c11',
'-Wno-strict-prototypes',
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
'-D_XOPEN_SOURCE=600'
]
foreach option:cflags_options
if cc.has_argument(option)
cflags += option
2019-06-25 11:12:58 +00:00
endif
endforeach
2021-02-05 08:48:47 +00:00
if get_option('buildtype').contains('debug')
cflags += [ '-pedantic', '-DPEDANTIC' ]
else
cflags += [ '-UPEDANTIC' ]
2019-06-25 11:12:58 +00:00
endif
2021-02-05 08:48:47 +00:00
subdir(exec_env)