Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12966aff authored by Mathew Inwood's avatar Mathew Inwood Committed by android-build-merger
Browse files

Merge "Pass public API list to class2greylist tool."

am: c296e5ee

Change-Id: I9c14f682f4bf55a7c2cc6902edbfeb0a3bfc83a1
parents 70c448f6 c296e5ee
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2875,12 +2875,15 @@ endef

# Generate a greylist.txt from a classes.jar
define hiddenapi-generate-greylist-txt
$(2): $(1) $(CLASS2GREYLIST)
	$(CLASS2GREYLIST) $(1) > $(2)
ifneq (,$(wildcard frameworks/base))
# 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): \
    PRIVATE_GREYLIST_INPUTS := $$(PRIVATE_GREYLIST_INPUTS) $(2)
endif
endef

# File names for intermediate dex files of `hiddenapi-copy-soong-jar`.