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 |
| 22 | LOCAL_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 | |
| 32 | LOCAL_SHARED_LIBRARIES := \ |
Mikhail Naganov | b29438e | 2016-12-22 09:21:34 -0800 | [diff] [blame] | 33 | libbase \ |
| 34 | libcutils \ |
| 35 | libfmq \ |
| 36 | libhardware \ |
Yifan Hong | 6b920e4 | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 37 | libhidlbase \ |
| 38 | libhidltransport \ |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 39 | libhwbinder \ |
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 | |
| 46 | LOCAL_WHOLE_STATIC_LIBRARIES := libmedia_helper |
| 47 | |
| 48 | include $(BUILD_SHARED_LIBRARY) |
| 49 | |
| 50 | # |
| 51 | # Service |
| 52 | # |
| 53 | |
| 54 | include $(CLEAR_VARS) |
Eric Laurent | 27ef4d8 | 2016-10-14 15:46:06 -0700 | [diff] [blame] | 55 | LOCAL_MODULE := android.hardware.audio@2.0-service |
| 56 | LOCAL_INIT_RC := android.hardware.audio@2.0-service.rc |
| 57 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 58 | LOCAL_SRC_FILES := \ |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 59 | service.cpp |
Eric Laurent | 27ef4d8 | 2016-10-14 15:46:06 -0700 | [diff] [blame] | 60 | |
| 61 | LOCAL_SHARED_LIBRARIES := \ |
Yifan Hong | 6b920e4 | 2016-11-16 14:17:58 -0800 | [diff] [blame] | 62 | libhidlbase \ |
| 63 | libhidltransport \ |
Mikhail Naganov | 1054829 | 2016-10-31 10:39:47 -0700 | [diff] [blame] | 64 | liblog \ |
| 65 | libhwbinder \ |
| 66 | libutils \ |
| 67 | libhardware \ |
| 68 | android.hardware.audio@2.0 \ |
| 69 | android.hardware.audio.common@2.0 \ |
| 70 | android.hardware.audio.effect@2.0 \ |
| 71 | android.hardware.soundtrigger@2.0 \ |
Eric Laurent | a174588 | 2016-11-21 10:41:22 -0800 | [diff] [blame] | 72 | android.hardware.broadcastradio@1.0 |
Eric Laurent | 27ef4d8 | 2016-10-14 15:46:06 -0700 | [diff] [blame] | 73 | |
| 74 | ifeq ($(strip $(AUDIOSERVER_MULTILIB)),) |
| 75 | LOCAL_MULTILIB := 32 |
| 76 | else |
| 77 | LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) |
| 78 | endif |
| 79 | |
| 80 | include $(BUILD_EXECUTABLE) |