• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
15LOCAL_PATH := $(call my-dir)
16
17######################################################
18# Library used by both policy manager and the audioHAL
19######################################################
20include $(CLEAR_VARS)
21
22LOCAL_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
33LOCAL_C_INCLUDES := \
34    external/tinyalsa/include \
35    $(call include-path-for, audio-utils)
36
37LOCAL_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.
50ifneq ($(filter fugu fugu_gmscore_next, $(TARGET_PRODUCT)),)
51LOCAL_C_INCLUDES += \
52    vendor/google_athome/services/RemoteControlService/include
53
54LOCAL_SHARED_LIBRARIES += \
55    libremotecontrolservice
56
57LOCAL_CFLAGS += -DREMOTE_CONTROL_INTERFACE
58endif
59
60LOCAL_STATIC_LIBRARIES += libmedia_helper
61
62LOCAL_MODULE := libatv_audio
63LOCAL_MODULE_TAGS := optional
64
65LOCAL_CFLAGS += -Werror
66
67include $(BUILD_SHARED_LIBRARY)
68
69
70##################################
71# audioHAL
72##################################
73include $(CLEAR_VARS)
74
75LOCAL_SRC_FILES := \
76    audio_hal_hooks.c \
77    audio_hal_thunks.cpp \
78
79LOCAL_C_INCLUDES := \
80    external/tinyalsa/include \
81    $(call include-path-for, audio-utils)
82
83LOCAL_SHARED_LIBRARIES := \
84    libcutils \
85    liblog \
86    libutils \
87    libmedia \
88    libatv_audio
89
90LOCAL_MODULE := audio.primary.fugu
91LOCAL_MODULE_RELATIVE_PATH := hw
92LOCAL_MODULE_TAGS := optional
93
94LOCAL_CFLAGS += -Werror
95
96include $(BUILD_SHARED_LIBRARY)
97
98##################################
99# Audio Policy Manager
100##################################
101include $(CLEAR_VARS)
102
103LOCAL_SRC_FILES := \
104    ATVAudioPolicyManager.cpp
105
106LOCAL_SHARED_LIBRARIES := \
107    libcutils \
108    liblog \
109    libutils \
110    libmedia \
111    libatv_audio \
112    libbinder \
113    libaudiopolicymanagerdefault
114
115LOCAL_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
122ifneq ($(filter fugu fugu_gmscore_next, $(TARGET_PRODUCT)),)
123LOCAL_C_INCLUDES += \
124    vendor/google_athome/services/RemoteControlService/include
125
126LOCAL_SHARED_LIBRARIES += \
127    libremotecontrolservice
128
129LOCAL_CFLAGS += -DREMOTE_CONTROL_INTERFACE
130endif
131
132LOCAL_MODULE := libaudiopolicymanager
133LOCAL_MODULE_TAGS := optional
134
135LOCAL_CFLAGS += -Werror
136
137include $(BUILD_SHARED_LIBRARY)
138