net/vdev_netvsc: add in meson build

Signed-off-by: Luca Boccassi <bluca@debian.org>
This commit is contained in:
Luca Boccassi 2018-09-18 15:58:15 +01:00 committed by Thomas Monjalon
parent 095cae3668
commit 9fc43dbfd6
2 changed files with 20 additions and 0 deletions

View File

@ -27,6 +27,7 @@ drivers = ['af_packet',
'szedata2',
'tap',
'thunderx',
'vdev_netvsc',
'vhost',
'virtio']
std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc

View File

@ -0,0 +1,19 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
sources = files('vdev_netvsc.c')
allow_experimental_apis = true
cflags_options = [
'-Wall',
'-Wextra',
'-D_BSD_SOURCE',
'-D_DEFAULT_SOURCE',
'-D_XOPEN_SOURCE=600'
]
foreach option:cflags_options
if cc.has_argument(option)
cflags += option
endif
endforeach