blob: 6db96a9d0b24fcfb87d272efc112e2ab69be3743 [file] [log] [blame]
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -08001ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true)
2
3LOCAL_PATH := $(call my-dir)
4
5include $(CLEAR_VARS)
6
7LOCAL_ARM_MODE := arm
8
9LOCAL_SRC_FILES := \
10 audio_hw.c \
11 edid.c
12
13LOCAL_SHARED_LIBRARIES := \
14 liblog \
15 libcutils \
16 libtinyalsa \
17 libaudioroute \
18 libdl
19
Sungmin Choi5195a4b2013-04-03 21:54:22 -070020ifeq ($(TARGET_BOARD_PLATFORM), msm8974)
21LOCAL_CFLAGS += -DMSM8974
22endif
23
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -080024LOCAL_C_INCLUDES += \
25 external/tinyalsa/include \
Ravi Kumar Alamandaf70ffb42013-04-16 15:55:53 -070026 $(call include-path-for, audio-route) \
27 $(call include-path-for, audio-effects)
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -080028
Iliyan Malchev323fb9e2013-04-04 14:14:04 -070029LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM)
Ravi Kumar Alamanda2dfba2b2013-01-17 16:50:22 -080030
31LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
32
33LOCAL_MODULE_TAGS := optional
34
35include $(BUILD_SHARED_LIBRARY)
36
37endif