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_CONLYFLAGS:= 51LOCAL_RTTI_FLAG:= 52LOCAL_C_INCLUDES:= 53LOCAL_EXPORT_C_INCLUDE_DIRS:= 54LOCAL_LDFLAGS:= 55LOCAL_LDLIBS:= 56LOCAL_AAPT_FLAGS:= 57LOCAL_AAPT_INCLUDE_ALL_RESOURCES:= 58LOCAL_SYSTEM_SHARED_LIBRARIES:=none 59LOCAL_PREBUILT_LIBS:= 60LOCAL_PREBUILT_EXECUTABLES:= 61LOCAL_PREBUILT_JAVA_LIBRARIES:= 62LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES:= 63LOCAL_PREBUILT_STRIP_COMMENTS:= 64LOCAL_INTERMEDIATE_SOURCES:= 65LOCAL_INTERMEDIATE_SOURCE_DIR:= 66LOCAL_JAVACFLAGS:= 67LOCAL_JAVA_LIBRARIES:= 68LOCAL_JAVA_LAYERS_FILE:= 69LOCAL_NO_STANDARD_LIBRARIES:= 70LOCAL_CLASSPATH:= 71LOCAL_DROIDDOC_USE_STANDARD_DOCLET:= 72LOCAL_DROIDDOC_SOURCE_PATH:= 73LOCAL_DROIDDOC_TEMPLATE_DIR:= 74LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:= 75LOCAL_DROIDDOC_ASSET_DIR:= 76LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:= 77LOCAL_DROIDDOC_OPTIONS:= 78LOCAL_DROIDDOC_HTML_DIR:= 79LOCAL_ADDITIONAL_HTML_DIR:= 80LOCAL_ASSET_DIR:= 81LOCAL_RESOURCE_DIR:= 82LOCAL_JAVA_RESOURCE_DIRS:= 83LOCAL_JAVA_RESOURCE_FILES:= 84LOCAL_GENERATED_SOURCES:= 85LOCAL_COPY_HEADERS_TO:= 86LOCAL_COPY_HEADERS:= 87LOCAL_FORCE_STATIC_EXECUTABLE:= 88LOCAL_ADDITIONAL_DEPENDENCIES:= 89LOCAL_COMPRESS_MODULE_SYMBOLS:= 90LOCAL_STRIP_MODULE:= 91LOCAL_JNI_SHARED_LIBRARIES:= 92LOCAL_JNI_SHARED_LIBRARIES_ABI:= 93LOCAL_PREBUILT_JNI_LIBS:= 94LOCAL_JAR_MANIFEST:= 95LOCAL_INSTRUMENTATION_FOR:= 96LOCAL_APK_LIBRARIES:= 97LOCAL_RES_LIBRARIES:= 98LOCAL_MANIFEST_INSTRUMENTATION_FOR:= 99LOCAL_AIDL_INCLUDES:= 100LOCAL_JARJAR_RULES:= 101LOCAL_ADDITIONAL_JAVA_DIR:= 102LOCAL_ALLOW_UNDEFINED_SYMBOLS:= 103LOCAL_DX_FLAGS:= 104LOCAL_CERTIFICATE:= 105LOCAL_SDK_VERSION:= 106LOCAL_SDK_RES_VERSION:= 107LOCAL_NDK_STL_VARIANT:= 108LOCAL_EMMA_INSTRUMENT:= 109LOCAL_PROGUARD_ENABLED:= # '',full,custom,nosystem,disabled,obfuscation,optimization 110LOCAL_PROGUARD_FLAGS:= 111LOCAL_PROGUARD_FLAG_FILES:= 112LOCAL_TEST_MODULE_TO_PROGUARD_WITH:= 113LOCAL_EMMA_COVERAGE_FILTER:= 114LOCAL_WARNINGS_ENABLE:= 115LOCAL_FULL_MANIFEST_FILE:= 116LOCAL_MANIFEST_FILE:= 117LOCAL_FULL_LIBS_MANIFEST_FILES:= 118LOCAL_RENDERSCRIPT_INCLUDES:= 119LOCAL_RENDERSCRIPT_INCLUDES_OVERRIDE:= 120LOCAL_RENDERSCRIPT_CC:= 121LOCAL_RENDERSCRIPT_COMPATIBILITY:= 122LOCAL_RENDERSCRIPT_FLAGS:= 123LOCAL_RENDERSCRIPT_SKIP_INSTALL:= 124LOCAL_RENDERSCRIPT_TARGET_API:= 125LOCAL_DEX_PREOPT:= # '',true,false,nostripping 126LOCAL_DEX_PREOPT_IMAGE_LOCATION:= 127LOCAL_DEX_PREOPT_FLAGS:= 128LOCAL_PROTOC_OPTIMIZE_TYPE:= # lite(default),micro,nano,full 129LOCAL_PROTOC_FLAGS:= 130LOCAL_PROTO_JAVA_OUTPUT_PARAMS:= 131LOCAL_NO_CRT:= 132LOCAL_PROPRIETARY_MODULE:= 133LOCAL_OEM_MODULE:= 134LOCAL_PRIVILEGED_MODULE:= 135LOCAL_MODULE_OWNER:= 136LOCAL_CTS_TEST_PACKAGE:= 137LOCAL_CTS_TEST_RUNNER:= 138LOCAL_CLANG:= 139LOCAL_ADDRESS_SANITIZER:= 140LOCAL_JAR_EXCLUDE_FILES:= 141LOCAL_JAR_PACKAGES:= 142LOCAL_JAR_EXCLUDE_PACKAGES:= 143LOCAL_LINT_FLAGS:= 144LOCAL_SOURCE_FILES_ALL_GENERATED:= # '',true 145# Don't delete the META_INF dir when merging static Java libraries. 146LOCAL_DONT_DELETE_JAR_META_INF:= 147LOCAL_ADDITIONAL_CERTIFICATES:= 148LOCAL_PREBUILT_MODULE_FILE:= 149LOCAL_POST_INSTALL_CMD:= 150LOCAL_DIST_BUNDLED_BINARIES:= 151LOCAL_HAL_STATIC_LIBRARIES:= 152LOCAL_RMTYPEDEFS:= 153LOCAL_NO_SYNTAX_CHECK:= 154LOCAL_NO_STATIC_ANALYZER:= 155LOCAL_32_BIT_ONLY:= # '',true 156LOCAL_MULTILIB:= 157LOCAL_MODULE_TARGET_ARCH:= 158LOCAL_MODULE_TARGET_ARCH_WARN:= 159LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH:= 160LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH_WARN:= 161LOCAL_MODULE_HOST_ARCH:= 162LOCAL_DPI_VARIANTS:= 163LOCAL_DPI_FILE_STEM:= 164 165# arch specific variables 166LOCAL_SRC_FILES_$(TARGET_ARCH):= 167LOCAL_CFLAGS_$(TARGET_ARCH):= 168LOCAL_CPPFLAGS_$(TARGET_ARCH):= 169LOCAL_C_INCLUDES_$(TARGET_ARCH):= 170LOCAL_ASFLAGS_$(TARGET_ARCH):= 171LOCAL_NO_CRT_$(TARGET_ARCH):= 172LOCAL_LDFLAGS_$(TARGET_ARCH):= 173LOCAL_SHARED_LIBRARIES_$(TARGET_ARCH):= 174LOCAL_STATIC_LIBRARIES_$(TARGET_ARCH):= 175LOCAL_WHOLE_STATIC_LIBRARIES_$(TARGET_ARCH):= 176LOCAL_GENERATED_SOURCES_$(TARGET_ARCH):= 177LOCAL_REQUIRED_MODULES_$(TARGET_ARCH):= 178LOCAL_CLANG_$(TARGET_ARCH):= 179LOCAL_PREBUILT_JNI_LIBS_$(TARGET_ARCH):= 180ifdef TARGET_2ND_ARCH 181LOCAL_SRC_FILES_$(TARGET_2ND_ARCH):= 182LOCAL_CFLAGS_$(TARGET_2ND_ARCH):= 183LOCAL_CPPFLAGS_$(TARGET_2ND_ARCH):= 184LOCAL_C_INCLUDES_$(TARGET_2ND_ARCH):= 185LOCAL_ASFLAGS_$(TARGET_2ND_ARCH):= 186LOCAL_NO_CRT_$(TARGET_2ND_ARCH):= 187LOCAL_LDFLAGS_$(TARGET_2ND_ARCH):= 188LOCAL_SHARED_LIBRARIES_$(TARGET_2ND_ARCH):= 189LOCAL_STATIC_LIBRARIES_$(TARGET_2ND_ARCH):= 190LOCAL_WHOLE_STATIC_LIBRARIES_$(TARGET_2ND_ARCH):= 191LOCAL_GENERATED_SOURCES_$(TARGET_2ND_ARCH):= 192LOCAL_REQUIRED_MODULES_$(TARGET_2ND_ARCH):= 193LOCAL_CLANG_$(TARGET_2ND_ARCH):= 194LOCAL_PREBUILT_JNI_LIBS_$(TARGET_2ND_ARCH):= 195endif 196LOCAL_SRC_FILES_$(HOST_ARCH):= 197LOCAL_CFLAGS_$(HOST_ARCH):= 198LOCAL_CPPFLAGS_$(HOST_ARCH):= 199LOCAL_C_INCLUDES_$(HOST_ARCH):= 200LOCAL_ASFLAGS_$(HOST_ARCH):= 201LOCAL_NO_CRT_$(HOST_ARCH):= 202LOCAL_LDFLAGS_$(HOST_ARCH):= 203LOCAL_SHARED_LIBRARIES_$(HOST_ARCH):= 204LOCAL_STATIC_LIBRARIES_$(HOST_ARCH):= 205LOCAL_WHOLE_STATIC_LIBRARIES_$(HOST_ARCH):= 206LOCAL_GENERATED_SOURCES_$(HOST_ARCH):= 207LOCAL_REQUIRED_MODULES_$(HOST_ARCH):= 208LOCAL_CLANG_$(HOST_ARCH):= 209ifdef HOST_2ND_ARCH 210LOCAL_SRC_FILES_$(HOST_2ND_ARCH):= 211LOCAL_CFLAGS_$(HOST_2ND_ARCH):= 212LOCAL_CPPFLAGS_$(HOST_2ND_ARCH):= 213LOCAL_C_INCLUDES_$(HOST_2ND_ARCH):= 214LOCAL_ASFLAGS_$(HOST_2ND_ARCH):= 215LOCAL_NO_CRT_$(HOST_2ND_ARCH):= 216LOCAL_LDFLAGS_$(HOST_2ND_ARCH):= 217LOCAL_SHARED_LIBRARIES_$(HOST_2ND_ARCH):= 218LOCAL_STATIC_LIBRARIES_$(HOST_2ND_ARCH):= 219LOCAL_WHOLE_STATIC_LIBRARIES_$(HOST_2ND_ARCH):= 220LOCAL_GENERATED_SOURCES_$(HOST_2ND_ARCH):= 221LOCAL_REQUIRED_MODULES_$(HOST_2ND_ARCH):= 222LOCAL_CLANG_$(HOST_2ND_ARCH):= 223endif 224 225LOCAL_SRC_FILES_32:= 226LOCAL_SRC_FILES_64:= 227LOCAL_SHARED_LIBRARIES_32:= 228LOCAL_SHARED_LIBRARIES_64:= 229LOCAL_STATIC_LIBRARIES_32:= 230LOCAL_STATIC_LIBRARIES_64:= 231LOCAL_WHOLE_STATIC_LIBRARIES_32:= 232LOCAL_WHOLE_STATIC_LIBRARIES_64:= 233LOCAL_GENERATED_SOURCES_32:= 234LOCAL_GENERATED_SOURCES_64:= 235LOCAL_CFLAGS_32:= 236LOCAL_CFLAGS_64:= 237LOCAL_CPPFLAGS_32:= 238LOCAL_CPPFLAGS_64:= 239LOCAL_LDFLAGS_32:= 240LOCAL_LDFLAGS_64:= 241LOCAL_ASFLAGS_32:= 242LOCAL_ASFLAGS_64:= 243LOCAL_C_INCLUDES_32:= 244LOCAL_C_INCLUDES_64:= 245LOCAL_MODULE_PATH_32:= 246LOCAL_MODULE_PATH_64:= 247LOCAL_MODULE_STEM_32:= 248LOCAL_MODULE_STEM_64:= 249LOCAL_CLANG_32:= 250LOCAL_CLANG_64:= 251 252# Trim MAKEFILE_LIST so that $(call my-dir) doesn't need to 253# iterate over thousands of entries every time. 254# Leave the current makefile to make sure we don't break anything 255# that expects to be able to find the name of the current makefile. 256MAKEFILE_LIST := $(lastword $(MAKEFILE_LIST)) 257