Eric Laurent | 27ef4d8 | 2016-10-14 15:46:06 -0700 | [diff] [blame] | 1 | # |
| 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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | include $(CLEAR_VARS) |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 20 | LOCAL_MODULE := android.hardware.audio@2.0-impl |
| 21 | LOCAL_MODULE_RELATIVE_PATH := hw |
Steven Moreland | a0da1a1 | 2017-02-13 09:59:06 -0800 | [diff] [blame] | 22 | LOCAL_PROPRIETARY_MODULE := true |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 23 | LOCAL_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 | |
| 33 | LOCAL_SHARED_LIBRARIES := \ |
Mikhail Naganov | b29438e | 2016-12-22 09:21:34 -0800 | [diff] [blame] | 34 | libbase \ |
| 35 | libcutils \ |
| 36 | libfmq \ |
| 37 | libhardware \ |
Yifan Hong | 6b920e4 | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 38 | libhidlbase \ |
| 39 | libhidltransport \ |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 40 | liblog \ |
Mikhail Naganov | b29438e | 2016-12-22 09:21:34 -0800 | [diff] [blame] | 41 | libutils \ |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 42 | android.hardware.audio@2.0 \ |
| 43 | android.hardware.audio.common@2.0 \ |
| 44 | android.hardware.audio.common@2.0-util \ |
| 45 | |
Steven Moreland | a8a9cc6 | 2017-04-17 14:35:45 -0700 | [diff] [blame] | 46 | LOCAL_HEADER_LIBRARIES := \ |
| 47 | libaudioclient_headers \ |
| 48 | libaudio_system_headers \ |
| 49 | libhardware_headers \ |
| 50 | libmedia_headers \ |
| 51 | |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 52 | LOCAL_WHOLE_STATIC_LIBRARIES := libmedia_helper |
| 53 | |
| 54 | include $(BUILD_SHARED_LIBRARY) |
| 55 | |
| 56 | # |
| 57 | # Service |
| 58 | # |
| 59 | |
| 60 | include $(CLEAR_VARS) |
Eric Laurent | 27ef4d8 | 2016-10-14 15:46:06 -0700 | [diff] [blame] | 61 | LOCAL_MODULE := android.hardware.audio@2.0-service |
| 62 | LOCAL_INIT_RC := android.hardware.audio@2.0-service.rc |
| 63 | LOCAL_MODULE_RELATIVE_PATH := hw |
Steven Moreland | a0da1a1 | 2017-02-13 09:59:06 -0800 | [diff] [blame] | 64 | LOCAL_PROPRIETARY_MODULE := true |
Eric Laurent | 27ef4d8 | 2016-10-14 15:46:06 -0700 | [diff] [blame] | 65 | LOCAL_SRC_FILES := \ |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 66 | service.cpp |
Eric Laurent | 27ef4d8 | 2016-10-14 15:46:06 -0700 | [diff] [blame] | 67 | |
| 68 | LOCAL_SHARED_LIBRARIES := \ |
Yifan Hong | 6b920e4 | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 69 | libhidlbase \ |
| 70 | libhidltransport \ |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 71 | liblog \ |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 72 | libutils \ |
| 73 | libhardware \ |
| 74 | android.hardware.audio@2.0 \ |
| 75 | android.hardware.audio.common@2.0 \ |
| 76 | android.hardware.audio.effect@2.0 \ |
| 77 | android.hardware.soundtrigger@2.0 \ |
Tomasz Wasilczyk | 213170b | 2017-02-07 17:38:21 -0800 | [diff] [blame] | 78 | android.hardware.broadcastradio@1.0 \ |
| 79 | android.hardware.broadcastradio@1.1 |
Eric Laurent | 27ef4d8 | 2016-10-14 15:46:06 -0700 | [diff] [blame] | 80 | |
| 81 | ifeq ($(strip $(AUDIOSERVER_MULTILIB)),) |
| 82 | LOCAL_MULTILIB := 32 |
| 83 | else |
| 84 | LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) |
| 85 | endif |
| 86 | |
Tomasz Wasilczyk | 213170b | 2017-02-07 17:38:21 -0800 | [diff] [blame] | 87 | ifeq ($(TARGET_USES_BCRADIO_FUTURE_FEATURES),true) |
| 88 | LOCAL_CFLAGS += -DTARGET_USES_BCRADIO_FUTURE_FEATURES |
| 89 | endif |
| 90 | |
Eric Laurent | 27ef4d8 | 2016-10-14 15:46:06 -0700 | [diff] [blame] | 91 | include $(BUILD_EXECUTABLE) |