Android.mk revision e2afa1eba5cdeaf4ca0c9f4613a1f2c0231bd86d
1dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco NelissenLOCAL_PATH:= $(call my-dir)
2dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen
3dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelisseninclude $(CLEAR_VARS)
4dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen
5dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco NelissenLOCAL_SRC_FILES := \
6dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	main_audioserver.cpp
7dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen
8dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco NelissenLOCAL_SHARED_LIBRARIES := \
9dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	libaudioflinger \
10dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	libaudiopolicyservice \
11dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	libbinder \
12ae0cff1d48b2cd10aeff9627398faf684894eeceGlenn Kasten	libcutils \
13dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	liblog \
14ae0cff1d48b2cd10aeff9627398faf684894eeceGlenn Kasten	libmedialogservice \
15dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	libradioservice \
16dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	libsoundtriggerservice \
17e2afa1eba5cdeaf4ca0c9f4613a1f2c0231bd86dEric Laurent	libutils \
18e2afa1eba5cdeaf4ca0c9f4613a1f2c0231bd86dEric Laurent	libhwbinder
19dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen
20dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco NelissenLOCAL_C_INCLUDES := \
21dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	frameworks/av/services/audioflinger \
22dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	frameworks/av/services/audiopolicy \
23dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	frameworks/av/services/audiopolicy/common/managerdefinitions/include \
24dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	frameworks/av/services/audiopolicy/common/include \
25dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	frameworks/av/services/audiopolicy/engine/interface \
26dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	frameworks/av/services/audiopolicy/service \
27ae0cff1d48b2cd10aeff9627398faf684894eeceGlenn Kasten	frameworks/av/services/medialog \
28dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	frameworks/av/services/radio \
29dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	frameworks/av/services/soundtrigger \
30dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	$(call include-path-for, audio-utils) \
31dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen	external/sonic \
32dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen
338fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung# If AUDIOSERVER_MULTILIB in device.mk is non-empty then it is used to control
348fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung# the LOCAL_MULTILIB for all audioserver exclusive libraries.
358fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung# This is relevant for 64 bit architectures where either or both
368fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung# 32 and 64 bit libraries may be built.
378fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung#
388fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung# AUDIOSERVER_MULTILIB may be set as follows:
398fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung#   32      to build 32 bit audioserver libraries and 32 bit audioserver.
408fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung#   64      to build 64 bit audioserver libraries and 64 bit audioserver.
418fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung#   both    to build both 32 bit and 64 bit libraries,
428fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung#           and use primary target architecture (32 or 64) for audioserver.
438fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung#   first   to build libraries and audioserver for the primary target architecture only.
448fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung#   <empty> to build both 32 and 64 bit libraries and 32 bit audioserver.
458fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung
468fa2697e21c61998f78c346251d2c08f77d720eaAndy Hungifeq ($(strip $(AUDIOSERVER_MULTILIB)),)
478fa2697e21c61998f78c346251d2c08f77d720eaAndy HungLOCAL_MULTILIB := 32
488fa2697e21c61998f78c346251d2c08f77d720eaAndy Hungelse
498fa2697e21c61998f78c346251d2c08f77d720eaAndy HungLOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
508fa2697e21c61998f78c346251d2c08f77d720eaAndy Hungendif
518fa2697e21c61998f78c346251d2c08f77d720eaAndy Hung
52dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco NelissenLOCAL_MODULE := audioserver
53dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen
54dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco NelissenLOCAL_INIT_RC := audioserver.rc
55dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelissen
56e875c8016198b4d84225fcf45d905fc424e53553Glenn KastenLOCAL_CFLAGS := -Werror -Wall
57e875c8016198b4d84225fcf45d905fc424e53553Glenn Kasten
58dcb346b7dc5b88c3e85db8a70bbd6a2fee8192b9Marco Nelisseninclude $(BUILD_EXECUTABLE)
59