blob: 70fa75056dc3c619f0e81c276117c635673d0354 [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 \
47
Steven Morelanda8a9cc62017-04-17 14:35:45 -070048LOCAL_HEADER_LIBRARIES := \
49 libaudioclient_headers \
50 libaudio_system_headers \
51 libhardware_headers \
52 libmedia_headers \
53
Mikhail Naganov10548292016-10-31 10:39:47 -070054LOCAL_WHOLE_STATIC_LIBRARIES := libmedia_helper
55
56include $(BUILD_SHARED_LIBRARY)
57
58#
59# Service
60#
61
62include $(CLEAR_VARS)
Eric Laurent27ef4d82016-10-14 15:46:06 -070063LOCAL_MODULE := android.hardware.audio@2.0-service
64LOCAL_INIT_RC := android.hardware.audio@2.0-service.rc
65LOCAL_MODULE_RELATIVE_PATH := hw
Steven Morelanda0da1a12017-02-13 09:59:06 -080066LOCAL_PROPRIETARY_MODULE := true
Eric Laurent27ef4d82016-10-14 15:46:06 -070067LOCAL_SRC_FILES := \
Mikhail Naganov10548292016-10-31 10:39:47 -070068 service.cpp
Eric Laurent27ef4d82016-10-14 15:46:06 -070069
Chih-Hung Hsiehb38c1ae2017-11-20 15:36:52 -080070LOCAL_CFLAGS := -Wall -Werror
71
Eric Laurent27ef4d82016-10-14 15:46:06 -070072LOCAL_SHARED_LIBRARIES := \
Yifan Hong6b920e42016-11-16 14:17:58 -080073 libhidlbase \
74 libhidltransport \
Mikhail Naganov10548292016-10-31 10:39:47 -070075 liblog \
Mikhail Naganov10548292016-10-31 10:39:47 -070076 libutils \
77 libhardware \
78 android.hardware.audio@2.0 \
79 android.hardware.audio.common@2.0 \
80 android.hardware.audio.effect@2.0 \
81 android.hardware.soundtrigger@2.0 \
Tomasz Wasilczyk213170b2017-02-07 17:38:21 -080082 android.hardware.broadcastradio@1.0 \
83 android.hardware.broadcastradio@1.1
Eric Laurent27ef4d82016-10-14 15:46:06 -070084
85ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
86LOCAL_MULTILIB := 32
87else
88LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
89endif
90
Tomasz Wasilczyk213170b2017-02-07 17:38:21 -080091ifeq ($(TARGET_USES_BCRADIO_FUTURE_FEATURES),true)
92LOCAL_CFLAGS += -DTARGET_USES_BCRADIO_FUTURE_FEATURES
93endif
94
Eric Laurent27ef4d82016-10-14 15:46:06 -070095include $(BUILD_EXECUTABLE)