From: Ophir Munk Date: Mon, 28 Dec 2020 09:54:07 +0000 (+0200) Subject: net/mlx5: remove Linux files from Windows compilation X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ed7f6255c9cea12c5f31a274a63e5596738b1b55;p=dpdk.git net/mlx5: remove Linux files from Windows compilation This commit removes Linux files flow_verbs.c and mlx5_rxtx_vec.c from Windows compilation. Signed-off-by: Ophir Munk Acked-by: Matan Azrad --- diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build index e7495a764a..f2fafbdd05 100644 --- a/drivers/net/mlx5/meson.build +++ b/drivers/net/mlx5/meson.build @@ -15,7 +15,6 @@ sources = files( 'mlx5_flow.c', 'mlx5_flow_meter.c', 'mlx5_flow_dv.c', - 'mlx5_flow_verbs.c', 'mlx5_flow_age.c', 'mlx5_mac.c', 'mlx5_mr.c', @@ -31,11 +30,18 @@ sources = files( 'mlx5_utils.c', 'mlx5_devx.c', ) -if (dpdk_conf.has('RTE_ARCH_X86_64') - or dpdk_conf.has('RTE_ARCH_ARM64') - or dpdk_conf.has('RTE_ARCH_PPC_64')) - sources += files('mlx5_rxtx_vec.c') + +if is_linux + sources += files( + 'mlx5_flow_verbs.c', + ) + if (dpdk_conf.has('RTE_ARCH_X86_64') + or dpdk_conf.has('RTE_ARCH_ARM64') + or dpdk_conf.has('RTE_ARCH_PPC_64')) + sources += files('mlx5_rxtx_vec.c') + endif endif + cflags_options = [ '-std=c11', '-Wno-strict-prototypes',