examples/server_node_efd: add server binary to meson build
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 22 Oct 2019 15:43:08 +0000 (16:43 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 27 Oct 2019 16:25:22 +0000 (17:25 +0100)
When adding to the build, add in two missing includes that prevented build
on freebsd, rather than just duplicating the makefile restriction.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
examples/meson.build
examples/server_node_efd/server/main.c
examples/server_node_efd/server/meson.build [new file with mode: 0644]

index 9d6a048..81d52a7 100644 (file)
@@ -36,6 +36,7 @@ all_examples = [
        'qos_meter', 'qos_sched',
        'rxtx_callbacks',
        'server_node_efd/node',
+       'server_node_efd/server',
        'service_cores',
        'skeleton', 'tep_termination',
        'timer', 'vdpa',
index 455bdc0..21c72ac 100644 (file)
@@ -11,6 +11,8 @@
 #include <inttypes.h>
 #include <sys/queue.h>
 #include <errno.h>
+#include <sys/types.h>
+#include <netinet/in.h>
 #include <netinet/ip.h>
 
 #include <rte_common.h>
diff --git a/examples/server_node_efd/server/meson.build b/examples/server_node_efd/server/meson.build
new file mode 100644 (file)
index 0000000..23e08d1
--- /dev/null
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2019 Intel Corporation
+
+# meson file, for building this example as part of a main DPDK build.
+#
+# To build this example as a standalone application with an already-installed
+# DPDK instance, use 'make'
+
+name = 'efd_server'
+
+deps += 'efd'
+sources += files('args.c', 'init.c', 'main.c')
+includes += include_directories('../shared')