2009-03-04 04:28:42 +01:00
|
|
|
###########################################################
|
|
|
|
## Clear out values of all variables used by rule templates.
|
|
|
|
###########################################################
|
|
|
|
|
|
|
|
LOCAL_MODULE:=
|
|
|
|
LOCAL_MODULE_PATH:=
|
2014-01-25 04:23:40 +01:00
|
|
|
LOCAL_MODULE_RELATIVE_PATH :=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_MODULE_STEM:=
|
2009-07-17 21:33:40 +02:00
|
|
|
LOCAL_DONT_CHECK_MODULE:=
|
|
|
|
LOCAL_CHECKED_MODULE:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_BUILT_MODULE:=
|
|
|
|
LOCAL_BUILT_MODULE_STEM:=
|
|
|
|
OVERRIDE_BUILT_MODULE_PATH:=
|
|
|
|
LOCAL_INSTALLED_MODULE:=
|
2013-09-25 00:56:11 +02:00
|
|
|
LOCAL_INSTALLED_MODULE_STEM:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_UNINSTALLABLE_MODULE:=
|
|
|
|
LOCAL_INTERMEDIATE_TARGETS:=
|
|
|
|
LOCAL_UNSTRIPPED_PATH:=
|
|
|
|
LOCAL_MODULE_CLASS:=
|
|
|
|
LOCAL_MODULE_SUFFIX:=
|
|
|
|
LOCAL_PACKAGE_NAME:=
|
|
|
|
LOCAL_OVERRIDES_PACKAGES:=
|
|
|
|
LOCAL_EXPORT_PACKAGE_RESOURCES:=
|
2010-02-06 05:36:42 +01:00
|
|
|
LOCAL_MANIFEST_PACKAGE_NAME:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_REQUIRED_MODULES:=
|
|
|
|
LOCAL_ACP_UNAVAILABLE:=
|
|
|
|
LOCAL_MODULE_TAGS:=
|
|
|
|
LOCAL_SRC_FILES:=
|
|
|
|
LOCAL_PREBUILT_OBJ_FILES:=
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES:=
|
|
|
|
LOCAL_STATIC_LIBRARIES:=
|
2011-04-25 23:22:41 +02:00
|
|
|
# Group static libraries with "-Wl,--start-group" and "-Wl,--end-group" when linking.
|
|
|
|
LOCAL_GROUP_STATIC_LIBRARIES:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES:=
|
|
|
|
LOCAL_SHARED_LIBRARIES:=
|
|
|
|
LOCAL_IS_HOST_MODULE:=
|
|
|
|
LOCAL_CC:=
|
|
|
|
LOCAL_CXX:=
|
|
|
|
LOCAL_CPP_EXTENSION:=
|
|
|
|
LOCAL_NO_DEFAULT_COMPILER_FLAGS:=
|
2013-08-14 02:41:52 +02:00
|
|
|
LOCAL_FDO_SUPPORT:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_ARM_MODE:=
|
|
|
|
LOCAL_YACCFLAGS:=
|
|
|
|
LOCAL_ASFLAGS:=
|
|
|
|
LOCAL_CFLAGS:=
|
|
|
|
LOCAL_CPPFLAGS:=
|
2012-08-15 19:59:10 +02:00
|
|
|
LOCAL_CONLYFLAGS:=
|
2011-06-07 19:55:48 +02:00
|
|
|
LOCAL_RTTI_FLAG:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_C_INCLUDES:=
|
2011-11-08 18:31:21 +01:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_LDFLAGS:=
|
|
|
|
LOCAL_LDLIBS:=
|
|
|
|
LOCAL_AAPT_FLAGS:=
|
2010-12-28 22:14:29 +01:00
|
|
|
LOCAL_AAPT_INCLUDE_ALL_RESOURCES:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES:=none
|
|
|
|
LOCAL_PREBUILT_LIBS:=
|
|
|
|
LOCAL_PREBUILT_EXECUTABLES:=
|
|
|
|
LOCAL_PREBUILT_JAVA_LIBRARIES:=
|
|
|
|
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES:=
|
2009-08-07 06:50:51 +02:00
|
|
|
LOCAL_PREBUILT_STRIP_COMMENTS:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_INTERMEDIATE_SOURCES:=
|
2010-05-18 03:40:39 +02:00
|
|
|
LOCAL_INTERMEDIATE_SOURCE_DIR:=
|
2010-02-01 20:13:32 +01:00
|
|
|
LOCAL_JAVACFLAGS:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_JAVA_LIBRARIES:=
|
2011-10-31 05:37:35 +01:00
|
|
|
LOCAL_JAVA_LAYERS_FILE:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_NO_STANDARD_LIBRARIES:=
|
|
|
|
LOCAL_CLASSPATH:=
|
2009-04-10 04:31:12 +02:00
|
|
|
LOCAL_DROIDDOC_USE_STANDARD_DOCLET:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_DROIDDOC_SOURCE_PATH:=
|
|
|
|
LOCAL_DROIDDOC_TEMPLATE_DIR:=
|
|
|
|
LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR:=
|
|
|
|
LOCAL_DROIDDOC_ASSET_DIR:=
|
|
|
|
LOCAL_DROIDDOC_CUSTOM_ASSET_DIR:=
|
|
|
|
LOCAL_DROIDDOC_OPTIONS:=
|
|
|
|
LOCAL_DROIDDOC_HTML_DIR:=
|
2013-02-09 00:45:45 +01:00
|
|
|
LOCAL_ADDITIONAL_HTML_DIR:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_ASSET_FILES:=
|
|
|
|
LOCAL_ASSET_DIR:=
|
|
|
|
LOCAL_RESOURCE_DIR:=
|
|
|
|
LOCAL_JAVA_RESOURCE_DIRS:=
|
|
|
|
LOCAL_JAVA_RESOURCE_FILES:=
|
|
|
|
LOCAL_GENERATED_SOURCES:=
|
|
|
|
LOCAL_COPY_HEADERS_TO:=
|
|
|
|
LOCAL_COPY_HEADERS:=
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE:=
|
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES:=
|
|
|
|
LOCAL_COMPRESS_MODULE_SYMBOLS:=
|
|
|
|
LOCAL_STRIP_MODULE:=
|
|
|
|
LOCAL_JNI_SHARED_LIBRARIES:=
|
2010-06-18 09:38:07 +02:00
|
|
|
LOCAL_JNI_SHARED_LIBRARIES_ABI:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_JAR_MANIFEST:=
|
|
|
|
LOCAL_INSTRUMENTATION_FOR:=
|
2013-03-12 02:04:55 +01:00
|
|
|
LOCAL_APK_LIBRARIES:=
|
2010-09-03 00:41:01 +02:00
|
|
|
LOCAL_MANIFEST_INSTRUMENTATION_FOR:=
|
2009-03-04 04:28:42 +01:00
|
|
|
LOCAL_AIDL_INCLUDES:=
|
|
|
|
LOCAL_JARJAR_RULES:=
|
|
|
|
LOCAL_ADDITIONAL_JAVA_DIR:=
|
|
|
|
LOCAL_ALLOW_UNDEFINED_SYMBOLS:=
|
|
|
|
LOCAL_DX_FLAGS:=
|
|
|
|
LOCAL_CERTIFICATE:=
|
|
|
|
LOCAL_SDK_VERSION:=
|
2011-09-19 02:34:29 +02:00
|
|
|
LOCAL_SDK_RES_VERSION:=
|
2011-03-04 03:53:53 +01:00
|
|
|
LOCAL_NDK_STL_VARIANT:=
|
2012-08-22 01:59:01 +02:00
|
|
|
LOCAL_EMMA_INSTRUMENT:=
|
2013-08-22 03:32:49 +02:00
|
|
|
LOCAL_PROGUARD_ENABLED:= # '',full,custom,nosystem,disabled,obfuscation,optimization
|
2009-08-30 22:39:24 +02:00
|
|
|
LOCAL_PROGUARD_FLAGS:=
|
2010-09-29 23:50:41 +02:00
|
|
|
LOCAL_PROGUARD_FLAG_FILES:=
|
2014-02-08 19:31:36 +01:00
|
|
|
LOCAL_TEST_MODULE_TO_PROGUARD_WITH:=
|
2010-03-11 00:48:03 +01:00
|
|
|
LOCAL_EMMA_COVERAGE_FILTER:=
|
2010-07-07 20:42:19 +02:00
|
|
|
LOCAL_WARNINGS_ENABLE:=
|
2012-04-12 19:20:53 +02:00
|
|
|
LOCAL_FULL_MANIFEST_FILE:=
|
2010-07-23 20:03:29 +02:00
|
|
|
LOCAL_MANIFEST_FILE:=
|
2014-02-06 03:24:45 +01:00
|
|
|
LOCAL_FULL_LIBS_MANIFEST_FILES:=
|
2010-09-01 22:28:52 +02:00
|
|
|
LOCAL_RENDERSCRIPT_INCLUDES:=
|
2011-08-24 07:01:49 +02:00
|
|
|
LOCAL_RENDERSCRIPT_INCLUDES_OVERRIDE:=
|
2011-05-26 02:16:22 +02:00
|
|
|
LOCAL_RENDERSCRIPT_CC:=
|
2012-11-29 01:52:41 +01:00
|
|
|
LOCAL_RENDERSCRIPT_COMPATIBILITY:=
|
2011-12-07 03:43:24 +01:00
|
|
|
LOCAL_RENDERSCRIPT_FLAGS:=
|
2013-02-07 01:19:30 +01:00
|
|
|
LOCAL_RENDERSCRIPT_SKIP_INSTALL:=
|
2011-08-30 03:53:53 +02:00
|
|
|
LOCAL_RENDERSCRIPT_TARGET_API:=
|
2010-09-11 01:19:24 +02:00
|
|
|
LOCAL_BUILD_HOST_DEX:=
|
2011-10-24 21:17:03 +02:00
|
|
|
LOCAL_DEX_PREOPT:= # '',true,false,nostripping
|
2013-11-15 08:44:56 +01:00
|
|
|
LOCAL_DEX_PREOPT_IMAGE:=
|
2013-03-28 22:02:14 +01:00
|
|
|
LOCAL_PROTOC_OPTIMIZE_TYPE:= # lite(default),micro,nano,full
|
2010-11-05 19:30:58 +01:00
|
|
|
LOCAL_PROTOC_FLAGS:=
|
2013-07-25 21:28:19 +02:00
|
|
|
LOCAL_PROTO_JAVA_OUTPUT_PARAMS:=
|
2011-02-05 05:15:00 +01:00
|
|
|
LOCAL_NO_CRT:=
|
2011-09-13 22:57:26 +02:00
|
|
|
LOCAL_PROPRIETARY_MODULE:=
|
2013-05-09 00:49:08 +02:00
|
|
|
LOCAL_PRIVILEGED_MODULE:=
|
2011-12-10 00:11:57 +01:00
|
|
|
LOCAL_MODULE_OWNER:=
|
2011-12-13 08:54:49 +01:00
|
|
|
LOCAL_CTS_TEST_PACKAGE:=
|
2012-03-13 00:49:58 +01:00
|
|
|
LOCAL_CTS_TEST_RUNNER:=
|
2012-03-20 15:00:16 +01:00
|
|
|
LOCAL_CLANG:=
|
2012-03-30 10:15:12 +02:00
|
|
|
LOCAL_ADDRESS_SANITIZER:=
|
2012-06-19 19:40:37 +02:00
|
|
|
LOCAL_JAR_EXCLUDE_FILES:=
|
2013-07-18 05:29:51 +02:00
|
|
|
LOCAL_JAR_PACKAGES:=
|
2012-06-19 03:45:40 +02:00
|
|
|
LOCAL_LINT_FLAGS:=
|
2012-07-19 23:38:43 +02:00
|
|
|
LOCAL_SOURCE_FILES_ALL_GENERATED:= # '',true
|
2012-08-30 21:59:42 +02:00
|
|
|
# Don't delete the META_INF dir when merging static Java libraries.
|
|
|
|
LOCAL_DONT_DELETE_JAR_META_INF:=
|
2012-11-13 19:55:28 +01:00
|
|
|
LOCAL_ADDITIONAL_CERTIFICATES:=
|
Build from source or prebuilt
With this change, you can easily switch between building from source
code and prebuilt.
Set LOCAL_PREBUILT_MODULE_FILE to the path of the prebuilt file,
relative to the top of the source tree, in the usual module definition.
The prebuilt will be used unless any of the followings satisfied:
1) ANDROID_BUILD_FROM_SOURCE is "true", which disable prebuilt globally;
2) The module name is in ANDROID_NO_PREBUILT_MODULES;
3) The LOCAL_PATH is prefixed by any of ANDROID_NO_PREBUILT_PATHS.
A developer can set ANDROID_NO_PREBUILT_MODULES or
ANDROID_NO_PREBUILT_PATHS to build only his own module(s) from source,
while build other modules from prebuilts.
You can set ANDROID_BUILD_FROM_SOURCE to true to build everything from
source.
Those variables can be set with shell environmental variable or in your
buildspec.mk.
Sometimes module B is able to be built from source only if module A is
also
built from source, for example, if B is the test apk of A.
In that case, you can use the macro include-if-build-from-source to
include B's Android.mk only if A is built from source too, or
if-build-from-source to conditionally include the definition of module
B,
if their module definitions are in the same Android.mk.
Support host-executable-hook and host-shared-library-hook.
Change-Id: Icab7cf028c87eaba0dd7efc2a7749fd6f32b44e4
2012-12-14 03:23:01 +01:00
|
|
|
LOCAL_PREBUILT_MODULE_FILE:=
|
2013-02-06 20:44:41 +01:00
|
|
|
LOCAL_POST_INSTALL_CMD:=
|
2013-04-11 04:17:41 +02:00
|
|
|
LOCAL_DIST_BUNDLED_BINARIES:=
|
2013-08-13 21:35:10 +02:00
|
|
|
LOCAL_HAL_STATIC_LIBRARIES:=
|
2013-08-15 01:59:00 +02:00
|
|
|
LOCAL_RMTYPEDEFS:=
|
2013-08-27 11:55:46 +02:00
|
|
|
LOCAL_NO_SYNTAX_CHECK:=
|
2013-09-10 11:37:14 +02:00
|
|
|
LOCAL_NO_STATIC_ANALYZER:=
|
2014-01-30 03:20:01 +01:00
|
|
|
LOCAL_32_BIT_ONLY:= # '',true
|
2014-01-18 01:17:28 +01:00
|
|
|
LOCAL_NO_2ND_ARCH:= # '',true
|
2014-02-06 23:45:37 +01:00
|
|
|
LOCAL_MODULE_TARGET_ARCH:=
|
|
|
|
LOCAL_MODULE_TARGET_ARCH_WARN:=
|
|
|
|
LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH:=
|
|
|
|
LOCAL_MODULE_UNSUPPORTED_TARGET_ARCH_WARN:=
|
2009-03-04 04:28:42 +01:00
|
|
|
|
2014-01-24 00:09:04 +01:00
|
|
|
# arch specific variables
|
|
|
|
LOCAL_SRC_FILES_$(TARGET_ARCH):=
|
|
|
|
LOCAL_CFLAGS_$(TARGET_ARCH):=
|
2014-02-13 06:15:12 +01:00
|
|
|
LOCAL_CPPFLAGS_$(TARGET_ARCH):=
|
2014-01-27 19:27:19 +01:00
|
|
|
LOCAL_C_INCLUDES_$(TARGET_ARCH):=
|
2014-01-24 00:09:04 +01:00
|
|
|
LOCAL_ASFLAGS_$(TARGET_ARCH):=
|
|
|
|
LOCAL_NO_CRT_$(TARGET_ARCH):=
|
|
|
|
LOCAL_LDFLAGS_$(TARGET_ARCH):=
|
2014-02-04 23:53:25 +01:00
|
|
|
LOCAL_SHARED_LIBRARIES_$(TARGET_ARCH):=
|
|
|
|
LOCAL_STATIC_LIBRARIES_$(TARGET_ARCH):=
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES_$(TARGET_ARCH):=
|
|
|
|
LOCAL_GENERATED_SOURCES_$(TARGET_ARCH):=
|
|
|
|
LOCAL_REQUIRED_MODULES_$(TARGET_ARCH):=
|
2014-01-24 00:09:04 +01:00
|
|
|
ifdef TARGET_2ND_ARCH
|
|
|
|
LOCAL_SRC_FILES_$(TARGET_2ND_ARCH):=
|
|
|
|
LOCAL_CFLAGS_$(TARGET_2ND_ARCH):=
|
2014-02-13 06:15:12 +01:00
|
|
|
LOCAL_CPPFLAGS_$(TARGET_2ND_ARCH):=
|
2014-01-27 19:27:19 +01:00
|
|
|
LOCAL_C_INCLUDES_$(TARGET_2ND_ARCH):=
|
2014-01-24 00:09:04 +01:00
|
|
|
LOCAL_ASFLAGS_$(TARGET_2ND_ARCH):=
|
|
|
|
LOCAL_NO_CRT_$(TARGET_2ND_ARCH):=
|
|
|
|
LOCAL_LDFLAGS_$(TARGET_2ND_ARCH):=
|
2014-02-04 23:53:25 +01:00
|
|
|
LOCAL_SHARED_LIBRARIES_$(TARGET_2ND_ARCH):=
|
|
|
|
LOCAL_STATIC_LIBRARIES_$(TARGET_2ND_ARCH):=
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES_$(TARGET_2ND_ARCH):=
|
|
|
|
LOCAL_GENERATED_SOURCES_$(TARGET_2ND_ARCH):=
|
|
|
|
LOCAL_REQUIRED_MODULES_$(TARGET_2ND_ARCH):=
|
2014-01-24 00:09:04 +01:00
|
|
|
endif
|
|
|
|
|
2014-02-13 06:15:12 +01:00
|
|
|
LOCAL_SRC_FILES_32:=
|
|
|
|
LOCAL_SRC_FILES_64:=
|
|
|
|
LOCAL_SHARED_LIBRARIES_32:=
|
|
|
|
LOCAL_SHARED_LIBRARIES_64:=
|
|
|
|
LOCAL_STATIC_LIBRARIES_32:=
|
|
|
|
LOCAL_STATIC_LIBRARIES_64:=
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES_32:=
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES_64:=
|
|
|
|
LOCAL_GENERATED_SOURCES_32:=
|
|
|
|
LOCAL_GENERATED_SOURCES_64:=
|
2014-01-30 02:46:37 +01:00
|
|
|
LOCAL_CFLAGS_32:=
|
|
|
|
LOCAL_CFLAGS_64:=
|
2014-02-13 06:15:12 +01:00
|
|
|
LOCAL_CPPFLAGS_32:=
|
|
|
|
LOCAL_CPPFLAGS_64:=
|
2014-01-30 02:46:37 +01:00
|
|
|
LOCAL_LDFLAGS_32:=
|
|
|
|
LOCAL_LDFLAGS_64:=
|
|
|
|
LOCAL_ASFLAGS_32:=
|
|
|
|
LOCAL_ASFLAGS_64:=
|
|
|
|
LOCAL_C_INCLUDES_32:=
|
|
|
|
LOCAL_C_INCLUDES_64:=
|
|
|
|
|
2009-03-04 04:28:42 +01:00
|
|
|
# Trim MAKEFILE_LIST so that $(call my-dir) doesn't need to
|
|
|
|
# iterate over thousands of entries every time.
|
|
|
|
# Leave the current makefile to make sure we don't break anything
|
|
|
|
# that expects to be able to find the name of the current makefile.
|
|
|
|
MAKEFILE_LIST := $(lastword $(MAKEFILE_LIST))
|