blob: f9913c40c7a300962259df55bcdb635af1c4b997 [file] [log] [blame]
Gao Jie49345222016-10-17 12:53:26 +08001# This file was modified by Dolby Laboratories, Inc. The portions of the
2# code that are surrounded by "DOLBY..." are copyrighted and
3# licensed separately, as follows:
4#
5# (C) 2016 Dolby Laboratories, Inc.
6# All rights reserved.
7#
8# This program is protected under international and U.S. Copyright laws as
9# an unpublished work. This program is confidential and proprietary to the
10# copyright owners. Reproduction or disclosure, in whole or in part, or the
11# production of derivative works therefrom without the express permission of
12# the copyright owners is prohibited.
13#
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070014ifneq ($(USE_LEGACY_AUDIO_POLICY), 1)
15ifeq ($(USE_CUSTOM_AUDIO_POLICY), 1)
Mingming Yin0ae14ea2014-07-09 17:55:56 -070016LOCAL_PATH := $(call my-dir)
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070017include $(CLEAR_VARS)
18
Mingming Yin0ae14ea2014-07-09 17:55:56 -070019LOCAL_SRC_FILES := AudioPolicyManager.cpp
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070020
Sharad Sangle36781612015-05-28 16:15:16 +053021LOCAL_C_INCLUDES := $(TOPDIR)frameworks/av/services \
22 $(TOPDIR)frameworks/av/services/audioflinger \
23 $(call include-path-for, audio-effects) \
24 $(call include-path-for, audio-utils) \
25 $(TOPDIR)frameworks/av/services/audiopolicy/common/include \
26 $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface \
27 $(TOPDIR)frameworks/av/services/audiopolicy \
28 $(TOPDIR)frameworks/av/services/audiopolicy/common/managerdefinitions/include \
29 $(call include-path-for, avextension)
30
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070031
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070032LOCAL_SHARED_LIBRARIES := \
33 libcutils \
34 libutils \
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070035 liblog \
36 libsoundtrigger \
Sharad Sangle36781612015-05-28 16:15:16 +053037 libaudiopolicymanagerdefault \
38 libserviceutility
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070039
40LOCAL_STATIC_LIBRARIES := \
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070041 libmedia_helper \
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070042
Alexy Josephb1379942016-01-29 15:49:38 -080043LOCAL_CFLAGS += -Wall -Werror
44
Sharad Sanglec5766ff2015-06-04 20:24:10 +053045ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true)
46LOCAL_CFLAGS += -DVOICE_CONCURRENCY
47endif
48
49ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true)
50LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY
51endif
52
Preetam Singh Ranawat8152ab42015-07-21 19:30:09 +053053ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true)
54 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED
55endif
56
57ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true)
58 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24
59endif
60
Satya Krishna Pindiproli5d82d012015-08-12 18:21:25 +053061ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true)
62 LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED
63endif
64
Manish Dewangana6fc5442015-08-24 20:30:31 +053065ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true)
66 LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED
67endif
68
Sharad Sangle4509cef2015-08-19 20:47:12 +053069ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true)
70 LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED
71endif
72
73ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
74 LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED
75endif
76
Dhananjay Kumar8ccb8312015-10-21 12:36:19 +053077ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true)
78LOCAL_CFLAGS += -DFM_POWER_OPT
79endif
Gao Jie49345222016-10-17 12:53:26 +080080# DOLBY_START
81ifeq ($(strip $(DOLBY_ENABLE)),true)
82LOCAL_CFLAGS += $(dolby_cflags)
83endif
84# DOLBY_END
Dhananjay Kumar8ccb8312015-10-21 12:36:19 +053085
Satya Krishna Pindiproli8f83f102016-06-21 17:56:14 +053086ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
87LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF
88endif
89
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070090LOCAL_MODULE := libaudiopolicymanager
Mingming Yin0ae14ea2014-07-09 17:55:56 -070091
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070092include $(BUILD_SHARED_LIBRARY)
93
94endif
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070095endif