779a75b5d0ff0000945b585ef4c59f208a85e6b4
[dpdk.git] / drivers / net / octeontx2 / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(C) 2019 Marvell International Ltd.
3 #
4
5 if is_windows
6         build = false
7         reason = 'not supported on Windows'
8         subdir_done()
9 endif
10
11 if not dpdk_conf.get('RTE_ARCH_64')
12         build = false
13         reason = 'only supported on 64-bit'
14         subdir_done()
15 endif
16
17 sources = files('otx2_rx.c',
18                 'otx2_tx.c',
19                 'otx2_tm.c',
20                 'otx2_rss.c',
21                 'otx2_mac.c',
22                 'otx2_ptp.c',
23                 'otx2_flow.c',
24                 'otx2_link.c',
25                 'otx2_vlan.c',
26                 'otx2_stats.c',
27                 'otx2_mcast.c',
28                 'otx2_lookup.c',
29                 'otx2_ethdev.c',
30                 'otx2_flow_ctrl.c',
31                 'otx2_flow_dump.c',
32                 'otx2_flow_parse.c',
33                 'otx2_flow_utils.c',
34                 'otx2_ethdev_irq.c',
35                 'otx2_ethdev_ops.c',
36                 'otx2_ethdev_sec.c',
37                 'otx2_ethdev_debug.c',
38                 'otx2_ethdev_devargs.c'
39                 )
40
41 deps += ['bus_pci', 'cryptodev', 'eventdev', 'security']
42 deps += ['common_octeontx2', 'mempool_octeontx2']
43
44 extra_flags = ['-flax-vector-conversions']
45 foreach flag: extra_flags
46         if cc.has_argument(flag)
47                 cflags += flag
48         endif
49 endforeach
50
51 includes += include_directories('../../common/cpt')
52 includes += include_directories('../../crypto/octeontx2')