commit | d9d72c46ba5b5b1ff76b9075f0531f51faadb7b6 | [log] [tgz] |
---|---|---|
author | Spandan Das <spandandas@google.com> | Thu Jun 06 22:47:01 2024 +0000 |
committer | Spandan Das <spandandas@google.com> | Fri Jun 07 17:45:19 2024 +0000 |
tree | e44bb0b1a0f809188fbdb5c72ff1f355fc130833 | |
parent | 27d977e49bd13f970412ce24f001b1fce5bbc1d0 [diff] |
Prevent implicit outputs created during dexpreopt_config.zip $PRODUCT_OUT/dexpreopt_config.zip is created by zipping all the dexpreopt configs of individual apps. These config files are created in $PRODUCT_OUT/dexpreopt_config, and this dir is as used as -C for soong_zip. In the current implementation, this build action also implicitly copies global configuration files dexpreopt.config and dexpreopt_soong.config into $PRODUCT_OUT/dexpreopt_config with the intent of being included in the resultant zip file. These implicit outputs are unknown to ninja. This CL prevents creation of these implicit outputs. out/soong/dexpreopt_soong.config and out/soong/dexpreopt_<arch>/dexpreopt.config is now passed directly to soong_zip via -f. Bug: 333316620 Test: m out/target/product/vsoc_x86_64/dexpreopt_config.zip # no longer bit identical since the relative order changes, dexpreopt(_soong).config now appears at the bottom of the zip Test: zipcmp dexpreopt_config.zip.before dexpreopt_config.zip.after # no diffs Change-Id: Ib30c9a5c436e263231f9688129ab94664277b841
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.