OSDN Git Service

Normalize java source file paths before running "sort -u".
authorYing Wang <wangying@google.com>
Thu, 22 Oct 2015 23:30:00 +0000 (16:30 -0700)
committerYing Wang <wangying@google.com>
Thu, 22 Oct 2015 23:35:10 +0000 (16:35 -0700)
commit2af4d1ad2cfbe3076a89afc9bf8bb375ef2cade1
treecc18c2c4b6167dc5fa86c9c3c96c07af5a75df68
parent92e7b25b9d271dd1ead0c4353828bd45c2d89073
Normalize java source file paths before running "sort -u".

We rely on "sort -u" to dedupe aidl/logtags generated java files added
by both from $(all_java_sources) and from "find
$(PRIVATE_SOURCE_INTERMEDIATES_DIR) -name '*.java".
But "sort -u" doesn't work if any of the aidl/logtags source file path
has "../" in it.
This change fixes this issue by normalizing the source file paths before
passing them to "sort -u".

Change-Id: I12d2c4e0397bed9f426a1ed9b13608d72d01e0df
core/config.mk
core/definitions.mk
tools/normalize_path.py [new file with mode: 0755]