Skip to content

Conversation

@mattleibow
Copy link
Contributor

@mattleibow mattleibow commented Jul 8, 2020

Description of Change

Instead of having to manually download and update libSkiaSharp.a for WASM, just depend on the SkiaSharp.NativeAssets.WebAssembly package. This doesn't do anything except expose a path to the actual libSkiaSharp.a which you can then use in whatever tooling you need.

There are 2 ways to do this:

  • property value $(SkiaSharpStaticLibraryPath)
  • item group @(SkiaSharpStaticLibrary)

Another way to use this package is as a build-time dependency. Since you have the path to the package, you can add it as an embedded resource or copy it to the output as content. To prevent a dependency with dotnet pack, just mark the <PackageReference> with a PrivateAssets="all" property. Then only you will see it in that project.

@mattleibow mattleibow closed this Jul 8, 2020
@mattleibow mattleibow reopened this Jul 8, 2020
@mattleibow mattleibow merged commit 364f92e into master Jul 8, 2020
@mattleibow mattleibow deleted the dev/wasm-package branch July 8, 2020 16:08
@mattleibow mattleibow added this to the v2.80.0 milestone Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants