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 | |
| 38 | |
| 39 | LOCAL_MODULE := libaudiopolicyengineconfigurable |
| 40 | LOCAL_MODULE_TAGS := optional |
| 41 | LOCAL_STATIC_LIBRARIES := \ |
| 42 | libmedia_helper \ |
| 43 | libaudiopolicypfwwrapper \ |
| 44 | libaudiopolicycomponents |
| 45 | |
| 46 | LOCAL_SHARED_LIBRARIES := \ |
| 47 | libcutils \ |
| 48 | libutils \ |
| 49 | libaudioutils \ |
| 50 | libparameter |
| 51 | |
| 52 | include $(BUILD_SHARED_LIBRARY) |
| 53 | |
| 54 | ####################################################################### |
| 55 | # Recursive call sub-folder Android.mk |
| 56 | # |
| 57 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
| 58 | |
| 59 | endif |