From 6023db8844b79ca27a9f780135a4f25242f78a0a Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Fri, 27 Apr 2018 16:23:38 +0900 Subject: [PATCH] java_sdk_library supports test as another API scope When a module built with LOCAL_SDK_VERSION := test_current, then it is linked against test variant of the sdk stubs library. Bug: 77575606 Test: m -j Change-Id: I08ce120d8e4774722a95bfc4e200ad7d123abc70 --- core/java_common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java_common.mk b/core/java_common.mk index 9245e201f..99fa6d20f 100644 --- a/core/java_common.mk +++ b/core/java_common.mk @@ -269,7 +269,7 @@ ifndef LOCAL_IS_HOST_MODULE sdk_lib_suffix := .stubs.system else ifeq (test_current,$(LOCAL_SDK_VERSION)) sdk_module := android_test_stubs_current - sdk_lib_suffix = $(call pretty-error,LOCAL_SDK_LIBRARIES not supported for LOCAL_SDK_VERSION = test_current) + sdk_lib_suffix := .stubs.test else ifeq (core_current,$(LOCAL_SDK_VERSION)) sdk_module := core.current.stubs sdk_lib_suffix = $(call pretty-error,LOCAL_SDK_LIBRARIES not supported for LOCAL_SDK_VERSION = core_current)