François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 3 | TOOLS := frameworks/av/services/audiopolicy/engineconfigurable/tools |
| 4 | PROVISION_CRITERION_TYPES := $(TOOLS)/provision_criterion_types_from_android_headers.mk |
| 5 | |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 6 | ################################################################## |
| 7 | # WRAPPER LIBRARY |
| 8 | ################################################################## |
| 9 | |
| 10 | include $(CLEAR_VARS) |
| 11 | |
| 12 | LOCAL_C_INCLUDES := \ |
| 13 | $(LOCAL_PATH)/include \ |
YOUNG HO CHA | 2ee7aab | 2017-05-25 23:16:51 +0900 | [diff] [blame] | 14 | frameworks/av/services/audiopolicy/engineconfigurable/include \ |
| 15 | frameworks/av/services/audiopolicy/engineconfigurable/interface \ |
François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 16 | frameworks/av/services/audiopolicy/common/include \ |
François Gaffie | dc7553f | 2018-11-02 10:39:57 +0100 | [diff] [blame^] | 17 | frameworks/av/services/audiopolicy/utilities/convert \ |
François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 18 | external/libxml2/include \ |
| 19 | external/icu/icu4c/source/common |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 20 | |
François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 21 | LOCAL_SRC_FILES:= \ |
| 22 | ParameterManagerWrapper.cpp \ |
| 23 | ParameterManagerWrapperConfig.cpp |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 24 | |
Dan Willemsen | 4ffbc76 | 2016-11-18 13:28:36 -0800 | [diff] [blame] | 25 | LOCAL_SHARED_LIBRARIES := \ |
| 26 | libparameter \ |
François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 27 | libmedia_helper \ |
| 28 | libicuuc \ |
| 29 | libxml2 |
| 30 | |
François Gaffie | dc7553f | 2018-11-02 10:39:57 +0100 | [diff] [blame^] | 31 | LOCAL_HEADER_LIBRARIES := \ |
| 32 | libaudiopolicycommon |
| 33 | |
François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 34 | LOCAL_STATIC_LIBRARIES := \ |
| 35 | libaudiopolicycomponents |
Dan Willemsen | 4ffbc76 | 2016-11-18 13:28:36 -0800 | [diff] [blame] | 36 | |
Andy Hung | 8fa2697 | 2016-03-03 13:19:27 -0800 | [diff] [blame] | 37 | LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) |
| 38 | |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 39 | LOCAL_MODULE:= libaudiopolicypfwwrapper |
| 40 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 41 | |
| 42 | LOCAL_MODULE_TAGS := optional |
| 43 | LOCAL_CFLAGS := -Wall -Werror -Wextra |
| 44 | |
| 45 | include $(BUILD_STATIC_LIBRARY) |
| 46 | |
| 47 | ################################################################## |
| 48 | # CONFIGURATION FILE |
| 49 | ################################################################## |
| 50 | |
François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 51 | ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), 1) |
| 52 | |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 53 | include $(CLEAR_VARS) |
François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 54 | LOCAL_MODULE := policy_wrapper_configuration.xml |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 55 | LOCAL_MODULE_TAGS := optional |
| 56 | LOCAL_MODULE_CLASS := ETC |
François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 57 | LOCAL_VENDOR_MODULE := true |
François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 58 | LOCAL_SRC_FILES := config/$(LOCAL_MODULE) |
| 59 | include $(BUILD_PREBUILT) |
François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 60 | |
| 61 | include $(CLEAR_VARS) |
| 62 | LOCAL_MODULE := policy_criteria.xml |
| 63 | LOCAL_MODULE_TAGS := optional |
| 64 | LOCAL_MODULE_CLASS := ETC |
| 65 | LOCAL_VENDOR_MODULE := true |
| 66 | LOCAL_SRC_FILES := config/$(LOCAL_MODULE) |
| 67 | include $(BUILD_PREBUILT) |
| 68 | |
| 69 | include $(CLEAR_VARS) |
| 70 | LOCAL_MODULE := policy_criterion_types.xml |
| 71 | LOCAL_MODULE_CLASS := ETC |
| 72 | LOCAL_VENDOR_MODULE := true |
| 73 | LOCAL_ADDITIONAL_DEPENDENCIES := \ |
| 74 | $(TARGET_OUT_VENDOR_ETC)/audio_policy_configuration.xml |
| 75 | |
| 76 | AUDIO_POLICY_CONFIGURATION_FILE := $(TARGET_OUT_VENDOR_ETC)/audio_policy_configuration.xml |
| 77 | ANDROID_AUDIO_BASE_HEADER_FILE := system/media/audio/include/system/audio-base.h |
| 78 | CRITERION_TYPES_FILE := $(LOCAL_PATH)/config/policy_criterion_types.xml.in |
| 79 | |
| 80 | include $(PROVISION_CRITERION_TYPES) |
| 81 | |
| 82 | endif #ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), 1) |