Rules changes to support libm mixed builds
There are a couple of meaningful changes:
1. For static libraries, branch copts from asflags; copts should apply
only to C and C++.
2. Add dynamic_deps as implementation_deps for static libraries so that
include paths propagate from the dynamic deps.
3. For shared libraries, always add the dynamic deps as linker inputs,
even if they don't seem to contain dependencies reachable from the
shared library roots.
Test: Droid CI script
Change-Id: I27e809f90ef2c9a092b33b094e388c212a194b27
3 files changed