building skia on Windows?how?

840 views
Skip to first unread message

David

unread,
May 14, 2009, 9:47:56 PM5/14/09
to skia-discuss
I'm gonna build Skia on Windows, for I want to use skia to create a demo application which contains a lot of text and image renderrings.
 
well,I have downloaded the source codes of Skia via
"svn checkout http://skia.googlecode.com/svn/trunk/ skia-read-only "
 
Is that possible to build Skia on Windows? and how~~?




穿越地震带 纪念汶川地震一周年

Tom Wu

unread,
May 15, 2009, 12:48:07 AM5/15/09
to skia-d...@googlegroups.com
check google chromium , the windows browser that used the skia as webkit rendering backend.

tom

David

unread,
May 15, 2009, 5:49:52 AM5/15/09
to skia-discuss
so....
That's the only way to use skia on Windows.
It's hard to build Skia from the source code of
"svn checkout http://skia.googlecode.com/svn/trunk/ skia-read-only " .
 
right?



穿越地震带 纪念汶川地震一周年

Tom Wu

unread,
May 15, 2009, 6:16:58 AM5/15/09
to skia-d...@googlegroups.com
curious questions: 
 * are you going to use skia on windows?
 * chroumium has visual studio project files for all the components already. what is wrong to get the chromium project file and skia source tree? although I didn't do  that before. i guess it is easy to build skia source tree in chromium windows version.
 * or you could do similar approach other people building linux open source project on windows, setup cygwin or minGW environment.

David

unread,
May 16, 2009, 11:44:59 PM5/16/09
to skia-discuss
well, I hava built chrome's skia already, and finally get a skia.lib.
But what I know is chrome team had done some kinds of changes on original skia, which could be referred from the svn address listed in my pre-letters.
So I'm curious about the changes, and want to make sure if the original skia could be built to produce a skia.lib with any solutions.


 

穿越地震带 纪念汶川地震一周年

Theodore Witkamp

unread,
May 17, 2009, 2:35:01 PM5/17/09
to skia-d...@googlegroups.com
Just make your own build for the skia library.
I build in windows but I use a custom scons script for the build not the built-in makefile.
Just take a look at the SkUserConfig.h for a little guidance about configuring the build.


2009/5/16 David <ds...@163.com>

Mike Reed

unread,
May 18, 2009, 11:56:25 AM5/18/09
to skia-d...@googlegroups.com
You're right, we have no checked in build scripts/projects for windows
yet. That would make a great addition!

However, we should have the necessary sources ported (ala
SkFontHost_win.cpp). If you find we are missing something, please file
a bug (or submit the missing file(s)).

thanks,
mike

Theodore Witkamp

unread,
May 18, 2009, 12:02:47 PM5/18/09
to skia-d...@googlegroups.com
Have you guys thought about switching to scons for your build ?
Thanks


2009/5/18 Mike Reed <re...@android.com>:

Cary

unread,
May 20, 2009, 10:39:11 AM5/20/09
to skia-discuss
Why scons? This statement from http://en.wikipedia.org/wiki/SCons
sounds less than ideal:

"Unlike autotools, gcc's built in dependency analysis is not used.
Instead, a regexp scan for "#include" is done over all C/C++ source
files. For a gcc based build, this means that dependency generation
can be slower (i.e. an extra scan is always needed) and less reliable
(in the sense that things like preprocessor flags, e.g. -DSOMETHING,
are ignored), but it is more portable since the same scanner can be
used for non-gcc compilers."

Cary

On May 18, 9:02 am, Theodore Witkamp <theodore.witk...@gmail.com>
wrote:
> Have you guys thought about switching to scons for your build ?
> Thanks
>
> 2009/5/18 Mike Reed <r...@android.com>:
> >>> "svn checkouthttp://skia.googlecode.com/svn/trunk/skia-read-only " .

Theodore Witkamp

unread,
May 20, 2009, 11:33:18 AM5/20/09
to skia-d...@googlegroups.com
Hi Cary,
I guess it's more ideal for me. I don't use gcc and I build on windows
and the rest of my build is scons.

I also question the assertions in the Wikipedia article.

I know from my experience of day use, changing "-DSOMTHING" will cause
it to rebuild the affected files.

Also scanning the source code is pretty much required for finding
dependencies no matter what.
Using scons is no worse than generating the dep file from gcc every
time you build the project.
Which is what you need to do to ensure a correct build.

If speed that that big of an issue I can send you my scons script for
skia and you can try it out.

Checkout
http://www.scons.org/


The only reason that I bring this up is it makes building on windows
easy and I already have a scons build that I maintain.

Thanks
Reply all
Reply to author
Forward
0 new messages