1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES := \
6	main_audioserver.cpp \
7
8LOCAL_SHARED_LIBRARIES := \
9	libaaudioservice \
10	libaudioflinger \
11	libaudiopolicyservice \
12	libbinder \
13	libcutils \
14	liblog \
15	libhidlbase \
16	libhidltransport \
17	libhwbinder \
18	libmedia \
19	libmedialogservice \
20	libmediautils \
21	libnbaio \
22	libnblog \
23	libsoundtriggerservice \
24	libutils \
25	libvibrator
26
27# TODO oboeservice is the old folder name for aaudioservice. It will be changed.
28LOCAL_C_INCLUDES := \
29	frameworks/av/services/audioflinger \
30	frameworks/av/services/audiopolicy \
31	frameworks/av/services/audiopolicy/common/managerdefinitions/include \
32	frameworks/av/services/audiopolicy/common/include \
33	frameworks/av/services/audiopolicy/engine/interface \
34	frameworks/av/services/audiopolicy/service \
35	frameworks/av/services/medialog \
36	frameworks/av/services/oboeservice \
37	frameworks/av/services/radio \
38	frameworks/av/services/soundtrigger \
39	frameworks/av/media/libaaudio/include \
40	frameworks/av/media/libaaudio/src \
41	frameworks/av/media/libaaudio/src/binding \
42	frameworks/av/media/libmedia \
43	$(call include-path-for, audio-utils) \
44	external/sonic \
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 primary target audioserver.
58
59LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
60
61LOCAL_MODULE := audioserver
62
63LOCAL_INIT_RC := audioserver.rc
64
65LOCAL_CFLAGS := -Werror -Wall
66
67include $(BUILD_EXECUTABLE)
68