summaryrefslogtreecommitdiffstats
path: root/core/package_internal.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-07-19 17:00:50 -0700
committerYing Wang <wangying@google.com>2014-07-19 17:00:50 -0700
commitefb935800bce97abe0938270ba4c9cd3af6fb7b9 (patch)
treefbce59b895518f4815a7c17e28d4e382fc268c48 /core/package_internal.mk
parent50367cc77db4f576f6e7421e6b302395d202482e (diff)
downloadbuild-efb935800bce97abe0938270ba4c9cd3af6fb7b9.zip
build-efb935800bce97abe0938270ba4c9cd3af6fb7b9.tar.gz
build-efb935800bce97abe0938270ba4c9cd3af6fb7b9.tar.bz2
Support "LOCAL_SDK_VERSION := system_current"
A module can declare "LOCAL_SDK_VERSION := system_current" to build against the android system stubs generated from source. For now this is only supported in platform build. Change-Id: I1e9bbd159886bc0ea3a02b1dc4cbcb1a56e9cb15
Diffstat (limited to 'core/package_internal.mk')
-rw-r--r--core/package_internal.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/package_internal.mk b/core/package_internal.mk
index 12d878e..c76792d 100644
--- a/core/package_internal.mk
+++ b/core/package_internal.mk
@@ -194,7 +194,7 @@ include $(BUILD_SYSTEM)/android_manifest.mk
$(LOCAL_INTERMEDIATE_TARGETS): \
PRIVATE_ANDROID_MANIFEST := $(full_android_manifest)
-ifneq (,$(filter-out current, $(LOCAL_SDK_VERSION)))
+ifneq (,$(filter-out current system_current, $(LOCAL_SDK_VERSION)))
$(LOCAL_INTERMEDIATE_TARGETS): \
PRIVATE_DEFAULT_APP_TARGET_SDK := $(LOCAL_SDK_VERSION)
else
@@ -282,7 +282,7 @@ else
# Most packages should link against the resources defined by framework-res.
# Even if they don't have their own resources, they may use framework
# resources.
-ifneq ($(filter-out current,$(LOCAL_SDK_RES_VERSION))$(if $(TARGET_BUILD_APPS),$(filter current,$(LOCAL_SDK_RES_VERSION))),)
+ifneq ($(filter-out current system_current,$(LOCAL_SDK_RES_VERSION))$(if $(TARGET_BUILD_APPS),$(filter current system_current,$(LOCAL_SDK_RES_VERSION))),)
# for released sdk versions, the platform resources were built into android.jar.
framework_res_package_export := \
$(HISTORICAL_SDK_VERSIONS_ROOT)/$(LOCAL_SDK_RES_VERSION)/android.jar