drivers: change indentation in build files
[dpdk.git] / drivers / common / sfc_efx / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 #
3 # Copyright(c) 2019-2021 Xilinx, Inc.
4 #
5 # This software was jointly developed between OKTET Labs (under contract
6 # for Solarflare) and Solarflare Communications, Inc.
7
8 if is_windows
9     build = false
10     reason = 'not supported on Windows'
11 endif
12
13 if (arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64')) and (arch_subdir != 'arm' or not host_machine.cpu_family().startswith('aarch64'))
14     build = false
15     reason = 'only supported on x86_64 and aarch64'
16 endif
17
18 extra_flags = []
19
20 # Enable more warnings
21 extra_flags += [
22         '-Wdisabled-optimization'
23 ]
24
25 # Compiler and version dependent flags
26 extra_flags += [
27         '-Waggregate-return',
28         '-Wbad-function-cast'
29 ]
30
31 foreach flag: extra_flags
32     if cc.has_argument(flag)
33         cflags += flag
34     endif
35 endforeach
36
37 subdir('base')
38 objs = [base_objs]
39
40 deps += ['bus_pci']
41 sources = files(
42         'sfc_efx.c',
43         'sfc_efx_mcdi.c',
44 )
45
46 includes += include_directories('base')