Thread (10 messages) 10 messages, 4 authors, 2013-09-30

Re: [PATCH v2 1/3] build: Add skeleton for BlueZ Android

From: Anderson Lizardo <hidden>
Date: 2013-09-24 12:57:24

Hi Frederic,

On Tue, Sep 24, 2013 at 8:13 AM, Frederic Danis
[off-list ref] wrote:
quoted hunk ↗ jump to hunk
--- /dev/null
+++ b/android/Android.mk
@@ -0,0 +1,5 @@
+LOCAL_PATH := $(call my-dir)
+
+# Retrieve BlueZ version from configure.ac file
+BLUEZ_VERSION := $(shell grep AC_INIT $(LOCAL_PATH)/../configure.ac | tr -d ' ' | sed -e 's/.*(.*,\(.*\))/\1/')
It also works if you use the C preprocessor to get the version:

BLUEZ_VERSION := $(shell grep ^AC_INIT $(LOCAL_PATH)/../configure.ac |
cpp -P -D'AC_INIT(_,v)=v')


Best Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help