[PATCH 11/12] Mamda examples build


Ian Bell <IBell@...>
 

From adc34e09ad4b0e67a79ccd6d4d202f0f5f8f5db9 Mon Sep 17 00:00:00 2001

Message-Id: <adc34e09ad4b0e67a79ccd6d4d202f0f5f8f5db9.1351009358.git.ibell@...>

In-Reply-To: <180145dfd9a175bb1b824b63df34a41b7e97d425.1351009358.git.ibell@...>

References: <180145dfd9a175bb1b824b63df34a41b7e97d425.1351009358.git.ibell@...>

From: Ian Bell <ibell@...>

Date: Tue, 23 Oct 2012 17:16:59 +0100

Subject: [PATCH 11/12] Mamda examples build

 

Add an option to configure to allow the building of the mamda api

without building the example apps.

 

Signed-off-by: Ian Bell <ibell@...>

---

mamda/c_cpp/configure.ac    |   15 +++++++++++++++

mamda/c_cpp/src/Makefile.am |    6 +++++-

2 files changed, 20 insertions(+), 1 deletion(-)

 

diff --git a/mamda/c_cpp/configure.ac b/mamda/c_cpp/configure.ac

index 08ca63f..8b135ee 100644

--- a/mamda/c_cpp/configure.ac

+++ b/mamda/c_cpp/configure.ac

@@ -144,6 +144,21 @@ AM_CONDITIONAL(WITH_WOMBAT_COMMON, test x$with_wombat_common = "xtrue")

# MAMA: --with-mama

# Where to find MAMA

##################################################

+##################################################

+# EXAMPLES: --without-examples

+# Whether or not to build the example apps

+##################################################

+AC_ARG_WITH(

+    examples,

+    [AC_HELP_STRING([--without-examples],

+                    [exclude mama examples])],

+    [

+     with_examples=false

+    ],

+    [

+     with_examples=true

+    ])

+AM_CONDITIONAL(WITH_EXAMPLES, test x$with_examples = "xtrue")

 

 ##################################################

diff --git a/mamda/c_cpp/src/Makefile.am b/mamda/c_cpp/src/Makefile.am

index 1f938af..6644627 100644

--- a/mamda/c_cpp/src/Makefile.am

+++ b/mamda/c_cpp/src/Makefile.am

@@ -22,7 +22,7 @@

srcdir = @srcdir@

VPATH  = @srcdir@

-SUBDIRS = cpp examples

+SUBDIRS = cpp

 

 if WITH_UNITTESTS

SUBDIRS += gunittest

@@ -31,3 +31,7 @@ endif

if WITH_TESTTOOLS

SUBDIRS += testtools

endif

+

+if WITH_EXAMPLES

+SUBDIRS += examples

+endif

--

1.7.9.5

 




Please consider the environment before printing this e-mail.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy.

Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

Join Openmama-dev@lists.openmama.org to automatically receive all group messages.