blob: afd1189f4a3810d7eb4b50001f166ea872da1f1b [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 := \
Phil Burk7f6b40d2017-02-09 13:18:38 -08009 libaaudioservice \
Marco Nelissendcb346b2015-09-09 10:47:29 -070010 libaudioflinger \
11 libaudiopolicyservice \
12 libbinder \
Glenn Kastenae0cff12016-02-24 13:57:49 -080013 libcutils \
Marco Nelissendcb346b2015-09-09 10:47:29 -070014 liblog \
Glenn Kastenae0cff12016-02-24 13:57:49 -080015 libmedialogservice \
Nicolas Roulet40a44982017-02-03 13:39:57 -080016 libnbaio \
Marco Nelissendcb346b2015-09-09 10:47:29 -070017 libradioservice \
18 libsoundtriggerservice \
Eric Laurente2afa1e2016-12-16 16:30:28 -080019 libutils \
20 libhwbinder
Marco Nelissendcb346b2015-09-09 10:47:29 -070021
Phil Burk7f6b40d2017-02-09 13:18:38 -080022# TODO oboeservice is the old folder name for aaudioservice. It will be changed.
Marco Nelissendcb346b2015-09-09 10:47:29 -070023LOCAL_C_INCLUDES := \
24 frameworks/av/services/audioflinger \
25 frameworks/av/services/audiopolicy \
26 frameworks/av/services/audiopolicy/common/managerdefinitions/include \
27 frameworks/av/services/audiopolicy/common/include \
28 frameworks/av/services/audiopolicy/engine/interface \
29 frameworks/av/services/audiopolicy/service \
Glenn Kastenae0cff12016-02-24 13:57:49 -080030 frameworks/av/services/medialog \
Phil Burk7f6b40d2017-02-09 13:18:38 -080031 frameworks/av/services/oboeservice \
Marco Nelissendcb346b2015-09-09 10:47:29 -070032 frameworks/av/services/radio \
33 frameworks/av/services/soundtrigger \
Phil Burk7f6b40d2017-02-09 13:18:38 -080034 frameworks/av/media/libaaudio/include \
35 frameworks/av/media/libaaudio/src \
36 frameworks/av/media/libaaudio/src/binding \
Marco Nelissendcb346b2015-09-09 10:47:29 -070037 $(call include-path-for, audio-utils) \
38 external/sonic \
39
Andy Hung8fa26972016-03-03 13:19:27 -080040# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control
41# the LOCAL_MULTILIB for all audioserver exclusive libraries.
42# This is relevant for 64 bit architectures where either or both
43# 32 and 64 bit libraries may be built.
44#
45# AUDIOSERVER_MULTILIB may be set as follows:
46# 32 to build 32 bit audioserver libraries and 32 bit audioserver.
47# 64 to build 64 bit audioserver libraries and 64 bit audioserver.
48# both to build both 32 bit and 64 bit libraries,
49# and use primary target architecture (32 or 64) for audioserver.
50# first to build libraries and audioserver for the primary target architecture only.
51# <empty> to build both 32 and 64 bit libraries and 32 bit audioserver.
52
53ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
54LOCAL_MULTILIB := 32
55else
56LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
57endif
58
Marco Nelissendcb346b2015-09-09 10:47:29 -070059LOCAL_MODULE := audioserver
Marco Nelissendcb346b2015-09-09 10:47:29 -070060
61LOCAL_INIT_RC := audioserver.rc
62
Glenn Kastene875c802016-03-18 14:52:27 -070063LOCAL_CFLAGS := -Werror -Wall
64
Marco Nelissendcb346b2015-09-09 10:47:29 -070065include $(BUILD_EXECUTABLE)