All right, I spent one or two hours figuring this out but I eventually got Skia building and linking with CMake and Visual Studio 2013 Win64. Angle and simd files for libjpeg proved to be the hardest part to figure out from the GYP files and to get right with CMake.
Now you just need to:
1) Checkout Skia
2) Point CMake to the CMakeLists.txt file in skia/cmake
3) Point CMake output directory wherever you want
4) Generate the project choosing Visual Studio Win64 as generator
5) Open the solution "skimake.sln" and build
It should work and build skia.dll, skia.lib for the linking and example.exe (tested - outputs a nice png with a 'Hello world' text).
I committed the CMakeLists.txt file to my github Vectis experimental branch here:
For the developers: this is a hackish/dirty work in progress. Things to be fixed:
- only x64 is supported
- I didn't try SKIA_GDI (experimental) and directly went for the DirectWrite - this should need an option in the CMake configuration
- make sure yasm and custom build rules paths are set correctly - if the hierarchy changes CMake will just blow things up
- compilation works but there are LOTS and LOTS of warnings (over 9000), if this is okay nevermind but since most of them are related to deprecated functions either consider fixing or suppressing them
- Release mode is untested - I suppose it won't be a big deal but might need some fixing
A huge thanks to Mike and Brian for the help they're giving me on this mailing list.