1 LOCAL_PATH := $(call my-dir) 2 3 include $(CLEAR_VARS) 4 5 LOCAL_SHARED_LIBRARIES := \ 6 libaudioutils \ 7 libcutils \ 8 liblog \ 9 libutils \ 10 libhardware 11 12 LOCAL_SRC_FILES := \ 13 DeviceHalLocal.cpp \ 14 DevicesFactoryHalHybrid.cpp \ 15 DevicesFactoryHalLocal.cpp \ 16 StreamHalLocal.cpp 17 18 LOCAL_CFLAGS := -Wall -Werror 19 20 ifeq ($(USE_LEGACY_LOCAL_AUDIO_HAL), true) 21 22 # Use audiohal directly w/o hwbinder middleware. 23 # This is for performance comparison and debugging only. 24 25 LOCAL_SRC_FILES += \ 26 EffectBufferHalLocal.cpp \ 27 EffectsFactoryHalLocal.cpp \ 28 EffectHalLocal.cpp 29 30 LOCAL_SHARED_LIBRARIES += \ 31 libeffects 32 33 LOCAL_CFLAGS += -DUSE_LEGACY_LOCAL_AUDIO_HAL 34 35 else # if !USE_LEGACY_LOCAL_AUDIO_HAL 36 37 LOCAL_SRC_FILES += \ 38 ConversionHelperHidl.cpp \ 39 HalDeathHandlerHidl.cpp \ 40 DeviceHalHidl.cpp \ 41 DevicesFactoryHalHidl.cpp \ 42 EffectBufferHalHidl.cpp \ 43 EffectHalHidl.cpp \ 44 EffectsFactoryHalHidl.cpp \ 45 StreamHalHidl.cpp 46 47 LOCAL_SHARED_LIBRARIES += \ 48 libbase \ 49 libfmq \ 50 libhwbinder \ 51 libhidlbase \ 52 libhidlmemory \ 53 libhidltransport \ 54 android.hardware.audio (a] 2.0 \ 55 android.hardware.audio.common (a] 2.0 \ 56 android.hardware.audio.common (a] 2.0-util \ 57 android.hardware.audio.effect (a] 2.0 \ 58 android.hidl.allocator (a] 1.0 \ 59 android.hidl.memory (a] 1.0 \ 60 libmedia_helper \ 61 libmediautils 62 63 endif # USE_LEGACY_LOCAL_AUDIO_HAL 64 65 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include 66 67 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include 68 69 LOCAL_MODULE := libaudiohal 70 71 include $(BUILD_SHARED_LIBRARY) 72