blob: c620e7c46e7b6336bd2ccbdf40c5a83cb51de318 [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 \
Glenn Kastenae0cff12016-02-24 13:57:49 -080017 libutils
Marco Nelissendcb346b2015-09-09 10:47:29 -070018
19LOCAL_C_INCLUDES := \
20 frameworks/av/services/audioflinger \
21 frameworks/av/services/audiopolicy \
22 frameworks/av/services/audiopolicy/common/managerdefinitions/include \
23 frameworks/av/services/audiopolicy/common/include \
24 frameworks/av/services/audiopolicy/engine/interface \
25 frameworks/av/services/audiopolicy/service \
Glenn Kastenae0cff12016-02-24 13:57:49 -080026 frameworks/av/services/medialog \
Marco Nelissendcb346b2015-09-09 10:47:29 -070027 frameworks/av/services/radio \
28 frameworks/av/services/soundtrigger \
29 $(call include-path-for, audio-utils) \
30 external/sonic \
31
Andy Hung8fa26972016-03-03 13:19:27 -080032# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control
33# the LOCAL_MULTILIB for all audioserver exclusive libraries.
34# This is relevant for 64 bit architectures where either or both
35# 32 and 64 bit libraries may be built.
36#
37# AUDIOSERVER_MULTILIB may be set as follows:
38# 32 to build 32 bit audioserver libraries and 32 bit audioserver.
39# 64 to build 64 bit audioserver libraries and 64 bit audioserver.
40# both to build both 32 bit and 64 bit libraries,
41# and use primary target architecture (32 or 64) for audioserver.
42# first to build libraries and audioserver for the primary target architecture only.
43# <empty> to build both 32 and 64 bit libraries and 32 bit audioserver.
44
45ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
46LOCAL_MULTILIB := 32
47else
48LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
49endif
50
Marco Nelissendcb346b2015-09-09 10:47:29 -070051LOCAL_MODULE := audioserver
Marco Nelissendcb346b2015-09-09 10:47:29 -070052
53LOCAL_INIT_RC := audioserver.rc
54
Glenn Kastene875c802016-03-18 14:52:27 -070055LOCAL_CFLAGS := -Werror -Wall
56
Marco Nelissendcb346b2015-09-09 10:47:29 -070057include $(BUILD_EXECUTABLE)