xref: /dpdk/drivers/net/ntnic/meson.build (revision de9f35ebf2c40cbcdac4ca64888704619b84f8f6)
1# SPDX-License-Identifier: BSD-3-Clause
2# Copyright(c) 2020-2023 Napatech A/S
3
4if not is_linux or not dpdk_conf.has('RTE_ARCH_X86_64')
5        build = false
6        reason = 'only supported on x86_64 Linux'
7        subdir_done()
8endif
9
10# includes
11includes = [
12        include_directories('.'),
13        include_directories('include'),
14        include_directories('ntlog'),
15        include_directories('ntutil'),
16        include_directories('nthw/core/include'),
17        include_directories('nthw'),
18        include_directories('nthw/supported'),
19        include_directories('nthw/model'),
20        include_directories('nthw/ntnic_meter'),
21        include_directories('nthw/flow_filter'),
22        include_directories('nthw/flow_api'),
23        include_directories('nim/'),
24]
25
26# headers
27headers = files('rte_pmd_ntnic.h')
28
29# all sources
30sources = files(
31        'adapter/nt4ga_adapter.c',
32        'adapter/nt4ga_stat/nt4ga_stat.c',
33        'dbsconfig/ntnic_dbsconfig.c',
34        'link_mgmt/link_100g/nt4ga_link_100g.c',
35        'link_mgmt/nt4ga_link.c',
36        'nim/i2c_nim.c',
37        'ntnic_filter/ntnic_filter.c',
38        'ntnic_xstats/ntnic_xstats.c',
39        'nthw/dbs/nthw_dbs.c',
40        'nthw/supported/nthw_fpga_9563_055_049_0000.c',
41        'nthw/supported/nthw_fpga_instances.c',
42        'nthw/supported/nthw_fpga_mod_str_map.c',
43        'nthw/core/nt200a0x/clock_profiles/nthw_fpga_clk9563.c',
44        'nthw/core/nt200a0x/nthw_fpga_nt200a0x.c',
45        'nthw/core/nt200a0x/reset/nthw_fpga_rst9563.c',
46        'nthw/core/nt200a0x/reset/nthw_fpga_rst_nt200a0x.c',
47        'nthw/core/nthw_fpga.c',
48        'nthw/core/nthw_gmf.c',
49        'nthw/core/nthw_tsm.c',
50        'nthw/core/nthw_gpio_phy.c',
51        'nthw/core/nthw_hif.c',
52        'nthw/core/nthw_i2cm.c',
53        'nthw/core/nthw_iic.c',
54        'nthw/core/nthw_mac_pcs.c',
55        'nthw/core/nthw_pcie3.c',
56        'nthw/core/nthw_rpf.c',
57        'nthw/core/nthw_rmc.c',
58        'nthw/core/nthw_sdc.c',
59        'nthw/core/nthw_si5340.c',
60        'nthw/stat/nthw_stat.c',
61        'nthw/flow_api/flow_api.c',
62        'nthw/flow_api/flow_group.c',
63        'nthw/flow_api/flow_id_table.c',
64        'nthw/flow_api/hw_mod/hw_mod_backend.c',
65        'nthw/flow_api/profile_inline/flm_age_queue.c',
66        'nthw/flow_api/profile_inline/flm_lrn_queue.c',
67        'nthw/flow_api/profile_inline/flm_evt_queue.c',
68        'nthw/flow_api/profile_inline/flow_api_profile_inline.c',
69        'nthw/flow_api/profile_inline/flow_api_hw_db_inline.c',
70        'nthw/flow_api/flow_backend/flow_backend.c',
71        'nthw/flow_api/flow_filter.c',
72        'nthw/flow_api/flow_hasher.c',
73        'nthw/flow_api/flow_kcc.c',
74        'nthw/flow_api/flow_km.c',
75        'nthw/flow_api/hw_mod/hw_mod_backend.c',
76        'nthw/flow_api/hw_mod/hw_mod_cat.c',
77        'nthw/flow_api/hw_mod/hw_mod_flm.c',
78        'nthw/flow_api/hw_mod/hw_mod_hsh.c',
79        'nthw/flow_api/hw_mod/hw_mod_km.c',
80        'nthw/flow_api/hw_mod/hw_mod_pdb.c',
81        'nthw/flow_api/hw_mod/hw_mod_qsl.c',
82        'nthw/flow_api/hw_mod/hw_mod_slc_lr.c',
83        'nthw/flow_api/hw_mod/hw_mod_tpe.c',
84        'nthw/flow_filter/flow_nthw_cat.c',
85        'nthw/flow_filter/flow_nthw_csu.c',
86        'nthw/flow_filter/flow_nthw_flm.c',
87        'nthw/flow_filter/flow_nthw_hfu.c',
88        'nthw/flow_filter/flow_nthw_hsh.c',
89        'nthw/flow_filter/flow_nthw_ifr.c',
90        'nthw/flow_filter/flow_nthw_info.c',
91        'nthw/flow_filter/flow_nthw_km.c',
92        'nthw/flow_filter/flow_nthw_pdb.c',
93        'nthw/flow_filter/flow_nthw_qsl.c',
94        'nthw/flow_filter/flow_nthw_rpp_lr.c',
95        'nthw/flow_filter/flow_nthw_slc_lr.c',
96        'nthw/flow_filter/flow_nthw_tx_cpy.c',
97        'nthw/flow_filter/flow_nthw_tx_ins.c',
98        'nthw/flow_filter/flow_nthw_tx_rpl.c',
99        'nthw/ntnic_meter/ntnic_meter.c',
100        'nthw/model/nthw_fpga_model.c',
101        'nthw/nthw_platform.c',
102        'nthw/nthw_rac.c',
103        'ntlog/ntlog.c',
104        'ntnic_filter/ntnic_filter.c',
105        'ntutil/nt_util.c',
106        'ntnic_mod_reg.c',
107        'ntnic_vfio.c',
108        'ntnic_ethdev.c',
109)
110