blob: 7dc4e1dd2dcb4f5ac7eb3823b9c6a1493ed0a78e [file] [log] [blame]
Marco Nelissendcb346b2015-09-09 10:47:29 -07001LOCAL_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 \
Glenn Kastenae0cff12016-02-24 13:57:49 -080012 libcutils \
Marco Nelissendcb346b2015-09-09 10:47:29 -070013 liblog \
Glenn Kastenae0cff12016-02-24 13:57:49 -080014 libmedialogservice \
Marco Nelissendcb346b2015-09-09 10:47:29 -070015 libradioservice \
16 libsoundtriggerservice \
Eric Laurente2afa1e2016-12-16 16:30:28 -080017 libutils \
18 libhwbinder
Marco Nelissendcb346b2015-09-09 10:47:29 -070019
20LOCAL_C_INCLUDES := \
21 frameworks/av/services/audioflinger \
22 frameworks/av/services/audiopolicy \
23 frameworks/av/services/audiopolicy/common/managerdefinitions/include \
24 frameworks/av/services/audiopolicy/common/include \
25 frameworks/av/services/audiopolicy/engine/interface \
26 frameworks/av/services/audiopolicy/service \
Glenn Kastenae0cff12016-02-24 13:57:49 -080027 frameworks/av/services/medialog \
Marco Nelissendcb346b2015-09-09 10:47:29 -070028 frameworks/av/services/radio \
29 frameworks/av/services/soundtrigger \
30 $(call include-path-for, audio-utils) \
31 external/sonic \
32
Andy Hung8fa26972016-03-03 13:19:27 -080033# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control
34# the LOCAL_MULTILIB for all audioserver exclusive libraries.
35# This is relevant for 64 bit architectures where either or both
36# 32 and 64 bit libraries may be built.
37#
38# AUDIOSERVER_MULTILIB may be set as follows:
39# 32 to build 32 bit audioserver libraries and 32 bit audioserver.
40# 64 to build 64 bit audioserver libraries and 64 bit audioserver.
41# both to build both 32 bit and 64 bit libraries,
42# and use primary target architecture (32 or 64) for audioserver.
43# first to build libraries and audioserver for the primary target architecture only.
44# <empty> to build both 32 and 64 bit libraries and 32 bit audioserver.
45
46ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
47LOCAL_MULTILIB := 32
48else
49LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
50endif
51
Marco Nelissendcb346b2015-09-09 10:47:29 -070052LOCAL_MODULE := audioserver
Marco Nelissendcb346b2015-09-09 10:47:29 -070053
54LOCAL_INIT_RC := audioserver.rc
55
Glenn Kastene875c802016-03-18 14:52:27 -070056LOCAL_CFLAGS := -Werror -Wall
57
Marco Nelissendcb346b2015-09-09 10:47:29 -070058include $(BUILD_EXECUTABLE)