SkiaSharp fork for the Uno Platform and WebAssembly. Skia is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
Перейти к файлу
Matthew Leibowitz 5ff18f148e Changing the submodule to https 2016-05-03 19:31:13 +02:00
binding Upped the version numbers and added the Git SHA to the info 2016-04-19 19:19:07 +02:00
depot_tools@2825353c97 Updates to the way we add to native skia 2016-04-18 19:09:19 +02:00
docs Adding IsDither to SKPaint. 2016-04-08 15:17:57 -04:00
native-builds Swap those slashes 2016-04-18 23:25:24 +02:00
nuget Upped the version numbers and added the Git SHA to the info 2016-04-19 19:19:07 +02:00
samples Windows samples use new NuGet 2016-04-19 23:44:55 +02:00
skia@44f28d5b1c Updating native skia 2016-04-19 23:50:31 +02:00
tests [Build] Improved the Windows build 2016-02-04 21:46:42 +02:00
tools [Build] Generate the SkiaSharp Portable source at build time to prevent out-of-date assemblies 2016-01-18 23:30:36 +02:00
.editorconfig Added .editorconfig 2016-03-01 17:51:01 +03:00
.gitignore added 'assemble-docs' makefile target 2016-03-07 11:33:20 -05:00
.gitmodules Changing the submodule to https 2016-05-03 19:31:13 +02:00
Binding.md Create Binding.md 2016-02-22 13:42:32 -05:00
CONTRIBUTING.md Create CONTRIBUTING.md 2016-03-01 19:18:14 +02:00
LICENSE.md Adding MIT license file 2016-02-22 11:46:04 -05:00
Makefile added 'assemble-docs' makefile target 2016-03-07 11:33:20 -05:00
README.md Update README.md with submodule docs 2016-04-08 14:58:02 -04:00
bootstrapper.ps1 [Build] Added the Windows native build using Cake 2016-01-14 06:42:16 +02:00
bootstrapper.sh [Build] Added the rest of the platforms to the build script 2016-01-14 23:41:16 +02:00
build.cake Do some logging with the SHA 2016-04-19 19:22:30 +02:00
cake.packages.config [Tests] Added the test run to the Cake script 2016-02-02 02:33:43 +02:00

README.md

SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library (https://skia.org/). It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.

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

First clone the repository:

$ git clone https://github.com/mono/SkiaSharp.git

Next, set up the submodules:

$ cd SkiaSharp
$ git submodule init && git submodule update

Then follow the platform-specific instructions below.

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
  • clean - cleans everything
    • clean-externals - cleans externals only

Where is Windows Phone / Store / tvOS

We are working to add binaries for these platforms, stay tuned for a future release (or check the pull requests and branches, where we are working on those)