blob: 9cb56c7628f846168623b89e83ce5d02e969849c [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
Steven Morelanda0da1a12017-02-13 09:59:06 -080022LOCAL_PROPRIETARY_MODULE := true
Mikhail Naganov10548292016-10-31 10:39:47 -070023LOCAL_SRC_FILES := \
24 Conversions.cpp \
25 Device.cpp \
26 DevicesFactory.cpp \
27 ParametersUtil.cpp \
28 PrimaryDevice.cpp \
29 Stream.cpp \
30 StreamIn.cpp \
31 StreamOut.cpp \
32
33LOCAL_SHARED_LIBRARIES := \
Mikhail Naganovb29438e2016-12-22 09:21:34 -080034 libbase \
35 libcutils \
36 libfmq \
37 libhardware \
Yifan Hong6b920e42016-11-16 14:17:58 -080038 libhidlbase \
39 libhidltransport \
Mikhail Naganov10548292016-10-31 10:39:47 -070040 libhwbinder \
Mikhail Naganov10548292016-10-31 10:39:47 -070041 liblog \
Mikhail Naganovb29438e2016-12-22 09:21:34 -080042 libutils \
Mikhail Naganov10548292016-10-31 10:39:47 -070043 android.hardware.audio@2.0 \
44 android.hardware.audio.common@2.0 \
45 android.hardware.audio.common@2.0-util \
46
47LOCAL_WHOLE_STATIC_LIBRARIES := libmedia_helper
48
49include $(BUILD_SHARED_LIBRARY)
50
51#
52# Service
53#
54
55include $(CLEAR_VARS)
Eric Laurent27ef4d82016-10-14 15:46:06 -070056LOCAL_MODULE := android.hardware.audio@2.0-service
57LOCAL_INIT_RC := android.hardware.audio@2.0-service.rc
58LOCAL_MODULE_RELATIVE_PATH := hw
Steven Morelanda0da1a12017-02-13 09:59:06 -080059LOCAL_PROPRIETARY_MODULE := true
Eric Laurent27ef4d82016-10-14 15:46:06 -070060LOCAL_SRC_FILES := \
Mikhail Naganov10548292016-10-31 10:39:47 -070061 service.cpp
Eric Laurent27ef4d82016-10-14 15:46:06 -070062
63LOCAL_SHARED_LIBRARIES := \
Yifan Hong6b920e42016-11-16 14:17:58 -080064 libhidlbase \
65 libhidltransport \
Mikhail Naganov10548292016-10-31 10:39:47 -070066 liblog \
67 libhwbinder \
68 libutils \
69 libhardware \
70 android.hardware.audio@2.0 \
71 android.hardware.audio.common@2.0 \
72 android.hardware.audio.effect@2.0 \
73 android.hardware.soundtrigger@2.0 \
Eric Laurenta1745882016-11-21 10:41:22 -080074 android.hardware.broadcastradio@1.0
Eric Laurent27ef4d82016-10-14 15:46:06 -070075
76ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
77LOCAL_MULTILIB := 32
78else
79LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
80endif
81
82include $(BUILD_EXECUTABLE)