net/mlx5: separate Tx function implementations to new file
[dpdk.git] / drivers / net / mlx5 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2018 6WIND S.A.
3 # Copyright 2018 Mellanox Technologies, Ltd
4
5 if not (is_linux or is_windows)
6         build = false
7         reason = 'only supported on Linux and Windows'
8         subdir_done()
9 endif
10
11 deps += ['hash', 'common_mlx5']
12 sources = files(
13         'mlx5.c',
14         'mlx5_ethdev.c',
15         'mlx5_flow.c',
16         'mlx5_flow_meter.c',
17         'mlx5_flow_dv.c',
18         'mlx5_flow_age.c',
19         'mlx5_mac.c',
20         'mlx5_mr.c',
21         'mlx5_rss.c',
22         'mlx5_rx.c',
23         'mlx5_rxmode.c',
24         'mlx5_rxq.c',
25         'mlx5_rxtx.c',
26         'mlx5_stats.c',
27         'mlx5_trigger.c',
28         'mlx5_tx.c',
29         'mlx5_txq.c',
30         'mlx5_txpp.c',
31         'mlx5_vlan.c',
32         'mlx5_utils.c',
33         'mlx5_devx.c',
34 )
35
36 if is_linux
37         sources += files(
38                 'mlx5_flow_verbs.c',
39         )
40         if (dpdk_conf.has('RTE_ARCH_X86_64')
41                 or dpdk_conf.has('RTE_ARCH_ARM64')
42                 or dpdk_conf.has('RTE_ARCH_PPC_64'))
43                 sources += files('mlx5_rxtx_vec.c')
44         endif
45 endif
46
47 cflags_options = [
48         '-std=c11',
49         '-Wno-strict-prototypes',
50         '-D_BSD_SOURCE',
51         '-D_DEFAULT_SOURCE',
52         '-D_XOPEN_SOURCE=600'
53 ]
54 foreach option:cflags_options
55         if cc.has_argument(option)
56                 cflags += option
57         endif
58 endforeach
59 if get_option('buildtype').contains('debug')
60         cflags += [ '-pedantic', '-DPEDANTIC' ]
61 else
62         cflags += [ '-UPEDANTIC' ]
63 endif
64 subdir(exec_env)