Create a WASM package (#1389)
This commit is contained in:
Родитель
aa6a178701
Коммит
364f92eea3
|
@ -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
|
||||
|
|
|
@ -46,6 +46,9 @@
|
|||
<None Include="..\..\output\native\alpinenodeps\x86\libSkiaSharp*" Link="nuget\runtimes\linuxnodeps-musl-x86\native\%(Filename)%(Extension)" />
|
||||
<None Include="..\..\output\native\alpinenodeps\arm64\libSkiaSharp*" Link="nuget\runtimes\linuxnodeps-musl-arm64\native\%(Filename)%(Extension)" />
|
||||
<None Include="..\..\output\native\alpinenodeps\arm\libSkiaSharp*" Link="nuget\runtimes\linuxnodeps-musl-arm\native\%(Filename)%(Extension)" />
|
||||
<!-- WASM -->
|
||||
<None Include="..\..\output\native\wasm\libSkiaSharp*" Link="nuget\build\wasm\%(Filename)%(Extension)" />
|
||||
<None Include="nuget\build\wasm\SkiaSharp.props" Link="nuget\build\wasm\SkiaSharp.props" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
|
||||
<None Include="nuget\build\net462\SkiaSharp.targets" Link="nuget\build\$(TargetFramework)\SkiaSharp.targets" />
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<PropertyGroup>
|
||||
<SkiaSharpStaticLibraryPath>$(MSBuildThisFileDirectory)libSkiaSharp.a</SkiaSharpStaticLibraryPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<SkiaSharpStaticLibrary Include="$(SkiaSharpStaticLibraryPath)" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
|
@ -60,6 +60,7 @@ var TRACKED_NUGETS = new Dictionary<string, Version> {
|
|||
{ "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) },
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package>
|
||||
<metadata>
|
||||
|
||||
<!-- package -->
|
||||
<id>SkiaSharp.NativeAssets.WebAssembly</id>
|
||||
<title>SkiaSharp - Native Assets for Web Assembly</title>
|
||||
<version>1.0.0</version>
|
||||
<description>
|
||||
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.
|
||||
</description>
|
||||
<summary>
|
||||
SkiaSharp is a cross-platform 2D graphics API for .NET platforms that can be used across mobile, server and desktop models to render images.
|
||||
</summary>
|
||||
<releaseNotes>
|
||||
Please visit https://go.microsoft.com/fwlink/?linkid=868517 to view the release notes.
|
||||
</releaseNotes>
|
||||
<projectUrl>https://go.microsoft.com/fwlink/?linkid=868515</projectUrl>
|
||||
<iconUrl>https://go.microsoft.com/fwlink/?linkid=2130524</iconUrl>
|
||||
<tags>xamarin graphics ios android linux windows uwp tvos watchos macos tizen cross-platform wasm webassembly skiasharp</tags>
|
||||
|
||||
<!-- legal -->
|
||||
<licenseUrl>https://go.microsoft.com/fwlink/?linkid=868514</licenseUrl>
|
||||
<authors>Microsoft</authors>
|
||||
<owners>Microsoft</owners>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||
|
||||
</metadata>
|
||||
<files>
|
||||
|
||||
<!-- the build bits -->
|
||||
<file src="build/wasm/SkiaSharp.props" target="build/netstandard1.0/SkiaSharp.NativeAssets.WebAssembly.props" />
|
||||
|
||||
<!-- libSkiaSharp.a and other native files -->
|
||||
<file src="build/wasm/libSkiaSharp.a" target="build/netstandard1.0/libSkiaSharp.a" />
|
||||
|
||||
<!-- placeholders -->
|
||||
<file src="_._" target="lib/netstandard1.0/_._" />
|
||||
|
||||
<!-- legal -->
|
||||
<file src="LICENSE.txt" />
|
||||
<file src="THIRD-PARTY-NOTICES.txt" />
|
||||
|
||||
</files>
|
||||
</package>
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче