From: Ali Alnubani <alialnu@mellanox.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Cc: "bruce.richardson@intel.com" <bruce.richardson@intel.com>,
"bluca@debian.org" <bluca@debian.org>
Subject: [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications
Date: Thu, 23 May 2019 17:40:39 +0000 [thread overview]
Message-ID: <20190523174018.2873-2-alialnu@mellanox.com> (raw)
In-Reply-To: <20190523174018.2873-1-alialnu@mellanox.com>
This enables building the example multiprocess applications in
the subdirectory multi_process.
Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
---
Changes in v2:
- Removed unnecessary name assignment.
- Reordered all_examples list.
examples/meson.build | 7 ++++++-
.../client_server_mp/mp_client/meson.build | 13 +++++++++++++
.../client_server_mp/mp_server/meson.build | 13 +++++++++++++
examples/multi_process/{ => hotplug_mp}/meson.build | 7 ++++---
examples/multi_process/simple_mp/meson.build | 11 +++++++++++
examples/multi_process/symmetric_mp/meson.build | 11 +++++++++++
6 files changed, 58 insertions(+), 4 deletions(-)
create mode 100644 examples/multi_process/client_server_mp/mp_client/meson.build
create mode 100644 examples/multi_process/client_server_mp/mp_server/meson.build
rename examples/multi_process/{ => hotplug_mp}/meson.build (68%)
create mode 100644 examples/multi_process/simple_mp/meson.build
create mode 100644 examples/multi_process/symmetric_mp/meson.build
diff --git a/examples/meson.build b/examples/meson.build
index 53a786eb4..c695d52c9 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -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
index 000000000..a6241b83a
--- /dev/null
+++ b/examples/multi_process/client_server_mp/mp_client/meson.build
@@ -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
index 000000000..1b2f78638
--- /dev/null
+++ b/examples/multi_process/client_server_mp/mp_server/meson.build
@@ -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/meson.build b/examples/multi_process/hotplug_mp/meson.build
similarity index 68%
rename from examples/multi_process/meson.build
rename to examples/multi_process/hotplug_mp/meson.build
index c370d7476..076f4e3dc 100644
--- a/examples/multi_process/meson.build
+++ b/examples/multi_process/hotplug_mp/meson.build
@@ -1,10 +1,11 @@
# SPDX-License-Identifier: BSD-3-Clause
-# Copyright(c) 2018 Intel Corporation
+# 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'
-# Example app currently unsupported by meson build
-build = false
+sources = files(
+ 'commands.c', 'main.c'
+)
diff --git a/examples/multi_process/simple_mp/meson.build b/examples/multi_process/simple_mp/meson.build
new file mode 100644
index 000000000..b2261e00e
--- /dev/null
+++ b/examples/multi_process/simple_mp/meson.build
@@ -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
index 000000000..458f83642
--- /dev/null
+++ b/examples/multi_process/symmetric_mp/meson.build
@@ -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'
+)
--
2.19.2
next prev parent reply other threads:[~2019-05-23 17:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-23 14:54 [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Ali Alnubani
2019-05-23 14:54 ` [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications Ali Alnubani
2019-05-23 15:32 ` Bruce Richardson
2019-05-23 17:54 ` Ali Alnubani
2019-05-23 17:40 ` [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Ali Alnubani
2019-05-23 17:40 ` Ali Alnubani [this message]
2019-05-23 18:42 ` [dpdk-dev] [PATCH 2/2] examples: enable building multiprocess applications Luca Boccassi
2019-06-04 10:36 ` Thomas Monjalon
2019-05-23 18:42 ` [dpdk-dev] [PATCH 1/2] examples: strip directory and use suffix as name Luca Boccassi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190523174018.2873-2-alialnu@mellanox.com \
--to=alialnu@mellanox.com \
--cc=bluca@debian.org \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).