Fixes a bug causing sources to appear multiple times in sources.py

This bug occurred because we were:

1) Concatenating all of the .o.d Makefiles together that were required
   to compile libunwindstack.
2) Finding unique lines among those files
3) Extracting the source file path from each of those lines.

The problem was with the format of each build rule in the .o.d file:

out/DefaultMobile/my_target.o:
  a.cpp \
  b.cpp \
  c.cpp

If a source file was the last file for one build rule but not the last
for another, then both would make it through our unique filter because
one of those lines would have a trailing backslash but the other
wouldn't.

This fixes that bug by extracting the source file path before
identifying unique sources.

Bug: 991960
Change-Id: I417d2c0682891dd86fc5f7fd13c544d971af653d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/third_party/libunwindstack/+/1900008
Reviewed-by: Mike Wittman <wittman@chromium.org>
1 file changed
tree: 15e57c1710d47761182a04b3a813fd2d78d385da
  1. patches/
  2. src/
  3. tools/
  4. .clang-format
  5. BUILD.gn
  6. LICENSE
  7. OWNERS
  8. README.chromium