The Skia 2D Graphics library from Google exposed to .NET languages and runtimes across the board
Перейти к файлу
Miguel de Icaza eeafad830e Add missing file 2016-03-05 23:26:37 -05:00
binding [SKImage] Allow for images to be encoded in more formats 2016-03-05 23:24:43 -05:00
depot_tools@3d3a2f6aa1
docs Add missing file 2016-03-05 23:26:37 -05:00
native-builds
nuget
samples
skia@135c8ca428 [SKImage] Allow for images to be encoded in more formats 2016-03-05 23:24:43 -05:00
tests
tools
.editorconfig
.gitignore
.gitmodules
Binding.md
CONTRIBUTING.md Create CONTRIBUTING.md 2016-03-01 19:18:14 +02:00
LICENSE.md
Makefile
README.md
bootstrapper.ps1
bootstrapper.sh
build.cake
cake.packages.config

README.md

SkiaSharp

SkiaSharp is a cross-platform, managed binding for the Skia Graphics Library (https://skia.org/)

What is Included

SkiaSharp provides a PCL and platform-specific bindings for:

  • Mac OS X
  • Xamarin.Android
  • Xamarin.iOS
  • Windows Desktop
  • Mac Desktop

You can also build this on your particular variant of Unix to create your native libraries.

Using SkiaSharp

Check our getting started guide

Building SkiaSharp

Mac OS X

Run from Bash

$ ./bootstrapper.sh -t libs

Windows

You need Python 2.7 in PATH environment variable. Then you need to run following commands from skia directory:

> ..\depot_tools\gclient.bat config --unmanaged https://github.com/mono/skia.git
> ..\depot_tools\gclient.bat sync

The process will take some time while gclient downloads Skia build dependencies.

Then you can finally build it:

> .\bootstrapper.ps1 -Target libs

There are several targets available:

  • externals - builds all the native libraries
    • [win] externals-windows - builds the native libraries for Windows
    • [mac] externals-osx - builds the native libraries for Mac OS X
    • [mac] externals-ios - builds the native libraries for iOS
    • [mac] externals-andoid - builds the native libraries for Android
  • libs - builds all the managed libraries
    • [win] libs-windows - builds the managed libraries that can be built on Windows
    • [mac] libs-osx - builds the managed libraries that can be built on Mac OS X
  • tests - builds and runs the tests
  • samples - builds the samples available for the current platform
  • docs - updates the mdoc files
  • nuget - packages the libraries into a NuGet
  • CI - builds everything

Where is Windows Phone / Store

At this time, Windows Phone and Windows Store apps are not supported. This is due to the native library not supporting those platforms: