Hi,

can anyone check this patch?

Michael

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
Fix compilation issue in Eclair of a2dp.

Signed-off-by: Michael Trimarchi <mich...@panicking.kicks-ass.org>
---
diff --git a/libs/audioflinger/Android.mk b/libs/audioflinger/Android.mk
index f5c03bb..716cbfd 100644
--- a/libs/audioflinger/Android.mk
+++ b/libs/audioflinger/Android.mk
@@ -34,16 +34,8 @@ endif
 
 LOCAL_MODULE:= libaudiointerface
 
-ifeq ($(BOARD_HAVE_BLUETOOTH),true)
-  LOCAL_SRC_FILES += A2dpAudioInterface.cpp
-  LOCAL_SHARED_LIBRARIES += liba2dp
-  LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
-  LOCAL_C_INCLUDES += $(call include-path-for, bluez)
-endif
-
 include $(BUILD_STATIC_LIBRARY)
 
-
 include $(CLEAR_VARS)
 
 LOCAL_SRC_FILES:=               \
@@ -85,7 +77,7 @@ LOCAL_SRC_FILES:=               \
 LOCAL_SHARED_LIBRARIES := \
     libcutils \
     libutils \
-	libbinder \
+    libbinder \
     libmedia \
     libhardware_legacy \
     libaudiopolicygeneric
@@ -106,8 +98,10 @@ endif
 LOCAL_MODULE:= libaudioflinger
 
 ifeq ($(BOARD_HAVE_BLUETOOTH),true)
-  LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
+  LOCAL_SRC_FILES += A2dpAudioInterface.cpp
   LOCAL_SHARED_LIBRARIES += liba2dp
+  LOCAL_CFLAGS += -DWITH_BLUETOOTH -DWITH_A2DP
+  LOCAL_C_INCLUDES += $(call include-path-for, bluez)
 endif
 
 ifeq ($(AUDIO_POLICY_TEST),true)

Reply via email to