build: replace meson OS detection with variable
[dpdk.git] / drivers / net / pfe / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright 2019 NXP
3
4 if not is_linux
5         build = false
6         reason = 'only supported on Linux'
7 endif
8 deps += ['common_dpaax']
9
10 sources = files('pfe_ethdev.c',
11                 'pfe_hal.c',
12                 'pfe_hif_lib.c',
13                 'pfe_hif.c')
14
15 if cc.has_argument('-Wno-pointer-arith')
16         cflags += '-Wno-pointer-arith'
17 endif
18
19 includes += include_directories('base')