commit | e18b9fee63c1ad00398b56b378e650bd073e67f6 | [log] [tgz] |
---|---|---|
author | Spandan Das <spandandas@google.com> | Fri Apr 26 00:20:10 2024 +0000 |
committer | Spandan Das <spandandas@google.com> | Fri Apr 26 20:50:50 2024 +0000 |
tree | 44669e0529c01d8314a17758122977404ba98538 | |
parent | c6e4a86b0391830ccc2ee6e81be2482a2dc6e659 [diff] |
Drop cmdgoals special case from prebuilt selection Before trunk stable, this check ensured that `docs` and `sdk` builds contained all the apis provided by an apex. If source apex was used, it would use the source java_sdk_library. If prebuilt apex was used, it would use the prebuilt java_sdk_library. After trunk stable, all release configurations for platform development use the everything stubs of source java_sdk_library for javac, and exportable stubs of source java_sdk_library for sdk/docs. The exportable stubs is aware of the enabled flags for a specific release configuration. Since sdk and docs builds use the exportable stubs, we can drop this special case to use the prebuilt stubs/srcjar files. Test: presubmits Test: in internal, lunch cf_x86_64_phone-next-userdebug (currently uses bt prebuilts) Test: m docs Test: aninja -t path docs out/soong/.intermediates/packages/modules/Bluetooth/framework/framework-bluetooth.stubs.source/android_common/exportable/framework-bluetooth.stubs.source-stubs.srcjar; still exists after this cl Bug: 308188056 Change-Id: I65da9f25634f0e8c3d514a4c175f89c3e5eb9712
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.