• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES := \
6	main_audioserver.cpp
7
8LOCAL_SHARED_LIBRARIES := \
9	libaaudioservice \
10	libaudioflinger \
11	libaudiopolicyservice \
12	libbinder \
13	libcutils \
14	liblog \
15	libmedialogservice \
16	libnbaio \
17	libsoundtriggerservice \
18	libutils \
19	libhwbinder
20
21# TODO oboeservice is the old folder name for aaudioservice. It will be changed.
22LOCAL_C_INCLUDES := \
23	frameworks/av/services/audioflinger \
24	frameworks/av/services/audiopolicy \
25	frameworks/av/services/audiopolicy/common/managerdefinitions/include \
26	frameworks/av/services/audiopolicy/common/include \
27	frameworks/av/services/audiopolicy/engine/interface \
28	frameworks/av/services/audiopolicy/service \
29	frameworks/av/services/medialog \
30	frameworks/av/services/oboeservice \
31	frameworks/av/services/radio \
32	frameworks/av/services/soundtrigger \
33	frameworks/av/media/libaaudio/include \
34	frameworks/av/media/libaaudio/src \
35	frameworks/av/media/libaaudio/src/binding \
36	$(call include-path-for, audio-utils) \
37	external/sonic \
38
39# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control
40# the LOCAL_MULTILIB for all audioserver exclusive libraries.
41# This is relevant for 64 bit architectures where either or both
42# 32 and 64 bit libraries may be built.
43#
44# AUDIOSERVER_MULTILIB may be set as follows:
45#   32      to build 32 bit audioserver libraries and 32 bit audioserver.
46#   64      to build 64 bit audioserver libraries and 64 bit audioserver.
47#   both    to build both 32 bit and 64 bit libraries,
48#           and use primary target architecture (32 or 64) for audioserver.
49#   first   to build libraries and audioserver for the primary target architecture only.
50#   <empty> to build both 32 and 64 bit libraries and 32 bit audioserver.
51
52ifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
53LOCAL_MULTILIB := 32
54else
55LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
56endif
57
58LOCAL_MODULE := audioserver
59
60LOCAL_INIT_RC := audioserver.rc
61
62LOCAL_CFLAGS := -Werror -Wall
63
64include $(BUILD_EXECUTABLE)
65