blob: c3cfd699992eabfa00fba7b5a1407fac60e47213 [file] [log] [blame]
Eric Laurent27ef4d82016-10-14 15:46:06 -07001#
2# Copyright (C) 2016 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
17LOCAL_PATH := $(call my-dir)
18
19include $(CLEAR_VARS)
Mikhail Naganov10548292016-10-31 10:39:47 -070020LOCAL_MODULE := android.hardware.audio@2.0-impl
21LOCAL_MODULE_RELATIVE_PATH := hw
22LOCAL_SRC_FILES := \
23 Conversions.cpp \
24 Device.cpp \
25 DevicesFactory.cpp \
26 ParametersUtil.cpp \
27 PrimaryDevice.cpp \
28 Stream.cpp \
29 StreamIn.cpp \
30 StreamOut.cpp \
31
32LOCAL_SHARED_LIBRARIES := \
Yifan Hong6b920e42016-11-16 14:17:58 -080033 libhidlbase \
34 libhidltransport \
Mikhail Naganov10548292016-10-31 10:39:47 -070035 libhwbinder \
Eric Laurent7deb7da2016-12-15 19:15:45 -080036 libcutils \
Mikhail Naganov10548292016-10-31 10:39:47 -070037 libutils \
38 libhardware \
39 liblog \
40 android.hardware.audio@2.0 \
41 android.hardware.audio.common@2.0 \
42 android.hardware.audio.common@2.0-util \
43
44LOCAL_WHOLE_STATIC_LIBRARIES := libmedia_helper
45
46include $(BUILD_SHARED_LIBRARY)
47
48#
49# Service
50#
51
52include $(CLEAR_VARS)
Eric Laurent27ef4d82016-10-14 15:46:06 -070053LOCAL_MODULE := android.hardware.audio@2.0-service
54LOCAL_INIT_RC := android.hardware.audio@2.0-service.rc
55LOCAL_MODULE_RELATIVE_PATH := hw
56LOCAL_SRC_FILES := \
Mikhail Naganov10548292016-10-31 10:39:47 -070057 service.cpp
Eric Laurent27ef4d82016-10-14 15:46:06 -070058
59LOCAL_SHARED_LIBRARIES := \
Yifan Hong6b920e42016-11-16 14:17:58 -080060 libhidlbase \
61 libhidltransport \
Mikhail Naganov10548292016-10-31 10:39:47 -070062 liblog \
63 libhwbinder \
64 libutils \
65 libhardware \
66 android.hardware.audio@2.0 \
67 android.hardware.audio.common@2.0 \
68 android.hardware.audio.effect@2.0 \
69 android.hardware.soundtrigger@2.0 \
Eric Laurenta1745882016-11-21 10:41:22 -080070 android.hardware.broadcastradio@1.0
Eric Laurent27ef4d82016-10-14 15:46:06 -070071
72ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
73LOCAL_MULTILIB := 32
74else
75LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
76endif
77
78include $(BUILD_EXECUTABLE)