tree: 1c315fed4f9ca9bf11926f482f95a3d3e983c979 [path history] [tgz]
  1. .gitignore
  2. CMakeLists.txt
  3. example.cpp

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.


git clone
cd skia/cmake
cmake . -G Ninja     # Other CMake generators should work fine.
ls -l libskia.* example
open example.png || xdg-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
  • x86-64 Ubuntu 15.04
  • x86-64 Windows 10, with extra caveats:
    • Compiles against DirectWrite, not GDI, for fonts
    • Configure with cmake . -G "Visual Studio 14 2015" .
    • Compile with cmake --build . --config Release .
    • Still has too many warnings.
    • Poorly tested as yet.