Android.mk revision 73e17f219e9ebcf45d6bc471b00b981428a4bc62
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 3373e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurentifeq ($(ENABLE_TREBLE),true) 3473e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent# Treble configuration 3573e17f219e9ebcf45d6bc471b00b981428a4bc62Eric LaurentLOCAL_CFLAGS += -DENABLE_TREBLE 3673e17f219e9ebcf45d6bc471b00b981428a4bc62Eric LaurentLOCAL_SRC_FILES += \ 3773e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent HidlUtils.cpp \ 3873e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent RadioHalHidl.cpp 3973e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent 4073e17f219e9ebcf45d6bc471b00b981428a4bc62Eric LaurentLOCAL_SHARED_LIBRARIES += \ 4173e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent libhwbinder \ 4273e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent libhidl \ 4373e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent libbase \ 4473e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent android.hardware.broadcastradio@1.0 4573e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurentelse 4673e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent# libhardware configuration 4773e17f219e9ebcf45d6bc471b00b981428a4bc62Eric LaurentLOCAL_SRC_FILES += \ 4873e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent RadioHalLegacy.cpp 4973e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurentendif 5073e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent 5173e17f219e9ebcf45d6bc471b00b981428a4bc62Eric Laurent 521395874b91ddcd29e36d2bb6b86567f6f2319efcAurimas LiutikasLOCAL_CFLAGS += -Wall -Wextra -Werror 531395874b91ddcd29e36d2bb6b86567f6f2319efcAurimas Liutikas 548fa2697e21c61998f78c346251d2c08f77d720eaAndy HungLOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) 558fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung 564e09069a29fc18d0799808cc26f71e9b068e98adEric LaurentLOCAL_MODULE:= libradioservice 574e09069a29fc18d0799808cc26f71e9b068e98adEric Laurent 584e09069a29fc18d0799808cc26f71e9b068e98adEric Laurentinclude $(BUILD_SHARED_LIBRARY) 59