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