commit | f795dcb7673a74d0618ea7104e9fe1b04f690c11 | [log] [tgz] |
---|---|---|
author | Tobias Thierer <tobiast@google.com> | Tue Jan 09 20:33:08 2018 +0000 |
committer | Tobias Thierer <tobiast@google.com> | Thu Jan 11 01:13:13 2018 +0000 |
tree | c5b3adde8edbfdcd58ab7f7f7fdd3a911fcce260 | |
parent | 9eba210e230bf86b358bbee697f17295c18b0057 [diff] |
Experimental feature: LOCAL_PATCH_MODULE option in .mk files. Specifying this option causes the make target's sources and classpath dependencies to be patched into the specified module via --patch-module (if the build toolchain implements the module system, ie. when targeting 1.9). This allows tests to compile that have classes in packages under test. Currently, only java.base is on the module path (everything else is on the classpath), and only when using -target 1.9 (ie. EXPERIMENTAL_USE_OPENJDK9=true). Bug: 71699916 Test: Treehugger Test: Checked that I was able to compile some ojluni & icu test sources that had classes in (libcore) packages under test. Change-Id: I044fb9d904754ed281f574ab3dd52235cf0d7fec
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.