Ravi Kumar Alamanda | 1cf2a59 | 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 | |
Sharad Sangle | 3678161 | 2015-05-28 16:15:16 +0530 | [diff] [blame] | 8 | LOCAL_C_INCLUDES := $(TOPDIR)frameworks/av/services \ |
| 9 | $(TOPDIR)frameworks/av/services/audioflinger \ |
| 10 | $(call include-path-for, audio-effects) \ |
| 11 | $(call include-path-for, audio-utils) \ |
| 12 | $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ |
| 13 | $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \ |
| 14 | $(TOPDIR)frameworks/av/services/audiopolicy \ |
| 15 | $(TOPDIR)frameworks/av/services/audiopolicy/common/managerdefinitions/include \ |
| 16 | $(call include-path-for, avextension) |
| 17 | |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 18 | |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 19 | LOCAL_SHARED_LIBRARIES := \ |
| 20 | libcutils \ |
| 21 | libutils \ |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 22 | liblog \ |
| 23 | libsoundtrigger \ |
Sharad Sangle | 3678161 | 2015-05-28 16:15:16 +0530 | [diff] [blame] | 24 | libaudiopolicymanagerdefault \ |
| 25 | libserviceutility |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 26 | |
| 27 | LOCAL_STATIC_LIBRARIES := \ |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 28 | libmedia_helper \ |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 29 | |
Sharad Sangle | c5766ff | 2015-06-04 20:24:10 +0530 | [diff] [blame] | 30 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true) |
| 31 | LOCAL_CFLAGS += -DVOICE_CONCURRENCY |
| 32 | endif |
| 33 | |
| 34 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true) |
| 35 | LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY |
| 36 | endif |
| 37 | |
Preetam Singh Ranawat | 8152ab4 | 2015-07-21 19:30:09 +0530 | [diff] [blame] | 38 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true) |
| 39 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED |
| 40 | endif |
| 41 | |
| 42 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true) |
| 43 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24 |
| 44 | endif |
| 45 | |
Satya Krishna Pindiproli | 5d82d01 | 2015-08-12 18:21:25 +0530 | [diff] [blame] | 46 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true) |
| 47 | LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED |
| 48 | endif |
| 49 | |
Manish Dewangan | a6fc544 | 2015-08-24 20:30:31 +0530 | [diff] [blame] | 50 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true) |
| 51 | LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED |
| 52 | endif |
| 53 | |
Sharad Sangle | 4509cef | 2015-08-19 20:47:12 +0530 | [diff] [blame] | 54 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true) |
| 55 | LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED |
| 56 | endif |
| 57 | |
| 58 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) |
| 59 | LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED |
| 60 | endif |
| 61 | |
Dhananjay Kumar | 8ccb831 | 2015-10-21 12:36:19 +0530 | [diff] [blame] | 62 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true) |
| 63 | LOCAL_CFLAGS += -DFM_POWER_OPT |
| 64 | endif |
| 65 | |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 66 | LOCAL_MODULE := libaudiopolicymanager |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 67 | |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 68 | include $(BUILD_SHARED_LIBRARY) |
| 69 | |
| 70 | endif |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 71 | endif |