Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 1 | ifeq ($(strip $(BOARD_USES_ALSA_AUDIO)),true) |
| 2 | |
| 3 | LOCAL_PATH := $(call my-dir) |
| 4 | include $(CLEAR_VARS) |
| 5 | |
| 6 | LOCAL_SRC_FILES := AudioPolicyManager.cpp |
| 7 | |
| 8 | LOCAL_SHARED_LIBRARIES := \ |
| 9 | libcutils \ |
| 10 | libutils \ |
| 11 | liblog |
| 12 | |
| 13 | LOCAL_STATIC_LIBRARIES := \ |
| 14 | libmedia_helper |
| 15 | |
| 16 | LOCAL_WHOLE_STATIC_LIBRARIES := \ |
| 17 | libaudiopolicy_legacy |
| 18 | |
| 19 | LOCAL_MODULE := audio_policy.$(TARGET_BOARD_PLATFORM) |
| 20 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw |
| 21 | LOCAL_MODULE_TAGS := optional |
| 22 | |
Ravi Kumar Alamanda | 88d28cb | 2013-10-15 16:59:57 -0700 | [diff] [blame] | 23 | ifneq ($(strip $(AUDIO_FEATURE_DISABLED_FM)),true) |
| 24 | LOCAL_CFLAGS += -DAUDIO_EXTN_FM_ENABLED |
| 25 | endif |
| 26 | ifneq ($(strip $(AUDIO_FEATURE_DISABLED_PROXY_DEVICE)),true) |
| 27 | LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED |
| 28 | endif |
| 29 | ifneq ($(strip $(AUDIO_FEATURE_DISABLED_INCALL_MUSIC)),true) |
| 30 | LOCAL_CFLAGS += -DAUDIO_EXTN_INCALL_MUSIC_ENABLED |
| 31 | endif |
| 32 | |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 33 | include $(BUILD_SHARED_LIBRARY) |
| 34 | |
| 35 | endif |