Dhananjay Kumar | daf6ebb | 2013-10-07 11:38:46 -0700 | [diff] [blame] | 1 | ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true) |
| 2 | |
| 3 | LOCAL_PATH := $(call my-dir) |
| 4 | |
| 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | LOCAL_ARM_MODE := arm |
| 8 | |
| 9 | AUDIO_PLATFORM := $(TARGET_BOARD_PLATFORM) |
| 10 | |
| 11 | LOCAL_SRC_FILES := \ |
| 12 | audio_hw.c \ |
Dhananjay Kumar | 01e921a | 2013-11-26 23:33:22 +0530 | [diff] [blame] | 13 | audio_stream_out.c \ |
Dhananjay Kumar | 4e9a903 | 2013-11-18 16:41:48 +0530 | [diff] [blame^] | 14 | audio_bitstream_sm.c \ |
Dhananjay Kumar | daf6ebb | 2013-10-07 11:38:46 -0700 | [diff] [blame] | 15 | $(AUDIO_PLATFORM)/hw_info.c \ |
| 16 | $(AUDIO_PLATFORM)/platform.c |
| 17 | |
| 18 | ifneq ($(strip $(AUDIO_FEATURE_DISABLED_ANC_HEADSET)),true) |
| 19 | LOCAL_CFLAGS += -DANC_HEADSET_ENABLED |
| 20 | endif |
| 21 | |
| 22 | ifneq ($(strip $(AUDIO_FEATURE_DISABLED_PROXY_DEVICE)),true) |
| 23 | LOCAL_CFLAGS += -DAFE_PROXY_ENABLED |
| 24 | endif |
| 25 | |
| 26 | |
| 27 | ifdef MULTIPLE_HW_VARIANTS_ENABLED |
| 28 | LOCAL_CFLAGS += -DHW_VARIANTS_ENABLED |
| 29 | LOCAL_SRC_FILES += $(AUDIO_PLATFORM)/hw_info.c |
| 30 | endif |
| 31 | |
| 32 | LOCAL_SHARED_LIBRARIES := \ |
| 33 | liblog \ |
| 34 | libcutils \ |
| 35 | libtinyalsa \ |
| 36 | libtinycompress \ |
| 37 | libaudioroute \ |
| 38 | libdl |
| 39 | |
| 40 | LOCAL_C_INCLUDES := \ |
| 41 | external/tinyalsa/include \ |
| 42 | external/tinycompress/include \ |
| 43 | $(call include-path-for, audio-route) \ |
| 44 | $(call include-path-for, audio-effects) \ |
| 45 | $(LOCAL_PATH)/$(AUDIO_PLATFORM) |
| 46 | |
| 47 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUXPCM_BT)),true) |
| 48 | LOCAL_CFLAGS += -DAUXPCM_BT_ENABLED |
| 49 | endif |
| 50 | |
| 51 | LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM) |
| 52 | |
| 53 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 54 | |
| 55 | LOCAL_MODULE_TAGS := optional |
| 56 | |
| 57 | include $(BUILD_SHARED_LIBRARY) |
| 58 | |
| 59 | endif |