net/vdev_netvsc: add in meson build
authorLuca Boccassi <bluca@debian.org>
Tue, 18 Sep 2018 14:58:15 +0000 (15:58 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 18 Sep 2018 20:49:39 +0000 (22:49 +0200)
Signed-off-by: Luca Boccassi <bluca@debian.org>
drivers/net/meson.build
drivers/net/vdev_netvsc/meson.build [new file with mode: 0644]

index 499949c..bd60fdd 100644 (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
diff --git a/drivers/net/vdev_netvsc/meson.build b/drivers/net/vdev_netvsc/meson.build
new file mode 100644 (file)
index 0000000..cc956e7
--- /dev/null
@@ -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