blob: 5ce179841e2d3b90dc1b989f060faafcc53b3f6c [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 \
14 libmedia \
Glenn Kastenae0cff12016-02-24 13:57:49 -080015 libmedialogservice \
16 libnbaio \
Marco Nelissendcb346b2015-09-09 10:47:29 -070017 libradioservice \
18 libsoundtriggerservice \
Glenn Kastenae0cff12016-02-24 13:57:49 -080019 libutils
Marco Nelissendcb346b2015-09-09 10:47:29 -070020
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 \
Glenn Kastenae0cff12016-02-24 13:57:49 -080028 frameworks/av/services/medialog \
Marco Nelissendcb346b2015-09-09 10:47:29 -070029 frameworks/av/services/radio \
30 frameworks/av/services/soundtrigger \
31 $(call include-path-for, audio-utils) \
32 external/sonic \
33
Andy Hung8fa26972016-03-03 13:19:27 -080034# 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
Marco Nelissendcb346b2015-09-09 10:47:29 -070053LOCAL_MODULE := audioserver
Marco Nelissendcb346b2015-09-09 10:47:29 -070054
55LOCAL_INIT_RC := audioserver.rc
56
Glenn Kastene875c802016-03-18 14:52:27 -070057LOCAL_CFLAGS := -Werror -Wall
58
Marco Nelissendcb346b2015-09-09 10:47:29 -070059include $(BUILD_EXECUTABLE)