2009-03-04 11:28:42 +08:00
|
|
|
###########################################################
|
|
|
|
## Clear out values of all variables used by rule templates.
|
|
|
|
###########################################################
|
|
|
|
|
|
|
|
LOCAL_MODULE:=
|
|
|
|
LOCAL_MODULE_PATH:=
|
|
|
|
LOCAL_MODULE_STEM:=
|
2009-07-18 03:33:40 +08:00
|
|
|
LOCAL_DONT_CHECK_MODULE:=
|
|
|
|
LOCAL_CHECKED_MODULE:=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_BUILT_MODULE:=
|
|
|
|
LOCAL_BUILT_MODULE_STEM:=
|
|
|
|
OVERRIDE_BUILT_MODULE_PATH:=
|
|
|
|
LOCAL_INSTALLED_MODULE:=
|
|
|
|
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 12:36:42 +08:00
|
|
|
LOCAL_MANIFEST_PACKAGE_NAME:=
|
2009-03-04 11:28:42 +08: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-26 05:22:41 +08:00
|
|
|
# Group static libraries with "-Wl,--start-group" and "-Wl,--end-group" when linking.
|
|
|
|
LOCAL_GROUP_STATIC_LIBRARIES:=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES:=
|
|
|
|
LOCAL_SHARED_LIBRARIES:=
|
|
|
|
LOCAL_IS_HOST_MODULE:=
|
|
|
|
LOCAL_CC:=
|
|
|
|
LOCAL_CXX:=
|
|
|
|
LOCAL_CPP_EXTENSION:=
|
|
|
|
LOCAL_NO_DEFAULT_COMPILER_FLAGS:=
|
2009-09-22 07:31:50 +08:00
|
|
|
LOCAL_NO_FDO_SUPPORT :=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_ARM_MODE:=
|
|
|
|
LOCAL_YACCFLAGS:=
|
|
|
|
LOCAL_ASFLAGS:=
|
|
|
|
LOCAL_CFLAGS:=
|
|
|
|
LOCAL_CPPFLAGS:=
|
2012-08-16 01:59:10 +08:00
|
|
|
LOCAL_CONLYFLAGS:=
|
2011-06-08 01:55:48 +08:00
|
|
|
LOCAL_RTTI_FLAG:=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_C_INCLUDES:=
|
2011-11-09 01:31:21 +08:00
|
|
|
LOCAL_EXPORT_C_INCLUDE_DIRS:=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_LDFLAGS:=
|
|
|
|
LOCAL_LDLIBS:=
|
|
|
|
LOCAL_AAPT_FLAGS:=
|
2010-12-29 05:14:29 +08:00
|
|
|
LOCAL_AAPT_INCLUDE_ALL_RESOURCES:=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_SYSTEM_SHARED_LIBRARIES:=none
|
|
|
|
LOCAL_PREBUILT_LIBS:=
|
|
|
|
LOCAL_PREBUILT_EXECUTABLES:=
|
|
|
|
LOCAL_PREBUILT_JAVA_LIBRARIES:=
|
|
|
|
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES:=
|
2009-08-07 12:50:51 +08:00
|
|
|
LOCAL_PREBUILT_STRIP_COMMENTS:=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_INTERMEDIATE_SOURCES:=
|
2010-05-18 09:40:39 +08:00
|
|
|
LOCAL_INTERMEDIATE_SOURCE_DIR:=
|
2010-02-02 03:13:32 +08:00
|
|
|
LOCAL_JAVACFLAGS:=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_JAVA_LIBRARIES:=
|
2011-10-31 12:37:35 +08:00
|
|
|
LOCAL_JAVA_LAYERS_FILE:=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_NO_STANDARD_LIBRARIES:=
|
|
|
|
LOCAL_CLASSPATH:=
|
2009-04-10 10:31:12 +08:00
|
|
|
LOCAL_DROIDDOC_USE_STANDARD_DOCLET:=
|
2009-03-04 11:28:42 +08: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 07:45:45 +08:00
|
|
|
LOCAL_ADDITIONAL_HTML_DIR:=
|
2009-03-04 11:28:42 +08: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:=
|
2012-06-15 15:15:50 +08:00
|
|
|
LOCAL_ENABLE_APROF:=
|
|
|
|
LOCAL_ENABLE_APROF_JNI:=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_COMPRESS_MODULE_SYMBOLS:=
|
|
|
|
LOCAL_STRIP_MODULE:=
|
|
|
|
LOCAL_JNI_SHARED_LIBRARIES:=
|
2010-06-18 15:38:07 +08:00
|
|
|
LOCAL_JNI_SHARED_LIBRARIES_ABI:=
|
2009-03-04 11:28:42 +08:00
|
|
|
LOCAL_JAR_MANIFEST:=
|
|
|
|
LOCAL_INSTRUMENTATION_FOR:=
|
2013-03-12 09:04:55 +08:00
|
|
|
LOCAL_APK_LIBRARIES:=
|
2010-09-03 06:41:01 +08:00
|
|
|
LOCAL_MANIFEST_INSTRUMENTATION_FOR:=
|
2009-03-04 11:28:42 +08: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 08:34:29 +08:00
|
|
|
LOCAL_SDK_RES_VERSION:=
|
2011-03-04 10:53:53 +08:00
|
|
|
LOCAL_NDK_STL_VARIANT:=
|
2012-08-22 07:59:01 +08:00
|
|
|
LOCAL_EMMA_INSTRUMENT:=
|
2013-01-12 07:31:06 +08:00
|
|
|
LOCAL_PROGUARD_ENABLED:= # '',full,custom,nosystem,disabled
|
2009-08-31 04:39:24 +08:00
|
|
|
LOCAL_PROGUARD_FLAGS:=
|
2010-09-30 05:50:41 +08:00
|
|
|
LOCAL_PROGUARD_FLAG_FILES:=
|
2010-03-11 07:48:03 +08:00
|
|
|
LOCAL_EMMA_COVERAGE_FILTER:=
|
2010-07-08 02:42:19 +08:00
|
|
|
LOCAL_WARNINGS_ENABLE:=
|
2012-04-13 01:20:53 +08:00
|
|
|
LOCAL_FULL_MANIFEST_FILE:=
|
2010-07-24 02:03:29 +08:00
|
|
|
LOCAL_MANIFEST_FILE:=
|
2010-09-02 04:28:52 +08:00
|
|
|
LOCAL_RENDERSCRIPT_INCLUDES:=
|
2011-08-24 13:01:49 +08:00
|
|
|
LOCAL_RENDERSCRIPT_INCLUDES_OVERRIDE:=
|
2011-05-26 08:16:22 +08:00
|
|
|
LOCAL_RENDERSCRIPT_CC:=
|
2012-11-29 08:52:41 +08:00
|
|
|
LOCAL_RENDERSCRIPT_COMPATIBILITY:=
|
2011-12-07 10:43:24 +08:00
|
|
|
LOCAL_RENDERSCRIPT_FLAGS:=
|
2013-02-07 08:19:30 +08:00
|
|
|
LOCAL_RENDERSCRIPT_SKIP_INSTALL:=
|
2011-08-30 09:53:53 +08:00
|
|
|
LOCAL_RENDERSCRIPT_TARGET_API:=
|
2010-09-11 07:19:24 +08:00
|
|
|
LOCAL_BUILD_HOST_DEX:=
|
2011-10-25 03:17:03 +08:00
|
|
|
LOCAL_DEX_PREOPT:= # '',true,false,nostripping
|
2013-03-29 05:02:14 +08:00
|
|
|
LOCAL_PROTOC_OPTIMIZE_TYPE:= # lite(default),micro,nano,full
|
2010-11-06 02:30:58 +08:00
|
|
|
LOCAL_PROTOC_FLAGS:=
|
2011-02-05 12:15:00 +08:00
|
|
|
LOCAL_NO_CRT:=
|
2011-09-14 04:57:26 +08:00
|
|
|
LOCAL_PROPRIETARY_MODULE:=
|
2011-12-10 07:11:57 +08:00
|
|
|
LOCAL_MODULE_OWNER:=
|
2011-12-13 15:54:49 +08:00
|
|
|
LOCAL_CTS_TEST_PACKAGE:=
|
2012-03-13 07:49:58 +08:00
|
|
|
LOCAL_CTS_TEST_RUNNER:=
|
2012-03-20 22:00:16 +08:00
|
|
|
LOCAL_CLANG:=
|
2012-03-30 16:15:12 +08:00
|
|
|
LOCAL_ADDRESS_SANITIZER:=
|
2012-06-20 01:40:37 +08:00
|
|
|
LOCAL_JAR_EXCLUDE_FILES:=
|
2012-06-19 09:45:40 +08:00
|
|
|
LOCAL_LINT_FLAGS:=
|
2012-07-20 05:38:43 +08:00
|
|
|
LOCAL_SOURCE_FILES_ALL_GENERATED:= # '',true
|
2012-08-31 03:59:42 +08:00
|
|
|
# Don't delete the META_INF dir when merging static Java libraries.
|
|
|
|
LOCAL_DONT_DELETE_JAR_META_INF:=
|
2012-11-14 02:55:28 +08: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 10:23:01 +08:00
|
|
|
LOCAL_PREBUILT_MODULE_FILE:=
|
2013-02-07 03:44:41 +08:00
|
|
|
LOCAL_POST_INSTALL_CMD:=
|
2013-04-11 10:17:41 +08:00
|
|
|
LOCAL_DIST_BUNDLED_BINARIES:=
|
2009-03-04 11:28:42 +08: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))
|