From c51b7b0d555385c43322439d42be3794881ca33f Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Fri, 16 Feb 2018 13:31:17 -0800 Subject: [PATCH] Support core_current when exporting resources from a package Bug: 73351844 Test: with https://googleplex-android-review.git.corp.google.com/c/platform/cts/+/3621794 Change-Id: I20b8adf0d7cb5d948ba752e0732bbe84d39a419a --- core/package_internal.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/package_internal.mk b/core/package_internal.mk index 16c07a6dd..cd3a7410a 100644 --- a/core/package_internal.mk +++ b/core/package_internal.mk @@ -471,7 +471,9 @@ ifneq ($(LOCAL_NO_STANDARD_LIBRARIES),true) # 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 system_current test_current,$(LOCAL_SDK_RES_VERSION))$(if $(TARGET_BUILD_APPS),$(filter current system_current test_current,$(LOCAL_SDK_RES_VERSION))),) +ifeq ($(LOCAL_SDK_RES_VERSION),core_current) +# core_current doesn't contain any framework resources. +else ifneq ($(filter-out current system_current test_current,$(LOCAL_SDK_RES_VERSION))$(if $(TARGET_BUILD_APPS),$(filter current system_current test_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