François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 1 | ifeq ($(USE_CONFIGURABLE_AUDIO_POLICY), 1) |
| 2 | |
| 3 | LOCAL_PATH := $(call my-dir) |
| 4 | |
| 5 | # Component build |
| 6 | ####################################################################### |
| 7 | |
| 8 | include $(CLEAR_VARS) |
| 9 | |
| 10 | LOCAL_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 | |
| 18 | audio_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 | |
| 23 | LOCAL_CFLAGS += \ |
| 24 | -Wall \ |
| 25 | -Werror \ |
| 26 | -Wextra \ |
| 27 | |
| 28 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
| 29 | $(audio_policy_engine_includes_common) |
| 30 | |
| 31 | LOCAL_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 | |
Andy Hung | 8fa2697 | 2016-03-03 13:19:27 -0800 | [diff] [blame] | 38 | LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 39 | |
| 40 | LOCAL_MODULE := libaudiopolicyengineconfigurable |
| 41 | LOCAL_MODULE_TAGS := optional |
Mikhail Naganov | 913d06c | 2016-11-01 12:49:22 -0700 | [diff] [blame] | 42 | |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 43 | LOCAL_STATIC_LIBRARIES := \ |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 44 | libaudiopolicypfwwrapper \ |
François Gaffie | f4ad6e5 | 2015-11-19 16:59:57 +0100 | [diff] [blame] | 45 | libaudiopolicycomponents \ |
François Gaffie | d1ab2bd | 2015-12-02 18:20:06 +0100 | [diff] [blame] | 46 | libxml2 |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 47 | |
| 48 | LOCAL_SHARED_LIBRARIES := \ |
Dan Willemsen | 4ffbc76 | 2016-11-18 13:28:36 -0800 | [diff] [blame] | 49 | liblog \ |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 50 | libcutils \ |
| 51 | libutils \ |
Mikhail Naganov | 913d06c | 2016-11-01 12:49:22 -0700 | [diff] [blame] | 52 | liblog \ |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 53 | libaudioutils \ |
Jaekyun Seok | 08dab5a | 2016-12-07 15:08:17 +0900 | [diff] [blame^] | 54 | libparameter \ |
| 55 | libmedia_helper |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 56 | |
| 57 | include $(BUILD_SHARED_LIBRARY) |
| 58 | |
| 59 | ####################################################################### |
| 60 | # Recursive call sub-folder Android.mk |
| 61 | # |
| 62 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
| 63 | |
| 64 | endif |