Merge "Pass public API list to class2greylist tool."
This commit is contained in:
@@ -2875,12 +2875,15 @@ endef
|
|||||||
|
|
||||||
# Generate a greylist.txt from a classes.jar
|
# Generate a greylist.txt from a classes.jar
|
||||||
define hiddenapi-generate-greylist-txt
|
define hiddenapi-generate-greylist-txt
|
||||||
$(2): $(1) $(CLASS2GREYLIST)
|
ifneq (,$(wildcard frameworks/base))
|
||||||
$(CLASS2GREYLIST) $(1) > $(2)
|
# Only generate this target if we're in a tree with frameworks/base present.
|
||||||
|
$(2): $(1) $(CLASS2GREYLIST) $(INTERNAL_PLATFORM_HIDDENAPI_PUBLIC_LIST)
|
||||||
|
$(CLASS2GREYLIST) --public-api-list $(INTERNAL_PLATFORM_HIDDENAPI_PUBLIC_LIST) $(1) > $(2)
|
||||||
|
|
||||||
$(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST): $(2)
|
$(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST): $(2)
|
||||||
$(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST): \
|
$(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST): \
|
||||||
PRIVATE_GREYLIST_INPUTS := $$(PRIVATE_GREYLIST_INPUTS) $(2)
|
PRIVATE_GREYLIST_INPUTS := $$(PRIVATE_GREYLIST_INPUTS) $(2)
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# File names for intermediate dex files of `hiddenapi-copy-soong-jar`.
|
# File names for intermediate dex files of `hiddenapi-copy-soong-jar`.
|
||||||
|
Reference in New Issue
Block a user