Marko Man | ef8d7e4 | 2018-08-26 23:20:31 +0200 | [diff] [blame] | 1 | ifeq ($(TARGET_DEVICE),zenfone6) |
| 2 | ifeq ($(USE_CUSTOM_AUDIO_POLICY), 1) |
| 3 | LOCAL_PATH := $(call my-dir) |
| 4 | include $(CLEAR_VARS) |
| 5 | |
| 6 | LOCAL_SRC_FILES := AudioPolicyManager.cpp |
| 7 | |
| 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 | LOCAL_HEADER_LIBRARIES := \ |
| 19 | libbase_headers |
| 20 | |
| 21 | LOCAL_SHARED_LIBRARIES := \ |
| 22 | libcutils \ |
| 23 | libutils \ |
| 24 | liblog \ |
| 25 | libsoundtrigger \ |
| 26 | libaudiopolicymanagerdefault \ |
| 27 | libserviceutility |
| 28 | |
| 29 | LOCAL_STATIC_LIBRARIES := \ |
| 30 | libmedia_helper \ |
| 31 | |
| 32 | LOCAL_CFLAGS += -Wall -Werror |
| 33 | |
| 34 | |
| 35 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true) |
| 36 | LOCAL_CFLAGS += -DVOICE_CONCURRENCY |
| 37 | endif |
| 38 | |
| 39 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true) |
| 40 | LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY |
| 41 | endif |
| 42 | |
| 43 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true) |
| 44 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED |
| 45 | endif |
| 46 | |
| 47 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true) |
| 48 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24 |
| 49 | endif |
| 50 | |
| 51 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true) |
| 52 | LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED |
| 53 | endif |
| 54 | |
| 55 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true) |
| 56 | LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED |
| 57 | endif |
| 58 | |
| 59 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true) |
| 60 | LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED |
| 61 | endif |
| 62 | |
| 63 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) |
| 64 | LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED |
| 65 | endif |
| 66 | |
| 67 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true) |
| 68 | LOCAL_CFLAGS += -DFM_POWER_OPT |
| 69 | endif |
| 70 | |
| 71 | ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
| 72 | LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF |
| 73 | endif |
| 74 | |
| 75 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_COMPRESS_VOIP)),true) |
| 76 | LOCAL_CFLAGS += -DCOMPRESS_VOIP_ENABLED |
| 77 | endif |
| 78 | |
| 79 | LOCAL_MODULE := libaudiopolicymanager |
| 80 | |
| 81 | include $(BUILD_SHARED_LIBRARY) |
| 82 | |
| 83 | endif |
| 84 | endif |