|
|
|
|
|
by Matheus28
2634 days ago
|
|
Skia is actually not too hard to build once you're used to gn and ninja. Download both of those tools and add them to your PATH, then cd into Skia's repo (that you just cloned): $ python tools/git-sync-deps
$ gn gen out/release -args="is_official_build=true is_component_build=false"
$ ninja -C out/release
This will build it as a static library. I believe by default it will try to use system libraries, you can make it use its own version of those libraries in this slightly more complicated process (which could be done with a script but I'm too lazy to write one right now): $ gn args out/release --list --short
This will print all the current build arguments, copy all the use_system_XXX = true, you'll have to modify those to be = false, and paste them into the text editor that will open once you run: $ gn args out/release
After that, run ninja to build $ ninja -C out/release
For the include files, you have to add at least these to your include directory: include
include/config
include/core
include/effects
include/gpu
On Windows, you might want to have two builds linking against different versions of the std lib (because of the whole iterator debug level stuff). Add these args: extra_cflags=["/MTd"] and extra_cflags=["/MT"] for debug/release builds (statically linked in this case). |
|