skia2/cmake
mtklein 56c6a117b2 CMake for Windows
Except for some small edits, this is mainly:

patch from issue 1353953004 at patchset 80001 (http://crrev.com/1353953004#ps80001)

CMake configuration file for compiling Windows x64 VS2013 with CMake.

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

More info here: https://groups.google.com/forum/#!topic/skia-discuss/HLu-Hesfbg4

BUG=skia:4269

CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Mac10.9-Clang-x86_64-Release-CMake-Trybot,Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot

Review URL: https://codereview.chromium.org/1370263004
2015-09-30 11:06:53 -07:00
..
.gitignore CMake builds on Ubuntu now too. 2015-08-31 06:59:21 -07:00
cmake_build small tweaks to cmake_build 2015-09-15 10:17:08 -07:00
CMakeLists.txt CMake for Windows 2015-09-30 11:06:53 -07:00
example.cpp CMake builds on Ubuntu now too. 2015-08-31 06:59:21 -07:00
README.md CMake tweaks 2015-09-01 09:22:32 -07:00

CMake build for Skia

This directory contains experiemental CMake build files for Skia. They are primarily targeted at building Skia as it would be shipped, not at day-to-day Skia development.

Quickstart

$ cd skia/cmake
$ cmake . -G Ninja     # Other CMake generators should work fine.
$ ninja
$ ls -l libskia.* example
$ ./example
$ open example.png

If that works, you should see "Hello World!" with a green-to-purple gradient.

Currently supported platforms

(None. This is still super experimental.)

Currently maybe-kinda-working platforms

  • x86-64 Mac OS X, Ubuntu 15.04

Caveats

  • SkCodec, Skia's new image decoder library, does not yet build.