skia2/cmake
Hal Canary a2b4bdce8c Revert 248ff023 & 2cb6cb72
Revert "SkImageEncoder: simplify API"
This reverts commit 248ff02331.
Revert "Fix bug: can't convert nullptr -> bool"
This reverts commit 2cb6cb7218.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=5151
NOTRY=true

Change-Id: I5f6414392d6545f74db0b5bb50608d04f053a8ec
Reviewed-on: https://skia-review.googlesource.com/5151
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Hal Canary <halcanary@google.com>
2016-11-22 21:23:51 +00:00
..
.gitignore CMake: generate skia.h and skia_{compile|link}_arguments.txt 2015-11-30 12:42:58 -08:00
CMakeLists.txt Add gif sources to public.bzl. 2016-10-24 19:26:22 +00:00
example.cpp Revert 248ff023 & 2cb6cb72 2016-11-22 21:23:51 +00:00
README.md CMake: skia_link_arguments.txt repects BUILD_SHARED_LIBS 2016-05-24 11:23:23 -07:00
SkUserConfig.h.in [CMake fixes] Linux X11 pixel format and Windows compilation fix 2016-03-25 09:01:26 -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

git clone https://skia.googlesource.com/skia.git
cd skia/cmake
cmake . -G Ninja     # Other CMake generators should work fine.
ninja
ls -l libskia.* example
./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.