From cb9a5dd7af10726259f83ac74d5ffe08a38320b2 Mon Sep 17 00:00:00 2001 From: Nelson Li Date: Wed, 20 Dec 2023 02:59:27 +0000 Subject: Convert .PHONY target of `checkapi ` to Android.bp Since Soong has been able to correctly add dependencies to .PHONY targets since aosp/2884366, it is now possible to directly use `phony_deps` to add the genrules used by `checkapi` to its dependencies and convert them to Android.bp. Bug: 309730110 Test: m checkapi Change-Id: Ideb9f647415423a5864d221b85442b995ac67906 --- api/Android.bp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'api/Android.bp') diff --git a/api/Android.bp b/api/Android.bp index 53988cd373b8..00841264c0f1 100644 --- a/api/Android.bp +++ b/api/Android.bp @@ -458,3 +458,12 @@ genrule { targets: ["droid"], }, } + +phony_rule { + name: "checkapi", + phony_deps: [ + "frameworks-base-api-current-compat", + "frameworks-base-api-system-current-compat", + "frameworks-base-api-module-lib-current-compat", + ], +} -- cgit v1.2.3-59-g8ed1b