Gao Jie | 4934522 | 2016-10-17 12:53:26 +0800 | [diff] [blame] | 1 | # 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 Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 14 | ifneq ($(USE_LEGACY_AUDIO_POLICY), 1) |
| 15 | ifeq ($(USE_CUSTOM_AUDIO_POLICY), 1) |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 16 | LOCAL_PATH := $(call my-dir) |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 17 | include $(CLEAR_VARS) |
| 18 | |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 19 | LOCAL_SRC_FILES := AudioPolicyManager.cpp |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 20 | |
Sharad Sangle | 3678161 | 2015-05-28 16:15:16 +0530 | [diff] [blame] | 21 | LOCAL_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 Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 31 | |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 32 | LOCAL_SHARED_LIBRARIES := \ |
| 33 | libcutils \ |
| 34 | libutils \ |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 35 | liblog \ |
| 36 | libsoundtrigger \ |
Sharad Sangle | 3678161 | 2015-05-28 16:15:16 +0530 | [diff] [blame] | 37 | libaudiopolicymanagerdefault \ |
| 38 | libserviceutility |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 39 | |
| 40 | LOCAL_STATIC_LIBRARIES := \ |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 41 | libmedia_helper \ |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 42 | |
Alexy Joseph | b137994 | 2016-01-29 15:49:38 -0800 | [diff] [blame] | 43 | LOCAL_CFLAGS += -Wall -Werror |
| 44 | |
Sharad Sangle | c5766ff | 2015-06-04 20:24:10 +0530 | [diff] [blame] | 45 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_VOICE_CONCURRENCY)),true) |
| 46 | LOCAL_CFLAGS += -DVOICE_CONCURRENCY |
| 47 | endif |
| 48 | |
| 49 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_RECORD_PLAY_CONCURRENCY)),true) |
| 50 | LOCAL_CFLAGS += -DRECORD_PLAY_CONCURRENCY |
| 51 | endif |
| 52 | |
Preetam Singh Ranawat | 8152ab4 | 2015-07-21 19:30:09 +0530 | [diff] [blame] | 53 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD)),true) |
| 54 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED |
| 55 | endif |
| 56 | |
| 57 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PCM_OFFLOAD_24)),true) |
| 58 | LOCAL_CFLAGS += -DPCM_OFFLOAD_ENABLED_24 |
| 59 | endif |
| 60 | |
Satya Krishna Pindiproli | 5d82d01 | 2015-08-12 18:21:25 +0530 | [diff] [blame] | 61 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_EXTN_FORMATS)),true) |
| 62 | LOCAL_CFLAGS += -DAUDIO_EXTN_FORMATS_ENABLED |
| 63 | endif |
| 64 | |
Manish Dewangan | a6fc544 | 2015-08-24 20:30:31 +0530 | [diff] [blame] | 65 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AAC_ADTS_OFFLOAD)),true) |
| 66 | LOCAL_CFLAGS += -DAAC_ADTS_OFFLOAD_ENABLED |
| 67 | endif |
| 68 | |
Sharad Sangle | 4509cef | 2015-08-19 20:47:12 +0530 | [diff] [blame] | 69 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_HDMI_SPK)),true) |
| 70 | LOCAL_CFLAGS += -DAUDIO_EXTN_HDMI_SPK_ENABLED |
| 71 | endif |
| 72 | |
| 73 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PROXY_DEVICE)),true) |
| 74 | LOCAL_CFLAGS += -DAUDIO_EXTN_AFE_PROXY_ENABLED |
| 75 | endif |
| 76 | |
Dhananjay Kumar | 8ccb831 | 2015-10-21 12:36:19 +0530 | [diff] [blame] | 77 | ifeq ($(strip $(AUDIO_FEATURE_ENABLED_FM_POWER_OPT)),true) |
| 78 | LOCAL_CFLAGS += -DFM_POWER_OPT |
| 79 | endif |
Gao Jie | 4934522 | 2016-10-17 12:53:26 +0800 | [diff] [blame] | 80 | # DOLBY_START |
| 81 | ifeq ($(strip $(DOLBY_ENABLE)),true) |
| 82 | LOCAL_CFLAGS += $(dolby_cflags) |
| 83 | endif |
| 84 | # DOLBY_END |
Dhananjay Kumar | 8ccb831 | 2015-10-21 12:36:19 +0530 | [diff] [blame] | 85 | |
Satya Krishna Pindiproli | 8f83f10 | 2016-06-21 17:56:14 +0530 | [diff] [blame] | 86 | ifeq ($(USE_XML_AUDIO_POLICY_CONF), 1) |
| 87 | LOCAL_CFLAGS += -DUSE_XML_AUDIO_POLICY_CONF |
| 88 | endif |
| 89 | |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 90 | LOCAL_MODULE := libaudiopolicymanager |
Mingming Yin | 0ae14ea | 2014-07-09 17:55:56 -0700 | [diff] [blame] | 91 | |
Ravi Kumar Alamanda | 89a8142 | 2013-10-08 23:47:55 -0700 | [diff] [blame] | 92 | include $(BUILD_SHARED_LIBRARY) |
| 93 | |
| 94 | endif |
Ravi Kumar Alamanda | 1cf2a59 | 2014-10-29 20:31:15 -0700 | [diff] [blame] | 95 | endif |