audioserver: Remove direct dependency on IAudioRecord.aidl

audioserver should not link directly the code generated from
IAudioRecord.aidl because it also gets it as a result of
depending on libmedia.so and other libraries.

Linking IAudioRecord.o directly causes violation of ODR
because it contains global data.

Bug: 117507477
Test: make
Change-Id: If165768e9097d1c95980883f1fe6e1aacae97506
gugelfrei
Mikhail Naganov 6 years ago
parent 24bf51ae92
commit 464cf2be50

@ -4,7 +4,6 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
main_audioserver.cpp \
../libaudioclient/aidl/android/media/IAudioRecord.aidl
LOCAL_SHARED_LIBRARIES := \
libaaudioservice \
@ -41,9 +40,6 @@ LOCAL_C_INCLUDES := \
$(call include-path-for, audio-utils) \
external/sonic \
LOCAL_AIDL_INCLUDES := \
frameworks/av/media/libaudioclient/aidl
# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control
# the LOCAL_MULTILIB for all audioserver exclusive libraries.
# This is relevant for 64 bit architectures where either or both

Loading…
Cancel
Save