From 364f92eea3d42f32765b71fc29226fe22a06d1c1 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Wed, 8 Jul 2020 18:08:26 +0200 Subject: [PATCH] Create a WASM package (#1389) --- VERSIONS.txt | 1 + binding/SkiaSharp/SkiaSharp.csproj | 3 ++ .../nuget/build/wasm/SkiaSharp.props | 12 +++++ build.cake | 1 + .../SkiaSharp.NativeAssets.WebAssembly.nuspec | 47 +++++++++++++++++++ scripts/azure-pipelines.yml | 3 ++ 6 files changed, 67 insertions(+) create mode 100644 binding/SkiaSharp/nuget/build/wasm/SkiaSharp.props create mode 100644 nuget/SkiaSharp.NativeAssets.WebAssembly.nuspec diff --git a/VERSIONS.txt b/VERSIONS.txt index a47bfd8ad..64fb173b4 100644 --- a/VERSIONS.txt +++ b/VERSIONS.txt @@ -49,6 +49,7 @@ SkiaSharp nuget 2.80.0 SkiaSharp.NativeAssets.Linux nuget 2.80.0 SkiaSharp.NativeAssets.Linux.NoDependencies nuget 2.80.0 SkiaSharp.NativeAssets.NanoServer nuget 2.80.0 +SkiaSharp.NativeAssets.WebAssembly nuget 2.80.0 SkiaSharp.Views nuget 2.80.0 SkiaSharp.Views.Desktop.Common nuget 2.80.0 SkiaSharp.Views.Gtk2 nuget 2.80.0 diff --git a/binding/SkiaSharp/SkiaSharp.csproj b/binding/SkiaSharp/SkiaSharp.csproj index 922e98fdf..29c0c7758 100644 --- a/binding/SkiaSharp/SkiaSharp.csproj +++ b/binding/SkiaSharp/SkiaSharp.csproj @@ -46,6 +46,9 @@ + + + diff --git a/binding/SkiaSharp/nuget/build/wasm/SkiaSharp.props b/binding/SkiaSharp/nuget/build/wasm/SkiaSharp.props new file mode 100644 index 000000000..2542f0832 --- /dev/null +++ b/binding/SkiaSharp/nuget/build/wasm/SkiaSharp.props @@ -0,0 +1,12 @@ + + + + + $(MSBuildThisFileDirectory)libSkiaSharp.a + + + + + + + \ No newline at end of file diff --git a/build.cake b/build.cake index d163e399e..3e6e4366c 100644 --- a/build.cake +++ b/build.cake @@ -60,6 +60,7 @@ var TRACKED_NUGETS = new Dictionary { { "SkiaSharp.NativeAssets.Linux", new Version (1, 57, 0) }, { "SkiaSharp.NativeAssets.Linux.NoDependencies", new Version (1, 57, 0) }, { "SkiaSharp.NativeAssets.NanoServer", new Version (1, 57, 0) }, + { "SkiaSharp.NativeAssets.WebAssembly", new Version (1, 57, 0) }, { "SkiaSharp.Views", new Version (1, 57, 0) }, { "SkiaSharp.Views.Desktop.Common", new Version (1, 57, 0) }, { "SkiaSharp.Views.Gtk2", new Version (1, 57, 0) }, diff --git a/nuget/SkiaSharp.NativeAssets.WebAssembly.nuspec b/nuget/SkiaSharp.NativeAssets.WebAssembly.nuspec new file mode 100644 index 000000000..1e92d316d --- /dev/null +++ b/nuget/SkiaSharp.NativeAssets.WebAssembly.nuspec @@ -0,0 +1,47 @@ + + + + + + SkiaSharp.NativeAssets.WebAssembly + SkiaSharp - Native Assets for Web Assembly + 1.0.0 + +SkiaSharp 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. + + +SkiaSharp is a cross-platform 2D graphics API for .NET platforms that can be used across mobile, server and desktop models to render images. + + +Please visit https://go.microsoft.com/fwlink/?linkid=868517 to view the release notes. + + https://go.microsoft.com/fwlink/?linkid=868515 + https://go.microsoft.com/fwlink/?linkid=2130524 + xamarin graphics ios android linux windows uwp tvos watchos macos tizen cross-platform wasm webassembly skiasharp + + + https://go.microsoft.com/fwlink/?linkid=868514 + Microsoft + Microsoft + true + © Microsoft Corporation. All rights reserved. + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scripts/azure-pipelines.yml b/scripts/azure-pipelines.yml index 24a401f23..e522f3b9b 100644 --- a/scripts/azure-pipelines.yml +++ b/scripts/azure-pipelines.yml @@ -349,6 +349,7 @@ stages: - native_win32_x64_windows - native_win32_arm64_windows - native_win32_x64_nanoserver_windows + - native_wasm_linux - template: azure-templates-bootstrapper.yml # Build Managed (macOS) parameters: name: managed_macos @@ -367,6 +368,7 @@ stages: - native_tizen_windows - native_tvos_macos - native_watchos_macos + - native_wasm_linux - template: azure-templates-bootstrapper.yml # Build Managed (Linux) parameters: name: managed_linux @@ -386,6 +388,7 @@ stages: - native_linux_x64_alpine_nodeps_linux # - native_tizen_linux - native_tizen_windows + - native_wasm_linux - stage: package displayName: Package NuGets