examples/multi_process: build with meson
authorAli Alnubani <alialnu@mellanox.com>
Thu, 23 May 2019 17:40:39 +0000 (17:40 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 4 Jun 2019 10:35:06 +0000 (12:35 +0200)
This enables building the example multiprocess applications in
the subdirectory multi_process.

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
Acked-by: Luca Boccassi <bluca@debian.org>
examples/meson.build
examples/multi_process/client_server_mp/mp_client/meson.build [new file with mode: 0644]
examples/multi_process/client_server_mp/mp_server/meson.build [new file with mode: 0644]
examples/multi_process/hotplug_mp/meson.build [new file with mode: 0644]
examples/multi_process/meson.build [deleted file]
examples/multi_process/simple_mp/meson.build [new file with mode: 0644]
examples/multi_process/symmetric_mp/meson.build [new file with mode: 0644]

index 53a786e..c695d52 100644 (file)
@@ -24,7 +24,12 @@ all_examples = [
        'l2fwd-keepalive', 'l3fwd',
        'l3fwd-acl', 'l3fwd-power',
        'l3fwd-vf', 'link_status_interrupt',
-       'load_balancer', 'multi_process',
+       'load_balancer',
+       'multi_process/client_server_mp/mp_client',
+       'multi_process/client_server_mp/mp_server',
+       'multi_process/hotplug_mp',
+       'multi_process/simple_mp',
+       'multi_process/symmetric_mp',
        'netmap_compat', 'packet_ordering',
        'performance-thread', 'ptpclient',
        'qos_meter', 'qos_sched',
diff --git a/examples/multi_process/client_server_mp/mp_client/meson.build b/examples/multi_process/client_server_mp/mp_client/meson.build
new file mode 100644 (file)
index 0000000..a6241b8
--- /dev/null
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# 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'
+
+includes += include_directories('../shared')
+
+sources = files(
+       'client.c'
+)
diff --git a/examples/multi_process/client_server_mp/mp_server/meson.build b/examples/multi_process/client_server_mp/mp_server/meson.build
new file mode 100644 (file)
index 0000000..1b2f786
--- /dev/null
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# 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'
+
+includes += include_directories('../shared')
+
+sources = files(
+       'args.c', 'init.c', 'main.c'
+)
diff --git a/examples/multi_process/hotplug_mp/meson.build b/examples/multi_process/hotplug_mp/meson.build
new file mode 100644 (file)
index 0000000..076f4e3
--- /dev/null
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# 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'
+
+sources = files(
+       'commands.c', 'main.c'
+)
diff --git a/examples/multi_process/meson.build b/examples/multi_process/meson.build
deleted file mode 100644 (file)
index c370d74..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2018 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'
-
-# Example app currently unsupported by meson build
-build = false
diff --git a/examples/multi_process/simple_mp/meson.build b/examples/multi_process/simple_mp/meson.build
new file mode 100644 (file)
index 0000000..b2261e0
--- /dev/null
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# 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'
+
+sources = files(
+       'mp_commands.c', 'main.c'
+)
diff --git a/examples/multi_process/symmetric_mp/meson.build b/examples/multi_process/symmetric_mp/meson.build
new file mode 100644 (file)
index 0000000..458f836
--- /dev/null
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2019 Mellanox Technologies, Ltd
+
+# 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'
+
+sources = files(
+       'main.c'
+)