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 | |
Alexy Joseph | b137994 | 2016-01-29 15:49:38 -0800 | [diff] [blame] | 30 | LOCAL_CFLAGS += -Wall -Werror |
| 31 | |
Sharad Sangle | c5766ff | 2015-06-04 20:24:10 +0530 | [diff] [blame] | 32 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true) |
| 33 | LOCAL_CFLAGS += -DVOICE_CONCURRENCY |
| 34 | endif |
| 35 | |
| 36 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true) |
| 37 | LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY |
| 38 | endif |
| 39 | |
Preetam Singh Ranawat | 8152ab4 | 2015-07-21 19:30:09 +0530 | [diff] [blame] | 40 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true) |
| 41 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED |
| 42 | endif |
| 43 | |
| 44 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true) |
| 45 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24 |
| 46 | endif |
| 47 | |
Satya Krishna Pindiproli | 5d82d01 | 2015-08-12 18:21:25 +0530 | [diff] [blame] | 48 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true) |
| 49 | LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED |
| 50 | endif |
| 51 | |
Manish Dewangan | a6fc544 | 2015-08-24 20:30:31 +0530 | [diff] [blame] | 52 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true) |
| 53 | LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED |
| 54 | endif |
| 55 | |
Sharad Sangle | 4509cef | 2015-08-19 20:47:12 +0530 | [diff] [blame] | 56 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true) |
| 57 | LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED |
| 58 | endif |
| 59 | |
| 60 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) |
| 61 | LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED |
| 62 | endif |
| 63 | |
Dhananjay Kumar | 8ccb831 | 2015-10-21 12:36:19 +0530 | [diff] [blame] | 64 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true) |
| 65 | LOCAL_CFLAGS += -DFM_POWER_OPT |
| 66 | endif |
| 67 | |
Satya Krishna Pindiproli | 8f83f10 | 2016-06-21 17:56:14 +0530 | [diff] [blame] | 68 | ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
| 69 | LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF |
| 70 | endif |
| 71 | |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 72 | LOCAL_MODULE := libaudiopolicymanager |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 73 | |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 74 | include $(BUILD_SHARED_LIBRARY) |
| 75 | |
| 76 | endif |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 77 | endif |