skia2/platform_tools/android
msarett cf2a6a47e4 Reenable yasm for Android x86 and x86-64 on Linux host
It turns out that gyp (kind of) has support for cross
compiling with a different host and target.  We simply
need to specify CC_host and CC_target instead of CC.

Making this change allows us to compile yasm on a Linux
host for Android.

We run into problems on Mac because
the linker on a Mac host requires different command line
arguments than the linker on the Android target.  In
looking through the code for gyp itself and speaking to
Ben, it doesn't appear to me that gyp supports passing
different arguments to host and target linkers.

I would imagine that we would have similar problems on
Windows.

Below is a link to a CL that would fix this issue in gyp.
It looks like it has been dropped for a long time.
Thanks to Ben for this link!
https://chromiumcodereview.appspot.com/10795044/

Also I'm adding a link to the build instructions for Chrome
(thanks again Ben).  It looks like they only support
building for Android from Linux.
https://code.google.com/p/chromium/wiki/AndroidBuildInstructions

My next steps are:
1) Getting in touch with Torne or someone else with gyp to
see if people are aware of this issue or interested in
fixing it.
2) Deciding if skia should care about this issue.
3) Deciding if skia should work around this issue.

It'd be really great to hear your thoughts on (2) and (3).
My first thought is that we shouldn't care because, as
long as we always compile the production copy of skia for
Android on Linux, we will get the fast code.  Is this
a valid conclusion?  Is there a way to write Android apps
on Mac that accidentally use the slower code?

If we do care, there are workarounds:
For Mac, we can check in a yasm binary - it's a little
smaller than the one I am deleting in this CL :-/
For Windows, we *might* be able to use the yasm.exe binary
already in externals (we get this from DEPS because this is
how chromium uses yasm on Windows).
Are there other platforms that we care about?

Let me know what you think!

BUG=skia:4028
DOCS_PREVIEW= https://skia.org/?cl=1239333002

Review URL: https://codereview.chromium.org/1239333002
2015-07-21 12:01:48 -07:00
..
app Visual bench on native android 2015-06-12 12:51:44 -07:00
apps Add gradle wrappers for Android app builds 2015-07-08 10:50:42 -07:00
bin Reenable yasm for Android x86 and x86-64 on Linux host 2015-07-21 12:01:48 -07:00
examples/hello_skia_app use some helper Make functions to initialize SkImageInfo 2014-01-15 02:38:22 +00:00
gyp Move visualbench to its own folder 2015-06-30 06:50:10 -07:00
gyp_gen Eliminate the check for ANDROID_LARGE_MEMORY in jpeg decoders 2015-06-11 10:13:03 -07:00
launcher Change how SkDebugf is sent to stdout on Android. 2014-12-10 10:23:06 -08:00
tests Eliminate the check for ANDROID_LARGE_MEMORY in jpeg decoders 2015-06-11 10:13:03 -07:00
third_party Add android native_app_glue to platform_tools/android/third_party 2015-06-09 12:33:13 -07:00
tradefed Fail gracefully when dm.json is not present 2015-04-08 15:20:25 -04:00
visualbench Fix for android command line arguments to VisualBench 2015-07-15 10:17:21 -07:00
.gitignore make gitignore happy with symlinks 2014-04-30 19:55:51 +00:00
gclient.config Remove references to Skia's SVN repository 2014-01-09 21:41:39 +00:00
whitespace.txt Copy the top level Android directory into trunk. 2013-04-29 12:09:31 +00:00