commit | d6574e5c97b374fd6270eeec24361d78b4dcf5a2 | [log] [tgz] |
---|---|---|
author | Bob Badour <bbadour@google.com> | Thu Oct 27 15:19:58 2022 -0700 |
committer | Bob Badour <bbadour@google.com> | Thu Oct 27 18:12:30 2022 -0700 |
tree | 477adf49a5c1314e6c72a2dec153f7b2ecbbd302 | |
parent | a2faaa8c45fcd6691b14c240b6532f3592deaf36 [diff] |
Add AllMetadataFiles() method to track deps. Improve METADATA parsing error message. Example error message (for an unqoted string url starting with ssh:): ============ error in project "<redacted>" METADATA "<redacted>/METADATA": proto: (line 4:12): invalid value for string type: ssh METADATA and METADATA.android files must parse as text protobufs defined by build/soong/compliance/project_metadata_proto/project_metadata.proto * unknown fields don't matter * check invalid ENUM names * check quoting * check unescaped nested quotes * check the comment marker for protobuf is '#' not '//' if importing a library that uses a different sort of METADATA file, add a METADATA.android file beside it to parse instead ============ Bug: 254534552 Test: m droid dist cts alllicensemetadata Change-Id: Ie5c0adc7362941e455dd522baaa31f2913d7db5f
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.