Skip to content

Latest commit

 

History

History
70 lines (51 loc) · 1.67 KB

README.md

File metadata and controls

70 lines (51 loc) · 1.67 KB

SkiaSwift

Swift wrapper for SkiaSharp's C API

See:

This project uses Swift Package Manager:

Build SkiaSharp's Skia fork

Download SkiaSharp's Skia fork, then see these doc to build:

Build static libraries:

bin/gn gen out --args="is_debug=false is_official_build=true \
skia_use_system_expat=false skia_use_system_libjpeg_turbo=false \
skia_use_system_libpng=false skia_use_system_libwebp=false \
skia_use_system_zlib=false skia_use_system_icu=false \
skia_use_system_harfbuzz=false"

ninja -C out

Build CSkiaSwift

Create symlinks to the built Skia above (only include/c and out directories are used):

cd Sources/CSkia/include
ln -s /path/to/skia/include/c

cd Sources/CSkia
ln -s /path/to/skia/out

Build:

swift build
swift build -c release

Run:

swift run Demo
.build/debug/Demo
.build/release/Demo

Generate doc

Install jazzy, then run:

jazzy --module SkiaSwift