1 # Copyright (C) 2014 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 LOCAL_PATH := $(call my-dir) 16 17 ###################################################### 18 # Library used by both policy manager and the audioHAL 19 ###################################################### 20 include $(CLEAR_VARS) 21 22 LOCAL_SRC_FILES := \ 23 alsa_utils.cpp \ 24 AudioHardwareOutput.cpp \ 25 AudioOutput.cpp \ 26 AudioStreamOut.cpp \ 27 HDMIAudioOutput.cpp \ 28 AudioHardwareInput.cpp \ 29 AudioStreamIn.cpp \ 30 AudioHotplugThread.cpp \ 31 LinearTransform.cpp 32 33 LOCAL_C_INCLUDES := \ 34 external/tinyalsa/include \ 35 $(call include-path-for, audio-utils) 36 37 LOCAL_SHARED_LIBRARIES := \ 38 libcommon_time_client \ 39 libcutils \ 40 liblog \ 41 libutils \ 42 libmedia \ 43 libbinder \ 44 libtinyalsa \ 45 libaudiospdif \ 46 libaudioutils 47 48 # until remotecontrolservice is added to PDK, don't include 49 # this in aosp_fugu builds. only use in regular fugu builds. 50 ifneq ($(filter fugu fugu_gmscore_next, $(TARGET_PRODUCT)),) 51 LOCAL_C_INCLUDES += \ 52 vendor/google_athome/services/RemoteControlService/include 53 54 LOCAL_SHARED_LIBRARIES += \ 55 libremotecontrolservice 56 57 LOCAL_CFLAGS += -DREMOTE_CONTROL_INTERFACE 58 endif 59 60 LOCAL_STATIC_LIBRARIES += libmedia_helper 61 62 LOCAL_MODULE := libatv_audio 63 LOCAL_MODULE_TAGS := optional 64 65 LOCAL_CFLAGS += -Werror 66 67 include $(BUILD_SHARED_LIBRARY) 68 69 70 ################################## 71 # audioHAL 72 ################################## 73 include $(CLEAR_VARS) 74 75 LOCAL_SRC_FILES := \ 76 audio_hal_hooks.c \ 77 audio_hal_thunks.cpp \ 78 79 LOCAL_C_INCLUDES := \ 80 external/tinyalsa/include \ 81 $(call include-path-for, audio-utils) 82 83 LOCAL_SHARED_LIBRARIES := \ 84 libcutils \ 85 liblog \ 86 libutils \ 87 libmedia \ 88 libatv_audio 89 90 LOCAL_MODULE := audio.primary.fugu 91 LOCAL_MODULE_RELATIVE_PATH := hw 92 LOCAL_MODULE_TAGS := optional 93 94 LOCAL_CFLAGS += -Werror 95 96 include $(BUILD_SHARED_LIBRARY) 97 98 ################################## 99 # Audio Policy Manager 100 ################################## 101 include $(CLEAR_VARS) 102 103 LOCAL_SRC_FILES := \ 104 ATVAudioPolicyManager.cpp 105 106 LOCAL_SHARED_LIBRARIES := \ 107 libcutils \ 108 liblog \ 109 libutils \ 110 libmedia \ 111 libatv_audio \ 112 libbinder \ 113 libaudiopolicymanagerdefault 114 115 LOCAL_C_INCLUDES := \ 116 external/tinyalsa/include \ 117 $(TOPDIR)frameworks/av/services/audiopolicy \ 118 $(TOPDIR)frameworks/av/services/audiopolicy/common/include \ 119 $(TOPDIR)frameworks/av/services/audiopolicy/common/managerdefinitions/include \ 120 $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface 121 122 ifneq ($(filter fugu fugu_gmscore_next, $(TARGET_PRODUCT)),) 123 LOCAL_C_INCLUDES += \ 124 vendor/google_athome/services/RemoteControlService/include 125 126 LOCAL_SHARED_LIBRARIES += \ 127 libremotecontrolservice 128 129 LOCAL_CFLAGS += -DREMOTE_CONTROL_INTERFACE 130 endif 131 132 LOCAL_MODULE := libaudiopolicymanager 133 LOCAL_MODULE_TAGS := optional 134 135 LOCAL_CFLAGS += -Werror 136 137 include $(BUILD_SHARED_LIBRARY) 138