commit | 6f06f9ea7a1989d9e4b9a3eaa4e039f35a7082ab | [log] [tgz] |
---|---|---|
author | Ulya Trafimovich <skvadrik@google.com> | Thu Mar 04 12:07:44 2021 +0000 |
committer | Ulya Trafimovich <skvadrik@google.com> | Thu Mar 04 12:35:02 2021 +0000 |
tree | 324c25fe04b03df381c60118caadc87019209316 | |
parent | 2344aacd0207ae2ed37b8c71fac1ce9973c4cf0c [diff] |
Disable verify_uses_libraries check if dexpreopt is globally disabled. Without dexpreopt the check is not necessary, and although it is good to have, it is difficult to maintain on non-linux build platforms where dexpreopt is generally disabled (the check may fail due to various unrelated reasons, such as a failure to get manifest from an APK). Bug: 181570790 Bug: 132357300 Test: Emulate the failed no-dexpreopt build in b/181570790: - modify verify_uses_libraries to make a subcommand fail - check that the build with dexpreopt fails: $ lunch cf_x86_64_phone-userdebug && m - set `WITH_DEXPREOPT := false` in make/core/board_config.mk - check that the build without dexpreopt succeeds (allow boot image and system servert dexproept to avoid unrelated build failures, this does not affect verify_uses_libraries): $ WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY=true \ lunch cf_x86_64_phone-userdebug && m Change-Id: Ic456be4e3047a60415a21fae658077165fb03165
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.