diff options
author | Anton Hansson <hansson@google.com> | 2020-11-05 20:21:08 +0000 |
---|---|---|
committer | Anton Hansson <hansson@google.com> | 2020-11-05 20:26:56 +0000 |
commit | ddf171aaf8699afaa32753aee980386447eb6d30 (patch) | |
tree | f4dd1689e1cfb3ede863a111665ca596c123d8e9 | |
parent | 97f35bbbefe9be8aa74c81a4dd8fff3e52ce2d01 (diff) |
Add genrule for combined srcjar of modules
The sources of the stubs are shipped as part of the public SDK.
Currently the SDK depends on the output of the monolithic metalava run,
but it can be assembled by merging the srcjars of the individual runs.
There is a diff -- module stub sources contain javadoc comments. I don't
think has any negative impact. Also package-info.html files are
included, which probably is fine.
Bug: 169034951
Test: diff new output with existing monolith
Change-Id: Idfc94cdb3317d3bde0b29fd8da0a9ccef47377f9
Merged-In: Idfc94cdb3317d3bde0b29fd8da0a9ccef47377f9
(cherry picked from commit 5d0687a2efc759841aa1749ba5d69eeb4069834a)
-rw-r--r-- | api/Android.bp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/api/Android.bp b/api/Android.bp index 4d7f58edd870..7d810065a38d 100644 --- a/api/Android.bp +++ b/api/Android.bp @@ -57,6 +57,25 @@ genrule { } genrule { + name: "frameworks-base-api-current.srcjar", + srcs: [ + ":api-stubs-docs-non-updatable", + ":conscrypt.module.public.api{.public.stubs.source}", + ":framework-media{.public.stubs.source}", + ":framework-mediaprovider{.public.stubs.source}", + ":framework-permission{.public.stubs.source}", + ":framework-sdkextensions{.public.stubs.source}", + ":framework-statsd{.public.stubs.source}", + ":framework-tethering{.public.stubs.source}", + ":framework-wifi{.public.stubs.source}", + ], + out: ["current.srcjar"], + tools: ["merge_zips"], + cmd: "$(location merge_zips) $(out) $(in)", + visibility: ["//visibility:private"], // Used by make module in //development, mind. +} + +genrule { name: "frameworks-base-api-removed.txt", srcs: [ ":conscrypt.module.public.api{.public.removed-api.txt}", |