blob: 8a97299eb002eb3a53b3b395d028877162f7888d [file] [log] [blame]
Marco Nelissendcb346b2015-09-09 10:47:29 -07001LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES := \
Ivan Lozanoff6900d2017-08-01 15:47:38 -07006 main_audioserver.cpp \
7 ../libaudioclient/aidl/android/media/IAudioRecord.aidl
Marco Nelissendcb346b2015-09-09 10:47:29 -07008
9LOCAL_SHARED_LIBRARIES := \
Phil Burk7f6b40d2017-02-09 13:18:38 -080010 libaaudioservice \
Marco Nelissendcb346b2015-09-09 10:47:29 -070011 libaudioflinger \
12 libaudiopolicyservice \
13 libbinder \
Glenn Kastenae0cff12016-02-24 13:57:49 -080014 libcutils \
Marco Nelissendcb346b2015-09-09 10:47:29 -070015 liblog \
Mikhail Naganov00a21a32017-11-16 08:57:44 -080016 libhidltransport \
17 libhwbinder \
Andy Hung21052712017-12-07 11:45:37 -080018 libmedia \
Glenn Kastenae0cff12016-02-24 13:57:49 -080019 libmedialogservice \
Nicolas Roulet40a44982017-02-03 13:39:57 -080020 libnbaio \
Marco Nelissendcb346b2015-09-09 10:47:29 -070021 libsoundtriggerservice \
Mikhail Naganovbf1c3e02017-11-16 08:40:51 -080022 libutils
Marco Nelissendcb346b2015-09-09 10:47:29 -070023
Eric Tan1882f162018-08-02 18:05:39 -070024LOCAL_STATIC_LIBRARIES := \
25 libjsoncpp
26
Phil Burk7f6b40d2017-02-09 13:18:38 -080027# TODO oboeservice is the old folder name for aaudioservice. It will be changed.
Marco Nelissendcb346b2015-09-09 10:47:29 -070028LOCAL_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 \
Glenn Kastenae0cff12016-02-24 13:57:49 -080035 frameworks/av/services/medialog \
Phil Burk7f6b40d2017-02-09 13:18:38 -080036 frameworks/av/services/oboeservice \
Marco Nelissendcb346b2015-09-09 10:47:29 -070037 frameworks/av/services/radio \
38 frameworks/av/services/soundtrigger \
Phil Burk7f6b40d2017-02-09 13:18:38 -080039 frameworks/av/media/libaaudio/include \
40 frameworks/av/media/libaaudio/src \
41 frameworks/av/media/libaaudio/src/binding \
Andy Hung21052712017-12-07 11:45:37 -080042 frameworks/av/media/libmedia \
Marco Nelissendcb346b2015-09-09 10:47:29 -070043 $(call include-path-for, audio-utils) \
44 external/sonic \
45
Ivan Lozanoff6900d2017-08-01 15:47:38 -070046LOCAL_AIDL_INCLUDES := \
47 frameworks/av/media/libaudioclient/aidl
48
Andy Hung8fa26972016-03-03 13:19:27 -080049# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control
50# the LOCAL_MULTILIB for all audioserver exclusive libraries.
51# This is relevant for 64 bit architectures where either or both
52# 32 and 64 bit libraries may be built.
53#
54# AUDIOSERVER_MULTILIB may be set as follows:
55# 32 to build 32 bit audioserver libraries and 32 bit audioserver.
56# 64 to build 64 bit audioserver libraries and 64 bit audioserver.
57# both to build both 32 bit and 64 bit libraries,
58# and use primary target architecture (32 or 64) for audioserver.
59# first to build libraries and audioserver for the primary target architecture only.
60# <empty> to build both 32 and 64 bit libraries and 32 bit audioserver.
61
62ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
63LOCAL_MULTILIB := 32
64else
65LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
66endif
67
Marco Nelissendcb346b2015-09-09 10:47:29 -070068LOCAL_MODULE := audioserver
Marco Nelissendcb346b2015-09-09 10:47:29 -070069
70LOCAL_INIT_RC := audioserver.rc
71
Glenn Kastene875c802016-03-18 14:52:27 -070072LOCAL_CFLAGS := -Werror -Wall
73
Marco Nelissendcb346b2015-09-09 10:47:29 -070074include $(BUILD_EXECUTABLE)