OSDN Git Service

Order objects based on LOCAL_SRC_FILES and LOCAL_GENERATED_SOURCES
authorDan Willemsen <dwillemsen@google.com>
Wed, 20 Jan 2016 04:07:08 +0000 (20:07 -0800)
committerDan Willemsen <dwillemsen@google.com>
Thu, 28 Jan 2016 00:48:02 +0000 (16:48 -0800)
commit3bb168f10d8a8e7b4c0f2aa5840c21638a3d1fda
treeb5c06d2724de90ce251286b7dd9349b3e491bd87
parent4a97cde443829f1a3bf40fe6e820ba5b01e3bf87
Order objects based on LOCAL_SRC_FILES and LOCAL_GENERATED_SOURCES

We have been reordering objects to the linker based on how they were
generated. In soong, they're ordered based on the order listed in the
src_files.

Keep track of which source files created which object files so that we
can create the ordered list. Optionally change the order, based on
BINARY_OBJECTS_ORDER. That way we can compare make and soong builds.

Since we're keeping track of the used source files, warn when an entry
in LOCAL_SRC_FILES is not used. (whether it is an unused file like a
header, or a typo)

LOCAL_GENERATED_SOURCES is not verified, since it is valid to add
headers and other files in that list (to set up dependencies).

Change-Id: I1dfbbb3aa570c11c1db3b7133e46ed0b8c3b8989
core/binary.mk
core/definitions.mk
core/prebuilt_internal.mk