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