Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/2] android: Add common place for adding compiler flags in Android.mk
@ 2013-10-29 15:23 Szymon Janc
  2013-10-29 15:23 ` [PATCH 2/2] android: Suppress compiler warnings not used in autotools build Szymon Janc
  2013-10-30 10:10 ` [PATCH 1/2] android: Add common place for adding compiler flags in Android.mk Johan Hedberg
  0 siblings, 2 replies; 7+ messages in thread
From: Szymon Janc @ 2013-10-29 15:23 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Szymon Janc

This will contain CFLAGS common for all BlueZ code.
---
 android/Android.mk | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/android/Android.mk b/android/Android.mk
index d8f9d0d..c88b27e 100644
--- a/android/Android.mk
+++ b/android/Android.mk
@@ -6,6 +6,9 @@ BLUEZ_VERSION := $(shell grep ^AC_INIT $(LOCAL_PATH)/../configure.ac | cpp -P -D
 # Specify pathmap for glib
 pathmap_INCL += glib:external/bluetooth/glib
 
+# Specify common compiler flags
+BLUEZ_COMMON_CFLAGS := -DVERSION=\"$(BLUEZ_VERSION)\"
+
 #
 # Android BlueZ daemon (bluetoothd)
 #
@@ -39,7 +42,7 @@ LOCAL_C_INCLUDES += \
 	$(LOCAL_PATH)/../src \
 	$(LOCAL_PATH)/../lib \
 
-LOCAL_CFLAGS := -DVERSION=\"$(BLUEZ_VERSION)\" \
+LOCAL_CFLAGS := $(BLUEZ_COMMON_CFLAGS) \
 	-DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
 
 LOCAL_SHARED_LIBRARIES := \
@@ -84,6 +87,8 @@ LOCAL_C_INCLUDES += \
 LOCAL_SHARED_LIBRARIES := \
 	libcutils \
 
+LOCAL_CFLAGS := $(BLUEZ_COMMON_CFLAGS) \
+
 LOCAL_MODULE := bluetooth.default
 LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
 LOCAL_MODULE_TAGS := optional
@@ -112,7 +117,7 @@ LOCAL_SRC_FILES := \
 	client/if-pan.c \
 	client/if-sock.c \
 
-LOCAL_CFLAGS := -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
+LOCAL_CFLAGS := $(BLUEZ_COMMON_CFLAGS)
 
 LOCAL_SHARED_LIBRARIES := libhardware
 
-- 
1.8.4.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-10-30 10:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29 15:23 [PATCH 1/2] android: Add common place for adding compiler flags in Android.mk Szymon Janc
2013-10-29 15:23 ` [PATCH 2/2] android: Suppress compiler warnings not used in autotools build Szymon Janc
2013-10-30  8:19   ` Andrei Emeltchenko
2013-10-30  8:25     ` Szymon Janc
2013-10-30  8:37       ` Andrei Emeltchenko
2013-10-30  9:07       ` Szymon Janc
2013-10-30 10:10 ` [PATCH 1/2] android: Add common place for adding compiler flags in Android.mk Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox