How to build skia for Android?

525 views
Skip to first unread message

Harry

unread,
Oct 13, 2011, 2:50:45 AM10/13/11
to skia-discuss
I want to build skia's latest version for Android. But there's no
Android.mk. How to get it?
I don't know why there's no tips about how to do this. Since there's
guide to build on Windows/Linux/Mac.

Derek

unread,
Oct 13, 2011, 8:48:47 AM10/13/11
to skia-d...@googlegroups.com
Do you want to use Skia as an android app developer?  Skia is included and built into the Android OS by default and it is typically exposed to application developers via SDK classes like Canvas.java.  The only official way to use Skia on Android is to use it through the SDK.

The primary reason that we don't have an Android variant is that outside of baking it into the OS there "technically" is no android NDK compliant way to build Skia.  The holdup is that there is no NDK compliant way to access the system fonts.  If however, you aren't creating an app that is to be sold in the Market and only need your app to run on one particular flavor of the OS you can get around compliance.  If you fall into that category, then let me know and I can provide a few more instructions.

Thanks,
Derek

Harry

unread,
Oct 13, 2011, 9:35:13 PM10/13/11
to skia-d...@googlegroups.com
Hi Derek,
 
  Thanks for quik reply.
  >>Do you want to use Skia as an android app developer?
  No. I 'm not using skia in an android Java layer app, which will be sold in market. I just want to use it in the native C++ code (in my study project it's part of the Webkit, current used Skia model is too slow. Maybe the latest will be better), to test Skia performance(GPU accelerating, etc.). I'm trying to write an Android.mk but it's no easy for me. Your instructions would be great helpful.

jiajun zhang

unread,
Sep 29, 2012, 2:33:28 AM9/29/12
to skia-d...@googlegroups.com, hell...@gmail.com
HI Harry
Are you resolved?
Could you tell me how to resolve it.

在 2011年10月14日星期五UTC+8上午9时35分13秒,Harry写道:

Janez Zemva

unread,
Sep 29, 2012, 3:13:25 PM9/29/12
to skia-d...@googlegroups.com
It's always going to be as fast as your system allows or less. So,
yes, probably it is going to get faster, but in the mean time, try GPU
acceleration in your own custom build.

2012/9/29 jiajun zhang <jho...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "skia-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/skia-discuss/-/TNla5mxH1q0J.
> To post to this group, send email to skia-d...@googlegroups.com.
> To unsubscribe from this group, send email to
> skia-discuss...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/skia-discuss?hl=en.
Reply all
Reply to author
Forward
0 new messages