3965825b97
With this change, the CMake build, which does not use DEPS to sync external projects, is able to build and use the same version of libpng that is used in other builds. This will allow all platforms (including Google3 CMake build) to test on the same version of libpng, so we do not need to make SkPngCodec support all versions of libpng. - Update CMakeLists.txt to use the checked in libpng. - Check in libpng version 1.6.22rc01 - Update README.google - Replace our old LICENSE file with the latest one from libpng GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2033063003 CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac-Clang-x86_64-Release-CMake-Trybot Review-Url: https://codereview.chromium.org/2033063003 |
||
---|---|---|
.. | ||
.gitignore | ||
cmake_build | ||
CMakeLists.txt | ||
example.cpp | ||
README.md | ||
SkUserConfig.h.in |
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.