1 ###########################################################
2 ## Clear out values of all variables used by rule templates.
3 ###########################################################
7 LOCAL_MODULE_RELATIVE_PATH :=
9 LOCAL_DONT_CHECK_MODULE:=
10 LOCAL_CHECKED_MODULE:=
12 LOCAL_BUILT_MODULE_STEM:=
13 OVERRIDE_BUILT_MODULE_PATH:=
14 LOCAL_INSTALLED_MODULE:=
15 LOCAL_INSTALLED_MODULE_STEM:=
17 LOCAL_UNINSTALLABLE_MODULE:=
18 LOCAL_INTERMEDIATE_TARGETS:=
19 LOCAL_UNSTRIPPED_PATH:=
23 LOCAL_OVERRIDES_PACKAGES:=
24 LOCAL_EXPORT_PACKAGE_RESOURCES:=
25 LOCAL_MANIFEST_PACKAGE_NAME:=
26 LOCAL_PACKAGE_SPLITS:=
27 LOCAL_REQUIRED_MODULES:=
28 LOCAL_ACP_UNAVAILABLE:=
31 LOCAL_SRC_FILES_EXCLUDE:=
32 LOCAL_PREBUILT_OBJ_FILES:=
33 LOCAL_STATIC_JAVA_LIBRARIES:=
34 LOCAL_STATIC_JAVA_AAR_LIBRARIES:=
35 LOCAL_STATIC_LIBRARIES:=
36 # Group static libraries with "-Wl,--start-group" and "-Wl,--end-group" when linking.
37 LOCAL_GROUP_STATIC_LIBRARIES:=
38 LOCAL_WHOLE_STATIC_LIBRARIES:=
39 LOCAL_SHARED_LIBRARIES:=
40 LOCAL_IS_HOST_MODULE:=
44 LOCAL_NO_DEFAULT_COMPILER_FLAGS:=
53 LOCAL_CLANG_CONLYFLAGS:=
54 LOCAL_CLANG_CPPFLAGS:=
58 LOCAL_EXPORT_C_INCLUDE_DIRS:=
63 LOCAL_AAPT_INCLUDE_ALL_RESOURCES:=
64 LOCAL_SYSTEM_SHARED_LIBRARIES:=none
66 LOCAL_PREBUILT_EXECUTABLES:=
67 LOCAL_PREBUILT_JAVA_LIBRARIES:=
68 LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES:=
69 LOCAL_PREBUILT_STRIP_COMMENTS:=
70 LOCAL_INTERMEDIATE_SOURCES:=
71 LOCAL_INTERMEDIATE_SOURCE_DIR:=
73 LOCAL_JAVA_LIBRARIES:=
74 LOCAL_JAVA_LAYERS_FILE:=
75 LOCAL_NO_STANDARD_LIBRARIES:=
77 LOCAL_JACK_CLASSPATH:=
78 LOCAL_DROIDDOC_USE_STANDARD_DOCLET:=
79 LOCAL_DROIDDOC_SOURCE_PATH:=
80 LOCAL_DROIDDOC_TEMPLATE_DIR:=
81 LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=
82 LOCAL_DROIDDOC_ASSET_DIR:=
83 LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=
84 LOCAL_DROIDDOC_OPTIONS:=
85 LOCAL_DROIDDOC_HTML_DIR:=
86 LOCAL_DROIDDOC_STUB_OUT_DIR:=
87 LOCAL_ADDITIONAL_HTML_DIR:=
90 LOCAL_JAVA_RESOURCE_DIRS:=
91 LOCAL_JAVA_RESOURCE_FILES:=
92 LOCAL_GENERATED_SOURCES:=
93 LOCAL_COPY_HEADERS_TO:=
95 LOCAL_FORCE_STATIC_EXECUTABLE:=
96 LOCAL_ADDITIONAL_DEPENDENCIES:=
98 LOCAL_PACK_MODULE_RELOCATIONS:=
99 LOCAL_JNI_SHARED_LIBRARIES:=
100 LOCAL_JNI_SHARED_LIBRARIES_ABI:=
101 LOCAL_PREBUILT_JNI_LIBS:=
103 LOCAL_INSTRUMENTATION_FOR:=
104 LOCAL_APK_LIBRARIES:=
105 LOCAL_RES_LIBRARIES:=
106 LOCAL_MANIFEST_INSTRUMENTATION_FOR:=
107 LOCAL_AIDL_INCLUDES:=
110 LOCAL_ADDITIONAL_JAVA_DIR:=
111 LOCAL_ALLOW_UNDEFINED_SYMBOLS:=
113 LOCAL_JACK_ENABLED:=$(DEFAULT_JACK_ENABLED) # '' (ie disabled), disabled, full, incremental
115 LOCAL_JACK_COVERAGE_INCLUDE_FILTER:=
116 LOCAL_JACK_COVERAGE_EXCLUDE_FILTER:=
120 LOCAL_MIN_SDK_VERSION:=
121 LOCAL_SDK_RES_VERSION:=
122 LOCAL_NDK_STL_VARIANT:=
123 LOCAL_EMMA_INSTRUMENT:=
124 LOCAL_PROGUARD_ENABLED:= # '',full,custom,nosystem,disabled,obfuscation,optimization
125 LOCAL_PROGUARD_FLAGS:=
126 LOCAL_JACK_PROGUARD_FLAGS:=
127 LOCAL_PROGUARD_FLAG_FILES:=
128 LOCAL_TEST_MODULE_TO_PROGUARD_WITH:=
129 LOCAL_EMMA_COVERAGE_FILTER:=
130 LOCAL_WARNINGS_ENABLE:=
131 LOCAL_FULL_MANIFEST_FILE:=
132 LOCAL_MANIFEST_FILE:=
133 LOCAL_FULL_LIBS_MANIFEST_FILES:=
134 LOCAL_RENDERSCRIPT_INCLUDES:=
135 LOCAL_RENDERSCRIPT_INCLUDES_OVERRIDE:=
136 LOCAL_RENDERSCRIPT_CC:=
137 LOCAL_RENDERSCRIPT_COMPATIBILITY:=
138 LOCAL_RENDERSCRIPT_FLAGS:=
139 LOCAL_RENDERSCRIPT_TARGET_API:=
140 LOCAL_DEX_PREOPT:= # '',true,false,nostripping
141 LOCAL_DEX_PREOPT_IMAGE_LOCATION:=
142 LOCAL_DEX_PREOPT_FLAGS:=
143 LOCAL_PROTOC_OPTIMIZE_TYPE:= # lite(default),micro,nano,full,nanopb-c,nanopb-c-enable_malloc
145 LOCAL_PROTO_JAVA_OUTPUT_PARAMS:=
149 LOCAL_PROPRIETARY_MODULE:=
152 LOCAL_PRIVILEGED_MODULE:=
154 LOCAL_COMPATIBILITY_SUITE:=
155 LOCAL_COMPATIBILITY_SUPPORT_FILES:=
156 LOCAL_CTS_TEST_PACKAGE:=
157 LOCAL_CTS_TEST_RUNNER:=
159 LOCAL_JAR_EXCLUDE_FILES:=
161 LOCAL_JAR_EXCLUDE_PACKAGES:=
162 LOCAL_SOURCE_FILES_ALL_GENERATED:= # '',true
163 # Don't delete the META_INF dir when merging static Java libraries.
164 LOCAL_DONT_DELETE_JAR_META_INF:=
165 LOCAL_DONT_DELETE_JAR_DIRS:=
166 LOCAL_ADDITIONAL_CERTIFICATES:=
167 LOCAL_PREBUILT_MODULE_FILE:=
168 LOCAL_POST_LINK_CMD:=
169 LOCAL_POST_INSTALL_CMD:=
170 LOCAL_HAL_STATIC_LIBRARIES:=
172 LOCAL_NO_SYNTAX_CHECK:=
173 LOCAL_NO_STATIC_ANALYZER:=
174 LOCAL_32_BIT_ONLY:= # '',true
176 LOCAL_MODULE_TARGET_ARCH:=
177 LOCAL_MODULE_TARGET_ARCH_WARN:=
178 LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH:=
179 LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH_WARN:=
180 LOCAL_MODULE_HOST_ARCH:=
181 LOCAL_MODULE_HOST_ARCH_WARN:=
182 LOCAL_MODULE_UNSUPPORTED_HOST_ARCH:=
183 LOCAL_MODULE_UNSUPPORTED_HOST_ARCH_WARN:=
184 LOCAL_MODULE_HOST_CROSS_ARCH:=
185 LOCAL_MODULE_HOST_CROSS_ARCH_WARN:=
186 LOCAL_MODULE_UNSUPPORTED_HOST_CROSS_ARCH:=
187 LOCAL_MODULE_UNSUPPORTED_HOST_CROSS_ARCH_WARN:=
189 LOCAL_CXX_STL := default
190 LOCAL_NATIVE_COVERAGE :=
192 LOCAL_DPI_FILE_STEM:=
194 LOCAL_SANITIZE_RECOVER:=
196 LOCAL_DBUS_PROXY_PREFIX:=
198 LOCAL_MODULE_HOST_OS:=
199 LOCAL_FINDBUGS_FLAGS:=
201 LOCAL_USE_AAPT2:=$(USE_AAPT2)
202 LOCAL_STATIC_ANDROID_LIBRARIES:=
203 LOCAL_SHARED_ANDROID_LIBRARIES:=
204 # Used to replace the installed file of a presigned prebuilt apk in PDK fusion build,
205 # to avoid installing the presigned apks with classes.dex unstripped.
206 LOCAL_REPLACE_PREBUILT_APK_INSTALLED:=
208 LOCAL_EXTRACT_DPI_APK:=
210 # arch specific variables
211 LOCAL_SRC_FILES_$(TARGET_ARCH):=
212 LOCAL_SRC_FILES_EXCLUDE_$(TARGET_ARCH):=
213 LOCAL_CFLAGS_$(TARGET_ARCH):=
214 LOCAL_CLANG_CFLAGS_$(TARGET_ARCH):=
215 LOCAL_CPPFLAGS_$(TARGET_ARCH):=
216 LOCAL_CLANG_CPPFLAGS_$(TARGET_ARCH):=
217 LOCAL_C_INCLUDES_$(TARGET_ARCH):=
218 LOCAL_ASFLAGS_$(TARGET_ARCH):=
219 LOCAL_CLANG_ASFLAGS_$(TARGET_ARCH):=
220 LOCAL_LDFLAGS_$(TARGET_ARCH):=
221 LOCAL_CLANG_LDFLAGS_$(TARGET_ARCH):=
222 LOCAL_SHARED_LIBRARIES_$(TARGET_ARCH):=
223 LOCAL_STATIC_LIBRARIES_$(TARGET_ARCH):=
224 LOCAL_WHOLE_STATIC_LIBRARIES_$(TARGET_ARCH):=
225 LOCAL_GENERATED_SOURCES_$(TARGET_ARCH):=
226 LOCAL_REQUIRED_MODULES_$(TARGET_ARCH):=
227 LOCAL_CLANG_$(TARGET_ARCH):=
228 LOCAL_PREBUILT_JNI_LIBS_$(TARGET_ARCH):=
229 LOCAL_STRIP_MODULE_$(TARGET_ARCH):=
230 LOCAL_PACK_MODULE_RELOCATIONS_$(TARGET_ARCH):=
231 ifdef TARGET_2ND_ARCH
232 LOCAL_SRC_FILES_$(TARGET_2ND_ARCH):=
233 LOCAL_SRC_FILES_EXCLUDE_$(TARGET_2ND_ARCH):=
234 LOCAL_CFLAGS_$(TARGET_2ND_ARCH):=
235 LOCAL_CLANG_CFLAGS_$(TARGET_2ND_ARCH):=
236 LOCAL_CPPFLAGS_$(TARGET_2ND_ARCH):=
237 LOCAL_CLANG_CPPFLAGS_$(TARGET_2ND_ARCH):=
238 LOCAL_C_INCLUDES_$(TARGET_2ND_ARCH):=
239 LOCAL_ASFLAGS_$(TARGET_2ND_ARCH):=
240 LOCAL_CLANG_ASFLAGS_$(TARGET_2ND_ARCH):=
241 LOCAL_LDFLAGS_$(TARGET_2ND_ARCH):=
242 LOCAL_CLANG_LDFLAGS_$(TARGET_2ND_ARCH):=
243 LOCAL_SHARED_LIBRARIES_$(TARGET_2ND_ARCH):=
244 LOCAL_STATIC_LIBRARIES_$(TARGET_2ND_ARCH):=
245 LOCAL_WHOLE_STATIC_LIBRARIES_$(TARGET_2ND_ARCH):=
246 LOCAL_GENERATED_SOURCES_$(TARGET_2ND_ARCH):=
247 LOCAL_REQUIRED_MODULES_$(TARGET_2ND_ARCH):=
248 LOCAL_CLANG_$(TARGET_2ND_ARCH):=
249 LOCAL_PREBUILT_JNI_LIBS_$(TARGET_2ND_ARCH):=
250 LOCAL_STRIP_MODULE_$(TARGET_2ND_ARCH):=
251 LOCAL_PACK_MODULE_RELOCATIONS_$(TARGET_2ND_ARCH):=
253 LOCAL_SRC_FILES_$(HOST_ARCH):=
254 LOCAL_SRC_FILES_EXCLUDE_$(HOST_ARCH):=
255 LOCAL_CFLAGS_$(HOST_ARCH):=
256 LOCAL_CLANG_CFLAGS_$(HOST_ARCH):=
257 LOCAL_CPPFLAGS_$(HOST_ARCH):=
258 LOCAL_CLANG_CPPFLAGS_$(HOST_ARCH):=
259 LOCAL_C_INCLUDES_$(HOST_ARCH):=
260 LOCAL_ASFLAGS_$(HOST_ARCH):=
261 LOCAL_CLANG_ASFLAGS_$(HOST_ARCH):=
262 LOCAL_LDFLAGS_$(HOST_ARCH):=
263 LOCAL_CLANG_LDFLAGS_$(HOST_ARCH):=
264 LOCAL_SHARED_LIBRARIES_$(HOST_ARCH):=
265 LOCAL_STATIC_LIBRARIES_$(HOST_ARCH):=
266 LOCAL_WHOLE_STATIC_LIBRARIES_$(HOST_ARCH):=
267 LOCAL_GENERATED_SOURCES_$(HOST_ARCH):=
268 LOCAL_REQUIRED_MODULES_$(HOST_ARCH):=
269 LOCAL_CLANG_$(HOST_ARCH):=
271 LOCAL_SRC_FILES_$(HOST_2ND_ARCH):=
272 LOCAL_SRC_FILES_EXCLUDE_$(HOST_2ND_ARCH):=
273 LOCAL_CFLAGS_$(HOST_2ND_ARCH):=
274 LOCAL_CLANG_CFLAGS_$(HOST_2ND_ARCH):=
275 LOCAL_CPPFLAGS_$(HOST_2ND_ARCH):=
276 LOCAL_CLANG_CPPFLAGS_$(HOST_2ND_ARCH):=
277 LOCAL_C_INCLUDES_$(HOST_2ND_ARCH):=
278 LOCAL_ASFLAGS_$(HOST_2ND_ARCH):=
279 LOCAL_CLANG_ASFLAGS_$(HOST_2ND_ARCH):=
280 LOCAL_LDFLAGS_$(HOST_2ND_ARCH):=
281 LOCAL_CLANG_LDFLAGS_$(HOST_2ND_ARCH):=
282 LOCAL_SHARED_LIBRARIES_$(HOST_2ND_ARCH):=
283 LOCAL_STATIC_LIBRARIES_$(HOST_2ND_ARCH):=
284 LOCAL_WHOLE_STATIC_LIBRARIES_$(HOST_2ND_ARCH):=
285 LOCAL_GENERATED_SOURCES_$(HOST_2ND_ARCH):=
286 LOCAL_REQUIRED_MODULES_$(HOST_2ND_ARCH):=
287 LOCAL_CLANG_$(HOST_2ND_ARCH):=
290 LOCAL_SRC_FILES_$(HOST_OS):=
291 LOCAL_STATIC_LIBRARIES_$(HOST_OS):=
292 LOCAL_SHARED_LIBRARIES_$(HOST_OS):=
293 LOCAL_CFLAGS_$(HOST_OS):=
294 LOCAL_CPPFLAGS_$(HOST_OS):=
295 LOCAL_LDFLAGS_$(HOST_OS):=
296 LOCAL_LDLIBS_$(HOST_OS):=
297 LOCAL_ASFLAGS_$(HOST_OS):=
298 LOCAL_C_INCLUDES_$(HOST_OS):=
299 LOCAL_GENERATED_SOURCES_$(HOST_OS):=
300 LOCAL_REQUIRED_MODULES_$(HOST_OS):=
303 LOCAL_SRC_FILES_$(HOST_CROSS_OS):=
304 LOCAL_STATIC_LIBRARIES_$(HOST_CROSS_OS):=
305 LOCAL_SHARED_LIBRARIES_$(HOST_CROSS_OS):=
306 LOCAL_CFLAGS_$(HOST_CROSS_OS):=
307 LOCAL_CPPFLAGS_$(HOST_CROSS_OS):=
308 LOCAL_LDFLAGS_$(HOST_CROSS_OS):=
309 LOCAL_LDLIBS_$(HOST_CROSS_OS):=
310 LOCAL_ASFLAGS_$(HOST_CROSS_OS):=
311 LOCAL_C_INCLUDES_$(HOST_CROSS_OS):=
312 LOCAL_GENERATED_SOURCES_$(HOST_CROSS_OS):=
313 LOCAL_REQUIRED_MODULES_$(HOST_CROSS_OS):=
316 LOCAL_SRC_FILES_$(HOST_OS)_$(HOST_ARCH):=
318 LOCAL_SRC_FILES_$(HOST_OS)_$(HOST_2ND_ARCH):=
321 LOCAL_SRC_FILES_$(HOST_CROSS_OS)_$(HOST_CROSS_ARCH):=
322 ifdef HOST_CROSS_2ND_ARCH
323 LOCAL_SRC_FILES_$(HOST_CROSS_OS)_$(HOST_CROSS_2ND_ARCH):=
329 LOCAL_SRC_FILES_EXCLUDE_32:=
330 LOCAL_SRC_FILES_EXCLUDE_64:=
331 LOCAL_SHARED_LIBRARIES_32:=
332 LOCAL_SHARED_LIBRARIES_64:=
333 LOCAL_STATIC_LIBRARIES_32:=
334 LOCAL_STATIC_LIBRARIES_64:=
335 LOCAL_WHOLE_STATIC_LIBRARIES_32:=
336 LOCAL_WHOLE_STATIC_LIBRARIES_64:=
337 LOCAL_GENERATED_SOURCES_32:=
338 LOCAL_GENERATED_SOURCES_64:=
347 LOCAL_CLANG_CFLAGS_32:=
348 LOCAL_CLANG_CFLAGS_64:=
349 LOCAL_CLANG_CPPFLAGS_32:=
350 LOCAL_CLANG_CPPFLAGS_64:=
351 LOCAL_CLANG_LDFLAGS_32:=
352 LOCAL_CLANG_LDFLAGS_64:=
353 LOCAL_CLANG_ASFLAGS_32:=
354 LOCAL_CLANG_ASFLAGS_64:=
355 LOCAL_C_INCLUDES_32:=
356 LOCAL_C_INCLUDES_64:=
357 LOCAL_MODULE_PATH_32:=
358 LOCAL_MODULE_PATH_64:=
359 LOCAL_MODULE_STEM_32:=
360 LOCAL_MODULE_STEM_64:=
365 LOCAL_JAVA_LANGUAGE_VERSION:=
367 # Trim MAKEFILE_LIST so that $(call my-dir) doesn't need to
368 # iterate over thousands of entries every time.
369 # Leave the current makefile to make sure we don't break anything
370 # that expects to be able to find the name of the current makefile.
371 MAKEFILE_LIST := $(lastword $(MAKEFILE_LIST))