commit | d370a3f7bd4441dd492cb383da154c5214f21877 | [log] [tgz] |
---|---|---|
author | Cole Faust <colefaust@google.com> | Mon Apr 18 17:18:08 2022 -0700 |
committer | Cole Faust <colefaust@google.com> | Mon Apr 18 17:18:08 2022 -0700 |
tree | 8cec509a9c82f4f426b001f0e70685b9d1cf260a | |
parent | a9aa002d3b21f248e09c954a36054c5726f40fcd [diff] |
Sort inherited products correctly We pass the filename without the extension to rblf.inherit(). Removing the extension changes the sort order when one file's name is a prefix of another: ``` >>> sorted(["base", "base-secondary"]) ['base', 'base-secondary'] >>> sorted(["base.mk", "base-secondary.mk"]) ['base-secondary.mk', 'base.mk'] ``` Correct the sort order so that global variables get their correct ordering. Bug: 229132189 Test: ./out/rbcrun ./build/make/tests/run.rbc Change-Id: I22367eb49b33956b71ac1b966fe78c1308b94257
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.