blob: 1b50dc38cb925e107454656ffef35a89153549c0 [file] [log] [blame]
Eric Laurent4e090692015-03-05 15:12:40 -08001# 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
15LOCAL_PATH:= $(call my-dir)
16
17include $(CLEAR_VARS)
18
19
Eric Laurent73e17f22016-11-21 10:40:36 -080020LOCAL_SRC_FILES:= \
21 RadioService.cpp
Eric Laurent4e090692015-03-05 15:12:40 -080022
23LOCAL_SHARED_LIBRARIES:= \
Eric Laurent4e090692015-03-05 15:12:40 -080024 liblog \
25 libutils \
26 libbinder \
27 libcutils \
Marco Nelissen538ec5e2016-11-02 13:21:22 -070028 libaudioclient \
Eric Laurent4e090692015-03-05 15:12:40 -080029 libhardware \
30 libradio \
31 libradio_metadata
32
Mikhail Naganov9dc17472017-01-11 11:15:28 -080033ifeq ($(USE_LEGACY_LOCAL_AUDIO_HAL),true)
34# libhardware configuration
35LOCAL_SRC_FILES += \
36 RadioHalLegacy.cpp
37else
Eric Laurent73e17f22016-11-21 10:40:36 -080038# Treble configuration
Mikhail Naganov9dc17472017-01-11 11:15:28 -080039
Eric Laurent73e17f22016-11-21 10:40:36 -080040LOCAL_SRC_FILES += \
41 HidlUtils.cpp \
42 RadioHalHidl.cpp
43
44LOCAL_SHARED_LIBRARIES += \
45 libhwbinder \
Eric Laurent475d5832016-11-21 12:00:11 -080046 libhidlbase \
47 libhidltransport \
Eric Laurent73e17f22016-11-21 10:40:36 -080048 libbase \
Mikhail Naganovd621ac82017-01-12 17:17:45 -080049 libaudiohal \
Eric Laurent73e17f22016-11-21 10:40:36 -080050 android.hardware.broadcastradio@1.0
Eric Laurent73e17f22016-11-21 10:40:36 -080051endif
52
Aurimas Liutikas13958742016-02-18 10:02:35 -080053LOCAL_CFLAGS += -Wall -Wextra -Werror
54
Andy Hung8fa26972016-03-03 13:19:27 -080055LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
56
Eric Laurent4e090692015-03-05 15:12:40 -080057LOCAL_MODULE:= libradioservice
58
59include $(BUILD_SHARED_LIBRARY)