From a059c71348fbd21264e510e995c125f36473c3c0 Mon Sep 17 00:00:00 2001 From: Sundong Ahn Date: Mon, 4 Jun 2018 14:14:18 +0900 Subject: [PATCH] Support java sdk libraries Sdk addon has been allowed for libraries built with Android.mk. But some of the libraries included in the Sdk addon should be built with java_sdk_library. module-stubs-files function is modified for supporting java_sdk_library modules. Bug:77577799 Test: make -j Change-Id: If289e5aa5b5016901ff9b69da8fc7f7d8138a456 --- core/definitions.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/definitions.mk b/core/definitions.mk index 9c7f8b648..845daa539 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -657,7 +657,8 @@ endef ########################################################### define module-stubs-files -$(foreach module,$(1),$(ALL_MODULES.$(module).STUBS)) +$(foreach module,$(1),$(if $(filter $(module),$(JAVA_SDK_LIBRARIES)),\ +$(call java-lib-files,$(module).stubs),$(ALL_MODULES.$(module).STUBS))) endef ###########################################################