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 | |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 46 | LOCAL_MODULE := libaudiopolicymanager |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 47 | |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 48 | include $(BUILD_SHARED_LIBRARY) |
| 49 | |
| 50 | endif |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 51 | endif |