• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH := $(call my-dir)
2
3ifdef BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION
4
5TOOLS := frameworks/av/services/audiopolicy/engineconfigurable/tools
6PROVISION_CRITERION_TYPES := $(TOOLS)/provision_criterion_types_from_android_headers.mk
7
8##################################################################
9# CONFIGURATION TOP FILE
10##################################################################
11
12ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), phone_configurable)
13
14include $(CLEAR_VARS)
15LOCAL_MODULE := audio_policy_engine_configuration.xml
16
17LOCAL_MODULE_TAGS := optional
18LOCAL_MODULE_CLASS := ETC
19LOCAL_VENDOR_MODULE := true
20LOCAL_SRC_FILES := phone/$(LOCAL_MODULE)
21
22LOCAL_REQUIRED_MODULES := \
23    audio_policy_engine_product_strategies.xml  \
24    audio_policy_engine_stream_volumes.xml \
25    audio_policy_engine_default_stream_volumes.xml \
26    audio_policy_engine_criteria.xml \
27    audio_policy_engine_criterion_types.xml
28
29include $(BUILD_PREBUILT)
30
31include $(CLEAR_VARS)
32LOCAL_MODULE := audio_policy_engine_product_strategies.xml
33LOCAL_MODULE_TAGS := optional
34LOCAL_MODULE_CLASS := ETC
35LOCAL_VENDOR_MODULE := true
36LOCAL_SRC_FILES := phone/$(LOCAL_MODULE)
37include $(BUILD_PREBUILT)
38
39include $(CLEAR_VARS)
40LOCAL_MODULE := audio_policy_engine_stream_volumes.xml
41LOCAL_MODULE_TAGS := optional
42LOCAL_MODULE_CLASS := ETC
43LOCAL_VENDOR_MODULE := true
44LOCAL_SRC_FILES := phone/$(LOCAL_MODULE)
45include $(BUILD_PREBUILT)
46
47include $(CLEAR_VARS)
48LOCAL_MODULE := audio_policy_engine_default_stream_volumes.xml
49LOCAL_MODULE_TAGS := optional
50LOCAL_MODULE_CLASS := ETC
51LOCAL_VENDOR_MODULE := true
52LOCAL_SRC_FILES := phone/$(LOCAL_MODULE)
53include $(BUILD_PREBUILT)
54
55endif # ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), phone_configurable)
56
57
58ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION),$(filter $(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION),automotive_configurable caremu_configurable))
59
60##################################################################
61# AUTOMOTIVE CONFIGURATION TOP FILE
62##################################################################
63include $(CLEAR_VARS)
64LOCAL_MODULE := audio_policy_engine_configuration.xml
65LOCAL_MODULE_TAGS := optional
66LOCAL_MODULE_CLASS := ETC
67LOCAL_VENDOR_MODULE := true
68LOCAL_SRC_FILES := automotive/$(LOCAL_MODULE)
69
70LOCAL_REQUIRED_MODULES := \
71    audio_policy_engine_product_strategies.xml \
72    audio_policy_engine_criteria.xml \
73    audio_policy_engine_criterion_types.xml \
74    audio_policy_engine_volumes.xml
75
76include $(BUILD_PREBUILT)
77
78endif #ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION),$(filter $(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION),automotive_configurable caremu_configurable))
79
80ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), automotive_configurable)
81
82##################################################################
83# CONFIGURATION FILES
84##################################################################
85
86include $(CLEAR_VARS)
87LOCAL_MODULE := audio_policy_engine_product_strategies.xml
88LOCAL_MODULE_TAGS := optional
89LOCAL_MODULE_CLASS := ETC
90LOCAL_VENDOR_MODULE := true
91LOCAL_SRC_FILES := automotive/$(LOCAL_MODULE)
92include $(BUILD_PREBUILT)
93
94include $(CLEAR_VARS)
95LOCAL_MODULE := audio_policy_engine_volumes.xml
96LOCAL_MODULE_TAGS := optional
97LOCAL_MODULE_CLASS := ETC
98LOCAL_VENDOR_MODULE := true
99LOCAL_SRC_FILES := automotive/$(LOCAL_MODULE)
100include $(BUILD_PREBUILT)
101
102endif #ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), automotive_configurable)
103
104ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), caremu_configurable)
105
106##################################################################
107# CONFIGURATION FILES
108##################################################################
109
110include $(CLEAR_VARS)
111LOCAL_MODULE := audio_policy_engine_product_strategies.xml
112LOCAL_MODULE_TAGS := optional
113LOCAL_MODULE_CLASS := ETC
114LOCAL_VENDOR_MODULE := true
115LOCAL_SRC_FILES := caremu/$(LOCAL_MODULE)
116include $(BUILD_PREBUILT)
117
118include $(CLEAR_VARS)
119LOCAL_MODULE := audio_policy_engine_volumes.xml
120LOCAL_MODULE_TAGS := optional
121LOCAL_MODULE_CLASS := ETC
122LOCAL_VENDOR_MODULE := true
123LOCAL_SRC_FILES := caremu/$(LOCAL_MODULE)
124include $(BUILD_PREBUILT)
125
126endif #ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION), caremu_configurable)
127
128ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION),$(filter $(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION),phone_configurable automotive_configurable caremu_configurable))
129
130include $(CLEAR_VARS)
131LOCAL_MODULE := audio_policy_engine_criteria.xml
132LOCAL_MODULE_TAGS := optional
133LOCAL_MODULE_CLASS := ETC
134LOCAL_VENDOR_MODULE := true
135LOCAL_SRC_FILES := common/$(LOCAL_MODULE)
136include $(BUILD_PREBUILT)
137
138include $(CLEAR_VARS)
139LOCAL_MODULE := audio_policy_engine_criterion_types.xml
140LOCAL_MODULE_CLASS := ETC
141LOCAL_VENDOR_MODULE := true
142LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_VENDOR_ETC)/primary_audio_policy_configuration.xml
143ANDROID_AUDIO_BASE_HEADER_FILE := system/media/audio/include/system/audio-base.h
144AUDIO_POLICY_CONFIGURATION_FILE := $(TARGET_OUT_VENDOR_ETC)/audio_policy_configuration.xml
145CRITERION_TYPES_FILE := $(LOCAL_PATH)/common/$(LOCAL_MODULE).in
146
147include $(PROVISION_CRITERION_TYPES)
148
149endif #ifeq ($(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION),$(filter $(BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION),phone_configurable automotive_configurable caremu_configurable))
150
151endif #ifdef BUILD_AUDIO_POLICY_EXAMPLE_CONFIGURATION
152