Ravi Kumar Alamanda | c95fd32 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 1 | ifneq ($(USE_LEGACY_AUDIO_POLICY), 1) |
| 2 | ifeq ($(USE_CUSTOM_AUDIO_POLICY), 1) |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 3 | LOCAL_PATH := $(call my-dir) |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 4 | include $(CLEAR_VARS) |
| 5 | |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 6 | LOCAL_SRC_FILES := AudioPolicyManager.cpp |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 7 | |
Ravi Kumar Alamanda | c95fd32 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 8 | LOCAL_C_INCLUDES := $(TOPDIR)frameworks/av/services |
| 9 | |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 10 | LOCAL_SHARED_LIBRARIES := \ |
| 11 | libcutils \ |
| 12 | libutils \ |
Ravi Kumar Alamanda | c95fd32 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 13 | liblog \ |
| 14 | libsoundtrigger \ |
| 15 | libaudiopolicymanagerdefault |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 16 | |
| 17 | LOCAL_STATIC_LIBRARIES := \ |
Ravi Kumar Alamanda | c95fd32 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 18 | libmedia_helper \ |
| 19 | libserviceutility |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 20 | |
Ravi Kumar Alamanda | c95fd32 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 21 | LOCAL_MODULE := libaudiopolicymanager |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 22 | |
Ravi Kumar Alamanda | c95fd32 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 23 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_VOIP)),true) |
| 24 | LOCAL_CFLAGS += -DAUDIO_EXTN_COMPRESS_VOIP_ENABLED |
| 25 | endif |
| 26 | |
| 27 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true) |
| 28 | LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED |
| 29 | endif |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 30 | |
| 31 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM)),true) |
| 32 | LOCAL_CFLAGS += -DAUDIO_EXTN_FM_ENABLED |
| 33 | endif |
Ravi Kumar Alamanda | c95fd32 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 34 | |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 35 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true) |
| 36 | LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED |
| 37 | endif |
| 38 | |
Ravi Kumar Alamanda | c95fd32 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 39 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_INCALL_MUSIC)),true) |
| 40 | LOCAL_CFLAGS += -DAUDIO_EXTN_INCALL_MUSIC_ENABLED |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 41 | endif |
| 42 | |
| 43 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_MULTIPLE_TUNNEL)), true) |
| 44 | LOCAL_CFLAGS += -DMULTIPLE_OFFLOAD_ENABLED |
| 45 | endif |
| 46 | |
Ravi Kumar Alamanda | c95fd32 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 47 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true) |
| 48 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED |
| 49 | endif |
| 50 | |
| 51 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) |
| 52 | LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED |
| 53 | endif |
| 54 | |
| 55 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_SSR)),true) |
| 56 | LOCAL_CFLAGS += -DAUDIO_EXTN_SSR_ENABLED |
| 57 | endif |
| 58 | |
| 59 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true) |
| 60 | LOCAL_CFLAGS += -DVOICE_CONCURRENCY |
| 61 | endif |
| 62 | |
| 63 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_WFD_CONCURRENCY)),true) |
| 64 | LOCAL_CFLAGS += -DWFD_CONCURRENCY |
| 65 | endif |
| 66 | |
| 67 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true) |
| 68 | LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY |
| 69 | endif |
| 70 | |
| 71 | ifeq ($(strip $(DOLBY_UDC)),true) |
| 72 | LOCAL_CFLAGS += -DDOLBY_UDC |
| 73 | endif #DOLBY_UDC |
| 74 | ifeq ($(strip $(DOLBY_DDP)),true) |
| 75 | LOCAL_CFLAGS += -DDOLBY_DDP |
| 76 | endif #DOLBY_DDP |
| 77 | ifeq ($(strip $(DOLBY_DAP)),true) |
| 78 | ifdef DOLBY_DAP_OPENSLES |
| 79 | LOCAL_CFLAGS += -DDOLBY_DAP_OPENSLES |
| 80 | endif |
| 81 | endif #DOLBY_END |
| 82 | |
Naresh Tanniru | 36c0893 | 2014-01-27 18:40:53 +0530 | [diff] [blame] | 83 | |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 84 | include $(BUILD_SHARED_LIBRARY) |
| 85 | |
| 86 | endif |
Ravi Kumar Alamanda | c95fd32 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 87 | endif |