56c6a117b2
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 |
||
---|---|---|
.. | ||
.gitignore | ||
cmake_build | ||
CMakeLists.txt | ||
example.cpp | ||
README.md |
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.