commit | eb1012b1d4d0be7dafdd34c93dc1d4e687f98c23 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Mon Dec 04 13:48:18 2017 -0800 |
committer | Colin Cross <ccross@android.com> | Tue Dec 05 01:07:23 2017 +0000 |
tree | b34f1acbcffc56b942ee317fc4be0606caa160b3 | |
parent | b8e08222d9798c4f39d4d2c37bcd111bbc02f2ba [diff] |
Add support for LOCAL_GENERATED_SOURCES to droiddoc BUILD_DROIDDOC allows LOCAL_SRC_FILES to refer to sources in $(LOCAL_PATH) and LOCAL_INTERMEDIATE_SOURCES to refer to sources in $(TARGET_OUT_COMMON_INTERMEDIATES). The droiddoc rules that use files generated in Soong were trying to abuse LOCAL_SRC_FILES to point to files in $(OUT_DIR)/soong using ../.. to counter $(LOCAL_PATH), but failed if $(OUT_DIR) was absolute. Add LOCAL_GENERATED_SOURCES that can take a path relative to the top of the source tree or an absolute path. Bug: 70166718 Test: m OUT_DIR=/tmp/out docs Change-Id: Iaf0d622a3405da0bf520f7312e11e75e9328062e Merged-In: Iaf0d622a3405da0bf520f7312e11e75e9328062e (cherry-picked from commit 4c44a94dab27df3df66cd53a9bcf44d6028132c2)
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.