drivers/net: build i40e and mlx5 on Windows
[dpdk.git] / drivers / net / netvsc / meson.build
index a15b504..c190124 100644 (file)
@@ -1,9 +1,14 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2018 Microsoft Corporation
 
-version = 2
-sources = files('hn_ethdev.c', 'hn_rxtx.c', 'hn_rndis.c', 'hn_nvs.c')
+if is_windows
+       build = false
+       reason = 'not supported on Windows'
+       subdir_done()
+endif
 
-deps += ['bus_vmbus' ]
+build = dpdk_conf.has('RTE_BUS_VMBUS')
+reason = 'missing dependency, DPDK VMBus driver'
+sources = files('hn_ethdev.c', 'hn_rxtx.c', 'hn_rndis.c', 'hn_nvs.c', 'hn_vf.c')
 
-allow_experimental_apis = true
+deps += ['bus_vmbus' ]