14e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# Copyright 2014 The Android Open Source Project 24e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# 34e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# Licensed under the Apache License, Version 2.0 (the "License"); 44e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# you may not use this file except in compliance with the License. 54e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# You may obtain a copy of the License at 64e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# 74e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# http://www.apache.org/licenses/LICENSE-2.0 84e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# 94e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# Unless required by applicable law or agreed to in writing, software 104e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# distributed under the License is distributed on an "AS IS" BASIS, 114e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 124e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# See the License for the specific language governing permissions and 134e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent# limitations under the License. 144e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent 154e09069a29fc18d0799808cc26f71e9b068e98adEric LaurentLOCAL_PATH:= $(call my-dir) 164e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent 174e09069a29fc18d0799808cc26f71e9b068e98adEric Laurentinclude $(CLEAR_VARS) 184e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent 194e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent 2073e17f219e9ebcf45d6bc471b00b981428a4bc62Eric LaurentLOCAL_SRC_FILES:= \ 2173e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent RadioService.cpp 224e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent 234e09069a29fc18d0799808cc26f71e9b068e98adEric LaurentLOCAL_SHARED_LIBRARIES:= \ 244e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent liblog \ 254e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent libutils \ 264e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent libbinder \ 274e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent libcutils \ 28538ec5e04f389cba637b030757be317fcb8677a8Marco Nelissen libaudioclient \ 294e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent libhardware \ 304e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent libradio \ 314e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent libradio_metadata 324e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent 339dc1747e214a3d4b3c08e8c1f3d7982ef5108162Mikhail Naganovifeq ($(USE_LEGACY_LOCAL_AUDIO_HAL),true) 349dc1747e214a3d4b3c08e8c1f3d7982ef5108162Mikhail Naganov# libhardware configuration 359dc1747e214a3d4b3c08e8c1f3d7982ef5108162Mikhail NaganovLOCAL_SRC_FILES += \ 369dc1747e214a3d4b3c08e8c1f3d7982ef5108162Mikhail Naganov RadioHalLegacy.cpp 379dc1747e214a3d4b3c08e8c1f3d7982ef5108162Mikhail Naganovelse 3873e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent# Treble configuration 399dc1747e214a3d4b3c08e8c1f3d7982ef5108162Mikhail Naganov 4073e17f219e9ebcf45d6bc471b00b981428a4bc62Eric LaurentLOCAL_SRC_FILES += \ 4173e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent HidlUtils.cpp \ 4273e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent RadioHalHidl.cpp 4373e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent 4473e17f219e9ebcf45d6bc471b00b981428a4bc62Eric LaurentLOCAL_SHARED_LIBRARIES += \ 4573e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent libhwbinder \ 46475d5837cd0d5cce89b0a43cb1e7939583f3a7a5Eric Laurent libhidlbase \ 47475d5837cd0d5cce89b0a43cb1e7939583f3a7a5Eric Laurent libhidltransport \ 4873e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent libbase \ 49d621ac82e648c8ef395068edb1af2747f49b700aMikhail Naganov libaudiohal \ 5073e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent android.hardware.broadcastradio@1.0 5173e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurentendif 5273e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent 531395874b91ddcd29e36d2bb6b86567f6f2319efcAurimas LiutikasLOCAL_CFLAGS += -Wall -Wextra -Werror 541395874b91ddcd29e36d2bb6b86567f6f2319efcAurimas Liutikas 558fa2697e21c61998f78c346251d2c08f77d720eaAndy HungLOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) 568fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung 574e09069a29fc18d0799808cc26f71e9b068e98adEric LaurentLOCAL_MODULE:= libradioservice 584e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent 594e09069a29fc18d0799808cc26f71e9b068e98adEric Laurentinclude $(BUILD_SHARED_LIBRARY) 60