blob: ccf3c1c42fd48a2cac3e09d54e4c334057559b5c [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
Chih-Hung Hsiehb38c1ae2017-11-20 15:36:52 -080033LOCAL_CFLAGS := -Wall -Werror
34
Mikhail Naganov10548292016-10-31 10:39:47 -070035LOCAL_SHARED_LIBRARIES := \
Mikhail Naganovb29438e2016-12-22 09:21:34 -080036 libbase \
37 libcutils \
38 libfmq \
39 libhardware \
Yifan Hong6b920e42016-11-16 14:17:58 -080040 libhidlbase \
41 libhidltransport \
Mikhail Naganov10548292016-10-31 10:39:47 -070042 liblog \
Mikhail Naganovb29438e2016-12-22 09:21:34 -080043 libutils \
Mikhail Naganov10548292016-10-31 10:39:47 -070044 android.hardware.audio@2.0 \
45 android.hardware.audio.common@2.0 \
46 android.hardware.audio.common@2.0-util \
Kevin Rocard6891d7e2017-12-14 18:39:39 -080047 android.hardware.audio.common-util \
Mikhail Naganov10548292016-10-31 10:39:47 -070048
Steven Morelanda8a9cc62017-04-17 14:35:45 -070049LOCAL_HEADER_LIBRARIES := \
50 libaudioclient_headers \
51 libaudio_system_headers \
52 libhardware_headers \
53 libmedia_headers \
54
Mikhail Naganov10548292016-10-31 10:39:47 -070055LOCAL_WHOLE_STATIC_LIBRARIES := libmedia_helper
56
57include $(BUILD_SHARED_LIBRARY)
58
59#
60# Service
61#
62
63include $(CLEAR_VARS)
Eric Laurent27ef4d82016-10-14 15:46:06 -070064LOCAL_MODULE := android.hardware.audio@2.0-service
65LOCAL_INIT_RC := android.hardware.audio@2.0-service.rc
66LOCAL_MODULE_RELATIVE_PATH := hw
Steven Morelanda0da1a12017-02-13 09:59:06 -080067LOCAL_PROPRIETARY_MODULE := true
Eric Laurent27ef4d82016-10-14 15:46:06 -070068LOCAL_SRC_FILES := \
Mikhail Naganov10548292016-10-31 10:39:47 -070069 service.cpp
Eric Laurent27ef4d82016-10-14 15:46:06 -070070
Chih-Hung Hsiehb38c1ae2017-11-20 15:36:52 -080071LOCAL_CFLAGS := -Wall -Werror
72
Eric Laurent27ef4d82016-10-14 15:46:06 -070073LOCAL_SHARED_LIBRARIES := \
Yifan Hong6b920e42016-11-16 14:17:58 -080074 libhidlbase \
75 libhidltransport \
Mikhail Naganov10548292016-10-31 10:39:47 -070076 liblog \
Mikhail Naganov10548292016-10-31 10:39:47 -070077 libutils \
78 libhardware \
79 android.hardware.audio@2.0 \
80 android.hardware.audio.common@2.0 \
81 android.hardware.audio.effect@2.0 \
Mikhail Naganov5697a9b2017-12-28 13:29:59 -080082 android.hardware.soundtrigger@2.1 \
Tomasz Wasilczyk213170b2017-02-07 17:38:21 -080083 android.hardware.broadcastradio@1.0 \
84 android.hardware.broadcastradio@1.1
Eric Laurent27ef4d82016-10-14 15:46:06 -070085
86ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
87LOCAL_MULTILIB := 32
88else
89LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
90endif
91
Eric Laurent27ef4d82016-10-14 15:46:06 -070092include $(BUILD_EXECUTABLE)