3549afafa12906e81a304729f4a54a50f4986a95
[dpdk.git] / drivers / raw / ifpga / base / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2018 Intel Corporation
3
4 sources = [
5         'ifpga_api.c',
6         'ifpga_enumerate.c',
7         'ifpga_feature_dev.c',
8         'ifpga_fme.c',
9         'ifpga_fme_iperf.c',
10         'ifpga_fme_dperf.c',
11         'ifpga_fme_error.c',
12         'ifpga_port.c',
13         'ifpga_port_error.c',
14         'ifpga_fme_pr.c',
15         'ifpga_fme_rsu.c',
16         'ifpga_sec_mgr.c',
17         'opae_hw_api.c',
18         'opae_ifpga_hw_api.c',
19         'opae_debug.c',
20         'opae_spi.c',
21         'opae_spi_transaction.c',
22         'opae_intel_max10.c',
23         'opae_i2c.c',
24         'opae_at24_eeprom.c',
25         'opae_eth_group.c',
26 ]
27
28 rtdep = dependency('librt', required: false)
29 if not rtdep.found()
30         rtdep = cc.find_library('librt', required: false)
31 endif
32 if not rtdep.found()
33         build = false
34         reason = 'missing dependency, "librt"'
35         subdir_done()
36 endif
37
38 ext_deps += rtdep
39
40 base_lib = static_library('ifpga_rawdev_base', sources,
41         dependencies: static_rte_eal,
42         c_args: cflags)
43 base_objs = base_lib.extract_all_objects()