Skip to content

swiftfn/SkiaSwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Swift wrapper for SkiaSharp's C API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published