So that these can be built independently from the large sdk zip. The old
Make-based implementation created this as part of the large sdk zip,
then extracted it from that zip file.
This topic only adds the new definitions under a different filename,
full replacement will come in a follow-on CL.
Once we fully transitions to this mechanism, we'll be able to turn down
most modules on Macs, only building these and their dependencies.
Bug: 187222815
Change-Id: If6be8dd573a323ef8b343bc86116ffa3d43922a5
frameworks/base/StubLibraries.bp is the place where the droidstubs and
java_library modules for the API stub libraries are defined.
Bug: N/A
Test: m
Exempt-From-Owner-Approval: cherry-pick from internal
Merged-In: I407d0d939582841ffa651488bf76667ab7ce9c64
(cherry picked from commit f371ec46ec)
Change-Id: I407d0d939582841ffa651488bf76667ab7ce9c64
The no_standard_libs property is deprecated in favor of
sdk_version:"none" as the latter is simpler and less error prone.
Bug: 134566750
Test: m droid
Change-Id: I410e4b98481cec1a5512cd138f735038a725287b
Since api-stubs-docs have been deleted and replaced by Metalava.
Test: m -j checkbuild
Bug: b/70351683 b/78245848
Change-Id: I6dc8b8f903f77699b90cd5e28c55f74c14a20b54
Merged-In: I6dc8b8f903f77699b90cd5e28c55f74c14a20b54
Add 'compile_dex' flag to API stub rules. Soong will generate build
targets which compile the JARs into dex files. Those will be compared
against the boot class path dex files to determine the public API surface.
Bug: 79409988
Test: m android_stubs_current, check javalib.jar contains classes.dex
Change-Id: Ie7238572ece0678133ba08203108a923ea2f56ba
Building with -target 1.9 requires system modules to use in place
of the bootclasspath, add java_system_modules to generate them.
Test: m EXPERIMENTAL_USE_OPENJDK9=true
Change-Id: I3f54b987efa528078b1e34b743137540c69edf74
Currently Soong based Android stubs jar generation is broken
when EXPERIMENTAL_USE_OPENJDK9=true with following errors:
"Unable to find package java.lang in classpath or bootclasspath"
In old development/build/build_android_stubs.mk
all these jar targets were forced to be built with -source 1.8 -target
1.8
https://android-review.googlesource.com/c/platform/development/+/630280
Test: m android_stubs_current EXPERIMENTAL_USE_OPENJDK9=true
Bug: b/70351683
Change-Id: Ice0224a97e458f92e5b4c5994fa67079d2788d57