blob: c2105e936b171385538c300d44c20093f9525a95 [file] [log] [blame]
François Gaffie20f06f92015-03-24 09:01:14 +01001ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1)
2
3LOCAL_PATH := $(call my-dir)
4
5# Component build
6#######################################################################
7
8include $(CLEAR_VARS)
9
10LOCAL_SRC_FILES := \
11 src/Engine.cpp \
12 src/EngineInstance.cpp \
13 src/Stream.cpp \
14 src/Strategy.cpp \
15 src/Usage.cpp \
16 src/InputSource.cpp \
17
18audio_policy_engine_includes_common := \
YOUNG HO CHA2ee7aab2017-05-25 23:16:51 +090019 frameworks/av/services/audiopolicy/engineconfigurable/include \
20 frameworks/av/services/audiopolicy/engineconfigurable/interface \
21 frameworks/av/services/audiopolicy/engine/interface
François Gaffie20f06f92015-03-24 09:01:14 +010022
23LOCAL_CFLAGS += \
24 -Wall \
25 -Werror \
26 -Wextra \
27
28LOCAL_EXPORT_C_INCLUDE_DIRS := \
29 $(audio_policy_engine_includes_common)
30
31LOCAL_C_INCLUDES := \
32 $(audio_policy_engine_includes_common) \
33 $(TARGET_OUT_HEADERS)/hw \
34 $(call include-path-for, frameworks-av) \
35 $(call include-path-for, audio-utils) \
YOUNG HO CHA2ee7aab2017-05-25 23:16:51 +090036 frameworks/av/services/audiopolicy/common/include
François Gaffie20f06f92015-03-24 09:01:14 +010037
Andy Hung8fa26972016-03-03 13:19:27 -080038LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB)
François Gaffie20f06f92015-03-24 09:01:14 +010039
40LOCAL_MODULE := libaudiopolicyengineconfigurable
41LOCAL_MODULE_TAGS := optional
Mikhail Naganov913d06c2016-11-01 12:49:22 -070042
François Gaffie20f06f92015-03-24 09:01:14 +010043LOCAL_STATIC_LIBRARIES := \
François Gaffie20f06f92015-03-24 09:01:14 +010044 libaudiopolicypfwwrapper \
Jaekyun Seoke4c3c432016-12-16 12:13:40 +090045 libaudiopolicycomponents
François Gaffie20f06f92015-03-24 09:01:14 +010046
47LOCAL_SHARED_LIBRARIES := \
Dan Willemsen4ffbc762016-11-18 13:28:36 -080048 liblog \
François Gaffie20f06f92015-03-24 09:01:14 +010049 libcutils \
50 libutils \
Mikhail Naganov913d06c2016-11-01 12:49:22 -070051 liblog \
Kevin Rocard07be14f2018-01-24 06:14:03 +000052 libaudioutils \
Jaekyun Seok08dab5a2016-12-07 15:08:17 +090053 libparameter \
Jaekyun Seoke4c3c432016-12-16 12:13:40 +090054 libmedia_helper \
55 libxml2
François Gaffie20f06f92015-03-24 09:01:14 +010056
57include $(BUILD_SHARED_LIBRARY)
58
59#######################################################################
60# Recursive call sub-folder Android.mk
61#
62include $(call all-makefiles-under,$(LOCAL_PATH))
63
64endif