1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_SRC_FILES := \ 6 main_audioserver.cpp 7 8LOCAL_SHARED_LIBRARIES := \ 9 libaudioflinger \ 10 libaudiopolicyservice \ 11 libbinder \ 12 libcutils \ 13 liblog \ 14 libmedia \ 15 libmedialogservice \ 16 libnbaio \ 17 libradioservice \ 18 libsoundtriggerservice \ 19 libutils 20 21LOCAL_C_INCLUDES := \ 22 frameworks/av/services/audioflinger \ 23 frameworks/av/services/audiopolicy \ 24 frameworks/av/services/audiopolicy/common/managerdefinitions/include \ 25 frameworks/av/services/audiopolicy/common/include \ 26 frameworks/av/services/audiopolicy/engine/interface \ 27 frameworks/av/services/audiopolicy/service \ 28 frameworks/av/services/medialog \ 29 frameworks/av/services/radio \ 30 frameworks/av/services/soundtrigger \ 31 $(call include-path-for, audio-utils) \ 32 external/sonic \ 33 34# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control 35# the LOCAL_MULTILIB for all audioserver exclusive libraries. 36# This is relevant for 64 bit architectures where either or both 37# 32 and 64 bit libraries may be built. 38# 39# AUDIOSERVER_MULTILIB may be set as follows: 40# 32 to build 32 bit audioserver libraries and 32 bit audioserver. 41# 64 to build 64 bit audioserver libraries and 64 bit audioserver. 42# both to build both 32 bit and 64 bit libraries, 43# and use primary target architecture (32 or 64) for audioserver. 44# first to build libraries and audioserver for the primary target architecture only. 45# <empty> to build both 32 and 64 bit libraries and 32 bit audioserver. 46 47ifeq ($(strip $(AUDIOSERVER_MULTILIB)),) 48LOCAL_MULTILIB := 32 49else 50LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) 51endif 52 53LOCAL_MODULE := audioserver 54 55LOCAL_INIT_RC := audioserver.rc 56 57LOCAL_CFLAGS := -Werror -Wall 58 59include $(BUILD_EXECUTABLE) 60