add run support on connected Android device

This should do nothing if no device is attached.  And if more than one's
attached, exporting ANDROID_SERIAL=... ought to do the trick.

We must link position-independent executables (-pie) to run on Android,
and using gold to link removes an annoying warning printed at program
start when linked by the default (bfd) linker.  Gold's good anyway.

In case it's not clear, you have to

    adb push profiles /data/local/tmp/profiles

once manually.

Change-Id: Ia4feb61ec6a18a17cc394d5b714c0daa8ea2eb52
Reviewed-on: https://skia-review.googlesource.com/97000
Reviewed-by: Brian Osman <brianosman@google.com>
1 file changed