blob: e6b5f850f3462d840923cb95e3edbb05a64c2f27 [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 := \
19 $(TOPDIR)frameworks/av/services/audiopolicy/engineconfigurable/include \
20 $(TOPDIR)frameworks/av/services/audiopolicy/engineconfigurable/interface \
21 $(TOPDIR)frameworks/av/services/audiopolicy/engine/interface
22
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) \
36 $(TOPDIR)frameworks/av/services/audiopolicy/common/include
37
38
39LOCAL_MODULE := libaudiopolicyengineconfigurable
40LOCAL_MODULE_TAGS := optional
41LOCAL_STATIC_LIBRARIES := \
42 libmedia_helper \
43 libaudiopolicypfwwrapper \
François Gaffief4ad6e52015-11-19 16:59:57 +010044 libaudiopolicycomponents \
François Gaffied1ab2bd2015-12-02 18:20:06 +010045 libxml2
François Gaffie20f06f92015-03-24 09:01:14 +010046
47LOCAL_SHARED_LIBRARIES := \
48 libcutils \
49 libutils \
50 libaudioutils \
51 libparameter
52
53include $(BUILD_SHARED_LIBRARY)
54
55#######################################################################
56# Recursive call sub-folder Android.mk
57#
58include $(call all-makefiles-under,$(LOCAL_PATH))
59
60endif