OLD | NEW |
1 CMake build for Skia | 1 CMake build for Skia |
2 ==================== | 2 ==================== |
3 This directory contains experiemental CMake build files for Skia. | 3 This directory contains experiemental CMake build files for Skia. |
4 They are primarily targeted at building Skia as it would be shipped, | 4 They are primarily targeted at building Skia as it would be shipped, |
5 not at day-to-day Skia development. | 5 not at day-to-day Skia development. |
6 | 6 |
7 Quickstart | 7 Quickstart |
8 ---------- | 8 ---------- |
9 $ cd skia/cmake | 9 |
10 $ cmake . -G Ninja # Other CMake generators should work fine. | 10 <!--?prettify lang=sh?--> |
11 $ ninja | 11 |
12 $ ls -l libskia.* example | 12 git clone https://skia.googlesource.com/skia.git |
13 $ ./example | 13 cd skia/cmake |
14 $ open example.png | 14 cmake . -G Ninja # Other CMake generators should work fine. |
| 15 ninja |
| 16 ls -l libskia.* example |
| 17 ./example |
| 18 open example.png || xdg-open example.png |
| 19 |
15 If that works, you should see "Hello World!" with a green-to-purple gradient. | 20 If that works, you should see "Hello World!" with a green-to-purple gradient. |
16 | 21 |
17 Currently supported platforms | 22 Currently supported platforms |
18 ----------------------------- | 23 ----------------------------- |
19 (None. This is still super experimental.) | 24 (None. This is still super experimental.) |
20 | 25 |
21 Currently maybe-kinda-working platforms | 26 Currently maybe-kinda-working platforms |
22 --------------------------------------- | 27 --------------------------------------- |
23 - x86-64 Mac OS X, Ubuntu 15.04 | 28 - x86-64 Mac OS X |
| 29 - x86-64 Ubuntu 15.04 |
| 30 - x86-64 Windows 10, with extra caveats: |
| 31 * Compiles against DirectWrite, not GDI, for fonts |
| 32 * Configure with `cmake . -G "Visual Studio 14 2015"` . |
| 33 * Compile with `cmake --build . --config Release` . |
| 34 * Still has too many warnings. |
| 35 * Poorly tested as yet. |
OLD | NEW |