diff options
author | Nelson Li <nelsonli@google.com> | 2023-12-20 02:59:27 +0000 |
---|---|---|
committer | Nelson Li <nelsonli@google.com> | 2024-01-02 06:06:02 +0000 |
commit | cb9a5dd7af10726259f83ac74d5ffe08a38320b2 (patch) | |
tree | 75bb4a38db99513844fc7d675fdd49200918b7e3 /api | |
parent | 44a679e5e041b0ba8d4f1a5609da534afe85965c (diff) | |
download | base-cb9a5dd7af10726259f83ac74d5ffe08a38320b2.tar.gz |
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
Diffstat (limited to 'api')
-rw-r--r-- | api/Android.bp | 9 | ||||
-rw-r--r-- | api/Android.mk | 2 |
2 files changed, 9 insertions, 2 deletions
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", + ], +} diff --git a/api/Android.mk b/api/Android.mk deleted file mode 100644 index ce5f995033c5..000000000000 --- a/api/Android.mk +++ /dev/null @@ -1,2 +0,0 @@ -.PHONY: checkapi -checkapi: frameworks-base-api-current-compat frameworks-base-api-system-current-compat frameworks-base-api-module-lib-current-compat |