Eric Laurent | 4e09069 | 2015-03-05 15:12:40 -0800 | [diff] [blame] | 1 | # Copyright 2014 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
| 17 | include $(CLEAR_VARS) |
| 18 | |
| 19 | |
Eric Laurent | 73e17f2 | 2016-11-21 10:40:36 -0800 | [diff] [blame] | 20 | LOCAL_SRC_FILES:= \ |
| 21 | RadioService.cpp |
Eric Laurent | 4e09069 | 2015-03-05 15:12:40 -0800 | [diff] [blame] | 22 | |
| 23 | LOCAL_SHARED_LIBRARIES:= \ |
Eric Laurent | 4e09069 | 2015-03-05 15:12:40 -0800 | [diff] [blame] | 24 | liblog \ |
| 25 | libutils \ |
| 26 | libbinder \ |
| 27 | libcutils \ |
Marco Nelissen | 538ec5e | 2016-11-02 13:21:22 -0700 | [diff] [blame] | 28 | libaudioclient \ |
Eric Laurent | 4e09069 | 2015-03-05 15:12:40 -0800 | [diff] [blame] | 29 | libhardware \ |
| 30 | libradio \ |
| 31 | libradio_metadata |
| 32 | |
Mikhail Naganov | 9dc1747 | 2017-01-11 11:15:28 -0800 | [diff] [blame] | 33 | ifeq ($(USE_LEGACY_LOCAL_AUDIO_HAL),true) |
| 34 | # libhardware configuration |
| 35 | LOCAL_SRC_FILES += \ |
| 36 | RadioHalLegacy.cpp |
| 37 | else |
Eric Laurent | 73e17f2 | 2016-11-21 10:40:36 -0800 | [diff] [blame] | 38 | # Treble configuration |
Mikhail Naganov | 9dc1747 | 2017-01-11 11:15:28 -0800 | [diff] [blame] | 39 | |
Eric Laurent | 73e17f2 | 2016-11-21 10:40:36 -0800 | [diff] [blame] | 40 | LOCAL_SRC_FILES += \ |
| 41 | HidlUtils.cpp \ |
| 42 | RadioHalHidl.cpp |
| 43 | |
| 44 | LOCAL_SHARED_LIBRARIES += \ |
| 45 | libhwbinder \ |
Eric Laurent | 475d583 | 2016-11-21 12:00:11 -0800 | [diff] [blame] | 46 | libhidlbase \ |
| 47 | libhidltransport \ |
Eric Laurent | 73e17f2 | 2016-11-21 10:40:36 -0800 | [diff] [blame] | 48 | libbase \ |
Mikhail Naganov | d621ac8 | 2017-01-12 17:17:45 -0800 | [diff] [blame] | 49 | libaudiohal \ |
Eric Laurent | 73e17f2 | 2016-11-21 10:40:36 -0800 | [diff] [blame] | 50 | android.hardware.broadcastradio@1.0 |
Eric Laurent | 73e17f2 | 2016-11-21 10:40:36 -0800 | [diff] [blame] | 51 | endif |
| 52 | |
Aurimas Liutikas | 1395874 | 2016-02-18 10:02:35 -0800 | [diff] [blame] | 53 | LOCAL_CFLAGS += -Wall -Wextra -Werror |
| 54 | |
Andy Hung | 8fa2697 | 2016-03-03 13:19:27 -0800 | [diff] [blame] | 55 | LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) |
| 56 | |
Eric Laurent | 4e09069 | 2015-03-05 15:12:40 -0800 | [diff] [blame] | 57 | LOCAL_MODULE:= libradioservice |
| 58 | |
| 59 | include $(BUILD_SHARED_LIBRARY) |