| 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 \ |
| 17 | external/libxml2/include \ |
| 18 | external/icu/icu4c/source/common |
| François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 19 | |
| François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 20 | LOCAL_SRC_FILES:= \ |
| 21 | ParameterManagerWrapper.cpp \ |
| 22 | ParameterManagerWrapperConfig.cpp |
| François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 23 | |
| Dan Willemsen | 4ffbc76 | 2016-11-18 13:28:36 -0800 | [diff] [blame] | 24 | LOCAL_SHARED_LIBRARIES := \ |
| 25 | libparameter \ |
| François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 26 | libmedia_helper \ |
| 27 | libicuuc \ |
| 28 | libxml2 |
| 29 | |
| 30 | LOCAL_STATIC_LIBRARIES := \ |
| 31 | libaudiopolicycomponents |
| Dan Willemsen | 4ffbc76 | 2016-11-18 13:28:36 -0800 | [diff] [blame] | 32 | |
| Andy Hung | 8fa2697 | 2016-03-03 13:19:27 -0800 | [diff] [blame] | 33 | LOCAL_MULTILIB := $(AUDIOSERVER_MULTILIB) |
| 34 | |
| François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 35 | LOCAL_MODULE:= libaudiopolicypfwwrapper |
| 36 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include |
| 37 | |
| 38 | LOCAL_MODULE_TAGS := optional |
| 39 | LOCAL_CFLAGS := -Wall -Werror -Wextra |
| 40 | |
| 41 | include $(BUILD_STATIC_LIBRARY) |
| 42 | |
| 43 | ################################################################## |
| 44 | # CONFIGURATION FILE |
| 45 | ################################################################## |
| 46 | |
| François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 47 | ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), 1) |
| 48 | |
| François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 49 | include $(CLEAR_VARS) |
| François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 50 | LOCAL_MODULE := policy_wrapper_configuration.xml |
| François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 51 | LOCAL_MODULE_TAGS := optional |
| 52 | LOCAL_MODULE_CLASS := ETC |
| François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 53 | LOCAL_VENDOR_MODULE := true |
| François Gaffie | 20f06f9 | 2015-03-24 09:01:14 +0100 | [diff] [blame] | 54 | LOCAL_SRC_FILES := config/$(LOCAL_MODULE) |
| 55 | include $(BUILD_PREBUILT) |
| François Gaffie | a56b5c2 | 2018-02-21 18:04:39 +0100 | [diff] [blame] | 56 | |
| 57 | include $(CLEAR_VARS) |
| 58 | LOCAL_MODULE := policy_criteria.xml |
| 59 | LOCAL_MODULE_TAGS := optional |
| 60 | LOCAL_MODULE_CLASS := ETC |
| 61 | LOCAL_VENDOR_MODULE := true |
| 62 | LOCAL_SRC_FILES := config/$(LOCAL_MODULE) |
| 63 | include $(BUILD_PREBUILT) |
| 64 | |
| 65 | include $(CLEAR_VARS) |
| 66 | LOCAL_MODULE := policy_criterion_types.xml |
| 67 | LOCAL_MODULE_CLASS := ETC |
| 68 | LOCAL_VENDOR_MODULE := true |
| 69 | LOCAL_ADDITIONAL_DEPENDENCIES := \ |
| 70 | $(TARGET_OUT_VENDOR_ETC)/audio_policy_configuration.xml |
| 71 | |
| 72 | AUDIO_POLICY_CONFIGURATION_FILE := $(TARGET_OUT_VENDOR_ETC)/audio_policy_configuration.xml |
| 73 | ANDROID_AUDIO_BASE_HEADER_FILE := system/media/audio/include/system/audio-base.h |
| 74 | CRITERION_TYPES_FILE := $(LOCAL_PATH)/config/policy_criterion_types.xml.in |
| 75 | |
| 76 | include $(PROVISION_CRITERION_TYPES) |
| 77 | |
| 78 | endif #ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), 1) |