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