Sharad Sangle | ca67a02 | 2015-05-28 16:15:16 +0530 | [diff] [blame] | 1 | ifneq ($(USE_LEGACY_AUDIO_POLICY), 1) |
| 2 | ifeq ($(USE_CUSTOM_AUDIO_POLICY), 1) |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 3 | LOCAL_PATH := $(call my-dir) |
| 4 | include $(CLEAR_VARS) |
| 5 | |
| 6 | LOCAL_SRC_FILES := AudioPolicyManager.cpp |
| 7 | |
Sharad Sangle | ca67a02 | 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 | |
| 18 | |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 19 | LOCAL_SHARED_LIBRARIES := \ |
| 20 | libcutils \ |
| 21 | libutils \ |
Sharad Sangle | ca67a02 | 2015-05-28 16:15:16 +0530 | [diff] [blame] | 22 | liblog \ |
| 23 | libsoundtrigger \ |
| 24 | libaudiopolicymanagerdefault \ |
| 25 | libserviceutility |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 26 | |
| 27 | LOCAL_STATIC_LIBRARIES := \ |
Sharad Sangle | ca67a02 | 2015-05-28 16:15:16 +0530 | [diff] [blame] | 28 | libmedia_helper \ |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 29 | |
Ramjee Singh | ae5f890 | 2015-08-19 20:47:12 +0530 | [diff] [blame] | 30 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true) |
| 31 | LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED |
| 32 | endif |
| 33 | |
| 34 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true) |
| 35 | LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED |
| 36 | endif |
| 37 | |
| 38 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) |
| 39 | LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED |
| 40 | endif |
| 41 | |
Ramjee Singh | 5300daa | 2015-11-18 13:31:47 +0530 | [diff] [blame^] | 42 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true) |
| 43 | LOCAL_CFLAGS += -DFM_POWER_OPT |
| 44 | endif |
| 45 | |
Sharad Sangle | ca67a02 | 2015-05-28 16:15:16 +0530 | [diff] [blame] | 46 | LOCAL_MODULE := libaudiopolicymanager |
Ravi Kumar Alamanda | 88d28cb | 2013-10-15 16:59:57 -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 |
Sharad Sangle | ca67a02 | 2015-05-28 16:15:16 +0530 | [diff] [blame] | 51 | endif |