• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1###########################################################
2## Clear out values of all variables used by rule templates.
3###########################################################
4
5LOCAL_MODULE:=
6LOCAL_MODULE_PATH:=
7LOCAL_MODULE_RELATIVE_PATH :=
8LOCAL_MODULE_STEM:=
9LOCAL_DONT_CHECK_MODULE:=
10LOCAL_CHECKED_MODULE:=
11LOCAL_BUILT_MODULE:=
12LOCAL_BUILT_MODULE_STEM:=
13OVERRIDE_BUILT_MODULE_PATH:=
14LOCAL_INSTALLED_MODULE:=
15LOCAL_INSTALLED_MODULE_STEM:=
16LOCAL_PICKUP_FILES:=
17LOCAL_UNINSTALLABLE_MODULE:=
18LOCAL_INTERMEDIATE_TARGETS:=
19LOCAL_UNSTRIPPED_PATH:=
20LOCAL_MODULE_CLASS:=
21LOCAL_MODULE_SUFFIX:=
22LOCAL_PACKAGE_NAME:=
23LOCAL_OVERRIDES_PACKAGES:=
24LOCAL_EXPORT_PACKAGE_RESOURCES:=
25LOCAL_MANIFEST_PACKAGE_NAME:=
26LOCAL_PACKAGE_SPLITS:=
27LOCAL_REQUIRED_MODULES:=
28LOCAL_ACP_UNAVAILABLE:=
29LOCAL_MODULE_TAGS:=
30LOCAL_SRC_FILES:=
31LOCAL_PREBUILT_OBJ_FILES:=
32LOCAL_STATIC_JAVA_LIBRARIES:=
33LOCAL_STATIC_JAVA_AAR_LIBRARIES:=
34LOCAL_STATIC_LIBRARIES:=
35# Group static libraries with "-Wl,--start-group" and "-Wl,--end-group" when linking.
36LOCAL_GROUP_STATIC_LIBRARIES:=
37LOCAL_WHOLE_STATIC_LIBRARIES:=
38LOCAL_SHARED_LIBRARIES:=
39LOCAL_IS_HOST_MODULE:=
40LOCAL_CC:=
41LOCAL_CXX:=
42LOCAL_CPP_EXTENSION:=
43LOCAL_NO_DEFAULT_COMPILER_FLAGS:=
44LOCAL_FDO_SUPPORT:=
45LOCAL_ARM_MODE:=
46LOCAL_YACCFLAGS:=
47LOCAL_ASFLAGS:=
48LOCAL_CFLAGS:=
49LOCAL_CPPFLAGS:=
50LOCAL_CLANG_ASFLAGS:=
51LOCAL_CLANG_CFLAGS:=
52LOCAL_CLANG_CONLYFLAGS:=
53LOCAL_CLANG_CPPFLAGS:=
54LOCAL_CONLYFLAGS:=
55LOCAL_RTTI_FLAG:=
56LOCAL_C_INCLUDES:=
57LOCAL_EXPORT_C_INCLUDE_DIRS:=
58LOCAL_LDFLAGS:=
59LOCAL_CLANG_LDFLAGS:=
60LOCAL_LDLIBS:=
61LOCAL_AAPT_FLAGS:=
62LOCAL_AAPT_INCLUDE_ALL_RESOURCES:=
63LOCAL_SYSTEM_SHARED_LIBRARIES:=none
64LOCAL_PREBUILT_LIBS:=
65LOCAL_PREBUILT_EXECUTABLES:=
66LOCAL_PREBUILT_JAVA_LIBRARIES:=
67LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES:=
68LOCAL_PREBUILT_STRIP_COMMENTS:=
69LOCAL_INTERMEDIATE_SOURCES:=
70LOCAL_INTERMEDIATE_SOURCE_DIR:=
71LOCAL_JAVACFLAGS:=
72LOCAL_JAVA_LIBRARIES:=
73LOCAL_JAVA_LAYERS_FILE:=
74LOCAL_NO_STANDARD_LIBRARIES:=
75LOCAL_CLASSPATH:=
76LOCAL_JACK_CLASSPATH:=
77LOCAL_DROIDDOC_USE_STANDARD_DOCLET:=
78LOCAL_DROIDDOC_SOURCE_PATH:=
79LOCAL_DROIDDOC_TEMPLATE_DIR:=
80LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=
81LOCAL_DROIDDOC_ASSET_DIR:=
82LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=
83LOCAL_DROIDDOC_OPTIONS:=
84LOCAL_DROIDDOC_HTML_DIR:=
85LOCAL_ADDITIONAL_HTML_DIR:=
86LOCAL_ASSET_DIR:=
87LOCAL_RESOURCE_DIR:=
88LOCAL_JAVA_RESOURCE_DIRS:=
89LOCAL_JAVA_RESOURCE_FILES:=
90LOCAL_GENERATED_SOURCES:=
91LOCAL_COPY_HEADERS_TO:=
92LOCAL_COPY_HEADERS:=
93LOCAL_FORCE_STATIC_EXECUTABLE:=
94LOCAL_ADDITIONAL_DEPENDENCIES:=
95LOCAL_STRIP_MODULE:=
96LOCAL_PACK_MODULE_RELOCATIONS:=
97LOCAL_JNI_SHARED_LIBRARIES:=
98LOCAL_JNI_SHARED_LIBRARIES_ABI:=
99LOCAL_PREBUILT_JNI_LIBS:=
100LOCAL_JAR_MANIFEST:=
101LOCAL_INSTRUMENTATION_FOR:=
102LOCAL_APK_LIBRARIES:=
103LOCAL_RES_LIBRARIES:=
104LOCAL_MANIFEST_INSTRUMENTATION_FOR:=
105LOCAL_AIDL_INCLUDES:=
106LOCAL_JARJAR_RULES:=
107LOCAL_ADDITIONAL_JAVA_DIR:=
108LOCAL_ALLOW_UNDEFINED_SYMBOLS:=
109LOCAL_DX_FLAGS:=
110LOCAL_JACK_ENABLED:=$(DEFAULT_JACK_ENABLED) # '' (ie disabled), disabled, full, incremental
111LOCAL_JACK_VM_ARGS := $(DEFAULT_JACK_VM_ARGS)
112LOCAL_JACK_EXTRA_ARGS := $(DEFAULT_JACK_EXTRA_ARGS)
113LOCAL_JACK_FLAGS:=
114LOCAL_JILL_FLAGS:=
115LOCAL_CERTIFICATE:=
116LOCAL_SDK_VERSION:=
117LOCAL_SDK_RES_VERSION:=
118LOCAL_NDK_STL_VARIANT:=
119LOCAL_EMMA_INSTRUMENT:=
120LOCAL_PROGUARD_ENABLED:= # '',full,custom,nosystem,disabled,obfuscation,optimization
121LOCAL_PROGUARD_FLAGS:=
122LOCAL_JACK_PROGUARD_FLAGS:=
123LOCAL_PROGUARD_FLAG_FILES:=
124LOCAL_TEST_MODULE_TO_PROGUARD_WITH:=
125LOCAL_EMMA_COVERAGE_FILTER:=
126LOCAL_WARNINGS_ENABLE:=
127LOCAL_FULL_MANIFEST_FILE:=
128LOCAL_MANIFEST_FILE:=
129LOCAL_FULL_LIBS_MANIFEST_FILES:=
130LOCAL_RENDERSCRIPT_INCLUDES:=
131LOCAL_RENDERSCRIPT_INCLUDES_OVERRIDE:=
132LOCAL_RENDERSCRIPT_CC:=
133LOCAL_RENDERSCRIPT_COMPATIBILITY:=
134LOCAL_RENDERSCRIPT_FLAGS:=
135LOCAL_RENDERSCRIPT_SKIP_INSTALL:=
136LOCAL_RENDERSCRIPT_TARGET_API:=
137LOCAL_DEX_PREOPT:= # '',true,false,nostripping
138LOCAL_DEX_PREOPT_IMAGE_LOCATION:=
139LOCAL_DEX_PREOPT_FLAGS:=
140LOCAL_PROTOC_OPTIMIZE_TYPE:= # lite(default),micro,nano,full,nanopb-c,nanopb-c-enable_malloc
141LOCAL_PROTOC_FLAGS:=
142LOCAL_PROTO_JAVA_OUTPUT_PARAMS:=
143LOCAL_NO_CRT:=
144LOCAL_NO_LIBGCC:=
145LOCAL_PROPRIETARY_MODULE:=
146LOCAL_OEM_MODULE:=
147LOCAL_ODM_MODULE:=
148LOCAL_PRIVILEGED_MODULE:=
149LOCAL_MODULE_OWNER:=
150LOCAL_CTS_TEST_PACKAGE:=
151LOCAL_CTS_TEST_RUNNER:=
152LOCAL_CLANG:=
153LOCAL_ADDRESS_SANITIZER:=
154LOCAL_JAR_EXCLUDE_FILES:=
155LOCAL_JAR_PACKAGES:=
156LOCAL_JAR_EXCLUDE_PACKAGES:=
157LOCAL_LINT_FLAGS:=
158LOCAL_SOURCE_FILES_ALL_GENERATED:= # '',true
159# Don't delete the META_INF dir when merging static Java libraries.
160LOCAL_DONT_DELETE_JAR_META_INF:=
161LOCAL_DONT_DELETE_JAR_DIRS:=
162LOCAL_ADDITIONAL_CERTIFICATES:=
163LOCAL_PREBUILT_MODULE_FILE:=
164LOCAL_POST_LINK_CMD:=
165LOCAL_POST_INSTALL_CMD:=
166LOCAL_DIST_BUNDLED_BINARIES:=
167LOCAL_HAL_STATIC_LIBRARIES:=
168LOCAL_RMTYPEDEFS:=
169LOCAL_NO_SYNTAX_CHECK:=
170LOCAL_NO_STATIC_ANALYZER:=
171LOCAL_32_BIT_ONLY:= # '',true
172LOCAL_MULTILIB:=
173LOCAL_MODULE_TARGET_ARCH:=
174LOCAL_MODULE_TARGET_ARCH_WARN:=
175LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH:=
176LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH_WARN:=
177LOCAL_MODULE_HOST_ARCH:=
178LOCAL_NO_FPIE :=
179LOCAL_CXX_STL := default
180LOCAL_NATIVE_COVERAGE :=
181LOCAL_DPI_VARIANTS:=
182LOCAL_DPI_FILE_STEM:=
183LOCAL_SANITIZE:=
184
185# arch specific variables
186LOCAL_SRC_FILES_$(TARGET_ARCH):=
187LOCAL_CFLAGS_$(TARGET_ARCH):=
188LOCAL_CLANG_CFLAGS_$(TARGET_ARCH):=
189LOCAL_CPPFLAGS_$(TARGET_ARCH):=
190LOCAL_CLANG_CPPFLAGS_$(TARGET_ARCH):=
191LOCAL_C_INCLUDES_$(TARGET_ARCH):=
192LOCAL_ASFLAGS_$(TARGET_ARCH):=
193LOCAL_CLANG_ASFLAGS_$(TARGET_ARCH):=
194LOCAL_NO_CRT_$(TARGET_ARCH):=
195LOCAL_LDFLAGS_$(TARGET_ARCH):=
196LOCAL_CLANG_LDFLAGS_$(TARGET_ARCH):=
197LOCAL_SHARED_LIBRARIES_$(TARGET_ARCH):=
198LOCAL_STATIC_LIBRARIES_$(TARGET_ARCH):=
199LOCAL_WHOLE_STATIC_LIBRARIES_$(TARGET_ARCH):=
200LOCAL_GENERATED_SOURCES_$(TARGET_ARCH):=
201LOCAL_REQUIRED_MODULES_$(TARGET_ARCH):=
202LOCAL_CLANG_$(TARGET_ARCH):=
203LOCAL_PREBUILT_JNI_LIBS_$(TARGET_ARCH):=
204ifdef TARGET_2ND_ARCH
205LOCAL_SRC_FILES_$(TARGET_2ND_ARCH):=
206LOCAL_CFLAGS_$(TARGET_2ND_ARCH):=
207LOCAL_CLANG_CFLAGS_$(TARGET_2ND_ARCH):=
208LOCAL_CPPFLAGS_$(TARGET_2ND_ARCH):=
209LOCAL_CLANG_CPPFLAGS_$(TARGET_2ND_ARCH):=
210LOCAL_C_INCLUDES_$(TARGET_2ND_ARCH):=
211LOCAL_ASFLAGS_$(TARGET_2ND_ARCH):=
212LOCAL_CLANG_ASFLAGS_$(TARGET_2ND_ARCH):=
213LOCAL_NO_CRT_$(TARGET_2ND_ARCH):=
214LOCAL_LDFLAGS_$(TARGET_2ND_ARCH):=
215LOCAL_CLANG_LDFLAGS_$(TARGET_2ND_ARCH):=
216LOCAL_SHARED_LIBRARIES_$(TARGET_2ND_ARCH):=
217LOCAL_STATIC_LIBRARIES_$(TARGET_2ND_ARCH):=
218LOCAL_WHOLE_STATIC_LIBRARIES_$(TARGET_2ND_ARCH):=
219LOCAL_GENERATED_SOURCES_$(TARGET_2ND_ARCH):=
220LOCAL_REQUIRED_MODULES_$(TARGET_2ND_ARCH):=
221LOCAL_CLANG_$(TARGET_2ND_ARCH):=
222LOCAL_PREBUILT_JNI_LIBS_$(TARGET_2ND_ARCH):=
223endif
224LOCAL_SRC_FILES_$(HOST_ARCH):=
225LOCAL_CFLAGS_$(HOST_ARCH):=
226LOCAL_CLANG_CFLAGS_$(HOST_ARCH):=
227LOCAL_CPPFLAGS_$(HOST_ARCH):=
228LOCAL_CLANG_CPPFLAGS_$(HOST_ARCH):=
229LOCAL_C_INCLUDES_$(HOST_ARCH):=
230LOCAL_ASFLAGS_$(HOST_ARCH):=
231LOCAL_CLANG_ASFLAGS_$(HOST_ARCH):=
232LOCAL_NO_CRT_$(HOST_ARCH):=
233LOCAL_LDFLAGS_$(HOST_ARCH):=
234LOCAL_CLANG_LDFLAGS_$(HOST_ARCH):=
235LOCAL_SHARED_LIBRARIES_$(HOST_ARCH):=
236LOCAL_STATIC_LIBRARIES_$(HOST_ARCH):=
237LOCAL_WHOLE_STATIC_LIBRARIES_$(HOST_ARCH):=
238LOCAL_GENERATED_SOURCES_$(HOST_ARCH):=
239LOCAL_REQUIRED_MODULES_$(HOST_ARCH):=
240LOCAL_CLANG_$(HOST_ARCH):=
241ifdef HOST_2ND_ARCH
242LOCAL_SRC_FILES_$(HOST_2ND_ARCH):=
243LOCAL_CFLAGS_$(HOST_2ND_ARCH):=
244LOCAL_CLANG_CFLAGS_$(HOST_2ND_ARCH):=
245LOCAL_CPPFLAGS_$(HOST_2ND_ARCH):=
246LOCAL_CLANG_CPPFLAGS_$(HOST_2ND_ARCH):=
247LOCAL_C_INCLUDES_$(HOST_2ND_ARCH):=
248LOCAL_ASFLAGS_$(HOST_2ND_ARCH):=
249LOCAL_CLANG_ASFLAGS_$(HOST_2ND_ARCH):=
250LOCAL_NO_CRT_$(HOST_2ND_ARCH):=
251LOCAL_LDFLAGS_$(HOST_2ND_ARCH):=
252LOCAL_CLANG_LDFLAGS_$(HOST_2ND_ARCH):=
253LOCAL_SHARED_LIBRARIES_$(HOST_2ND_ARCH):=
254LOCAL_STATIC_LIBRARIES_$(HOST_2ND_ARCH):=
255LOCAL_WHOLE_STATIC_LIBRARIES_$(HOST_2ND_ARCH):=
256LOCAL_GENERATED_SOURCES_$(HOST_2ND_ARCH):=
257LOCAL_REQUIRED_MODULES_$(HOST_2ND_ARCH):=
258LOCAL_CLANG_$(HOST_2ND_ARCH):=
259endif
260
261LOCAL_SRC_FILES_32:=
262LOCAL_SRC_FILES_64:=
263LOCAL_SHARED_LIBRARIES_32:=
264LOCAL_SHARED_LIBRARIES_64:=
265LOCAL_STATIC_LIBRARIES_32:=
266LOCAL_STATIC_LIBRARIES_64:=
267LOCAL_WHOLE_STATIC_LIBRARIES_32:=
268LOCAL_WHOLE_STATIC_LIBRARIES_64:=
269LOCAL_GENERATED_SOURCES_32:=
270LOCAL_GENERATED_SOURCES_64:=
271LOCAL_CFLAGS_32:=
272LOCAL_CFLAGS_64:=
273LOCAL_CPPFLAGS_32:=
274LOCAL_CPPFLAGS_64:=
275LOCAL_LDFLAGS_32:=
276LOCAL_LDFLAGS_64:=
277LOCAL_ASFLAGS_32:=
278LOCAL_ASFLAGS_64:=
279LOCAL_CLANG_CFLAGS_32:=
280LOCAL_CLANG_CFLAGS_64:=
281LOCAL_CLANG_CPPFLAGS_32:=
282LOCAL_CLANG_CPPFLAGS_64:=
283LOCAL_CLANG_LDFLAGS_32:=
284LOCAL_CLANG_LDFLAGS_64:=
285LOCAL_CLANG_ASFLAGS_32:=
286LOCAL_CLANG_ASFLAGS_64:=
287LOCAL_C_INCLUDES_32:=
288LOCAL_C_INCLUDES_64:=
289LOCAL_MODULE_PATH_32:=
290LOCAL_MODULE_PATH_64:=
291LOCAL_MODULE_STEM_32:=
292LOCAL_MODULE_STEM_64:=
293LOCAL_CLANG_32:=
294LOCAL_CLANG_64:=
295
296# Trim MAKEFILE_LIST so that $(call my-dir) doesn't need to
297# iterate over thousands of entries every time.
298# Leave the current makefile to make sure we don't break anything
299# that expects to be able to find the name of the current makefile.
300MAKEFILE_LIST := $(lastword $(MAKEFILE_LIST))
301