commit | 8ba6aa71b1ccff3591afef05af05e3ed0cfe05a4 | [log] [tgz] |
---|---|---|
author | Zhi Dou <zhidou@google.com> | Mon Jun 26 21:03:40 2023 +0000 |
committer | Zhi Dou <zhidou@google.com> | Tue Jun 27 18:57:35 2023 +0000 |
tree | 7512f58c4706a72be54ca561bc437239e1e87fe4 | |
parent | 571cd077964f819f3c0b6d6837e187d82104a74c [diff] |
aconfig: add java codegen test mode Add java codegen test mode. The test mode will generate Flags.java and FeatureFlagsImpl.java differently. * Flags.java will have getter and setter function to switch the FeatureFlagsImpl. Flags.java will not initialize the instance of FeatureFlagsImpl during initialization, thus it will force the user to set up the flag values for the tests. * FeatureFlagsImpl removes the dependency on DeviceConfig, and allows the caller to set the values of flags. Command changes This change adds a new parameter `mode` to `create-java-lib` subcommand. The default value of `mode` is production, which will generate files for production usage, and keeps the same behavior as before. The new `mode` test is added to trigger the test mode. The command is aconfig create-java-lib --cache=<path_to_cache> --out=<out_path> --mode=test Test: atest aconfig.test Bug: 288632682 Change-Id: I7566464eb762f3107142fe787f56b17f5be631b7
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.