blob: 5b7f6f1b3358677b0a678c25a85157d152db1810 [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 \
Garmond Leungfcb00d92017-01-31 11:12:47 -080029 $(call include-path-for, avextension) \
30 $(TOPDIR)system/core/base/include
Sharad Sangle36781612015-05-28 16:15:16 +053031
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070032
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070033LOCAL_SHARED_LIBRARIES := \
34 libcutils \
35 libutils \
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070036 liblog \
37 libsoundtrigger \
Sharad Sangle36781612015-05-28 16:15:16 +053038 libaudiopolicymanagerdefault \
39 libserviceutility
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070040
41LOCAL_STATIC_LIBRARIES := \
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070042 libmedia_helper \
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070043
Alexy Josephb1379942016-01-29 15:49:38 -080044LOCAL_CFLAGS += -Wall -Werror
45
Sharad Sanglec5766ff2015-06-04 20:24:10 +053046ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true)
47LOCAL_CFLAGS += -DVOICE_CONCURRENCY
48endif
49
50ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true)
51LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY
52endif
53
Preetam Singh Ranawat8152ab42015-07-21 19:30:09 +053054ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true)
55 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED
56endif
57
58ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true)
59 LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24
60endif
61
Satya Krishna Pindiproli5d82d012015-08-12 18:21:25 +053062ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true)
63 LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED
64endif
65
Manish Dewangana6fc5442015-08-24 20:30:31 +053066ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true)
67 LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED
68endif
69
Sharad Sangle4509cef2015-08-19 20:47:12 +053070ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true)
71 LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED
72endif
73
74ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true)
75 LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED
76endif
77
Dhananjay Kumar8ccb8312015-10-21 12:36:19 +053078ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true)
79LOCAL_CFLAGS += -DFM_POWER_OPT
80endif
Gao Jie49345222016-10-17 12:53:26 +080081# DOLBY_START
82ifeq ($(strip $(DOLBY_ENABLE)),true)
83LOCAL_CFLAGS += $(dolby_cflags)
84endif
85# DOLBY_END
Dhananjay Kumar8ccb8312015-10-21 12:36:19 +053086
Satya Krishna Pindiproli8f83f102016-06-21 17:56:14 +053087ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1)
88LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF
89endif
90
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070091LOCAL_MODULE := libaudiopolicymanager
Mingming Yin0ae14ea2014-07-09 17:55:56 -070092
Ravi Kumar Alamanda89a81422013-10-08 23:47:55 -070093include $(BUILD_SHARED_LIBRARY)
94
95endif
Ravi Kumar Alamanda1cf2a592014-10-29 20:31:15 -070096endif