linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Vinicius Costa Gomes <vcgomes@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Vinicius Costa Gomes <vcgomes@gmail.com>
Subject: [PATCH BlueZ v1 01/15] build: Add configure-time checks for soletta
Date: Tue, 21 Jul 2015 20:16:34 -0300	[thread overview]
Message-ID: <1437520608-22444-2-git-send-email-vcgomes@gmail.com> (raw)
In-Reply-To: <1437520608-22444-1-git-send-email-vcgomes@gmail.com>

The idea will be to re-use the work done in peripheral/ so we can easily
export node types for common Bluetooth profiles (the focus right now is
GATT profiles).

[1] https://github.com/solettaproject/soletta
---
 configure.ac | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/configure.ac b/configure.ac
index 4f81517..9592ffa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -283,4 +283,42 @@ fi
 AC_DEFINE_UNQUOTED(ANDROID_STORAGEDIR, "${storagedir}/android",
 			[Directory for the Android daemon storage files])
 
+AC_ARG_ENABLE(soletta, AC_HELP_STRING([--enable-soletta],
+			[enable building BlueZ soletta nodes]),
+					[enable_soletta=${enableval}])
+AM_CONDITIONAL(SOLETTA, test "${enable_soletta}" = "yes")
+
+if (test "${enable_soletta}" = "yes"); then
+	PKG_CHECK_MODULES(SOLETTA, soletta, dummy=yes,
+					AC_MSG_ERROR(soletta is required))
+	AC_SUBST(SOLETTA_CFLAGS)
+	AC_SUBST(SOLETTA_LIBS)
+	solettaprefix="`$PKG_CONFIG --variable=prefix soletta`"
+	AC_SUBST(SOLETTA_PREFIX, [${solettaprefix}])
+fi
+
+AC_ARG_WITH([solettamodulesdir], AC_HELP_STRING([--with-solettamodulesdir=DIR],
+			[path to soletta modules directory]), [path_solettamodulesdir=${withval}])
+if (test "${enable_soletta}" != "no" && test -z "${path_solettamodulesdir}"); then
+	AC_MSG_CHECKING([soletta modules directory])
+	path_solettamodulesdir="`$PKG_CONFIG --variable=modulesdir soletta`"
+	if (test -z "${path_solettamodulesdir=}"); then
+		AC_MSG_ERROR([soletta modules directory is required])
+	fi
+	AC_MSG_RESULT([${path_solettamodulesdir}])
+fi
+AC_SUBST(SOLETTA_MODULESDIR, [${path_solettamodulesdir}])
+
+AC_ARG_WITH([solettadescdir], AC_HELP_STRING([--with-solettadescdir=DIR],
+			[path to soletta node type descriptions directory]), [path_solettadescdir=${withval}])
+if (test "${enable_soletta}" != "no" && test -z "${path_solettadescdir}"); then
+	AC_MSG_CHECKING([soletta modules directory])
+	path_solettadescdir="`$PKG_CONFIG --variable=pkgdatadir soletta`"
+	if (test -z "${path_solettadescdir=}"); then
+		AC_MSG_ERROR([soletta descriptions directory is required])
+	fi
+	AC_MSG_RESULT([${path_solettadescdir}])
+fi
+AC_SUBST(SOLETTA_DESCDIR, [${path_solettadescdir}])
+
 AC_OUTPUT(Makefile src/bluetoothd.8 lib/bluez.pc)
-- 
2.4.6


  reply	other threads:[~2015-07-21 23:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-21 23:16 [PATCH BlueZ v1 00/15] Introducing Soletta peripheral node-type Vinicius Costa Gomes
2015-07-21 23:16 ` Vinicius Costa Gomes [this message]
2015-07-21 23:16 ` [PATCH BlueZ v1 02/15] shared: Add a mainloop implementation using soletta Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 03/15] peripheral/gatt: Fix usage of mainloop_ functions Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 04/15] peripheral/gatt: Add a way to external services to register services Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 05/15] peripheral/gap: Fix missing includes Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 06/15] peripheral/gap: Init the gatt_server Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 07/15] peripheral: Disable support for static random addresses Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 08/15] peripheral/gap: Set the discoverable flag in the advertising Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 09/15] peripheral/gatt: Use LOW security level Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 10/15] soletta/heartrate: Add a node-type for the Heartrate profile Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 11/15] .gitignore: Ignore soletta generated files Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 12/15] build: Add heartrate soletta node type to the build system Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 13/15] soletta: Add a sample flow using the heartrate node Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 14/15] peripheral: Add a README for the Soletta support Vinicius Costa Gomes
2015-07-21 23:16 ` [PATCH BlueZ v1 15/15] peripheral: Add a Makefile for building a binary using soletta Vinicius Costa Gomes

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=1437520608-22444-2-git-send-email-vcgomes@gmail.com \
    --to=vcgomes@gmail.com \
    --cc=linux-bluetooth@vger.kernel.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).