Added the SkiaSharp.Views.Forms NuGets

This commit is contained in:
Matthew Leibowitz 2016-09-15 09:25:05 +02:00
Родитель 6fb1af16e9
Коммит d43d5919f4
7 изменённых файлов: 241 добавлений и 64 удалений

Просмотреть файл

@ -46,13 +46,6 @@ Task ("externals")
// LIBS - the managed C# libraries
////////////////////////////////////////////////////////////////////////////////////////////////////
Task ("libs")
.IsDependentOn ("libs-base")
.IsDependentOn ("libs-windows")
.IsDependentOn ("libs-osx")
.Does (() =>
{
});
Task ("libs-base")
.Does (() =>
{
@ -64,62 +57,68 @@ Task ("libs-base")
ReplaceTextInFiles ("./binding/SkiaSharp/Properties/SkiaSharpAssemblyInfo.cs", "{GIT_SHA}", sha);
}
});
Task ("libs-windows")
.WithCriteria (IsRunningOnWindows ())
.IsDependentOn ("externals")
.IsDependentOn ("libs-base")
.Does (() =>
{
// build
RunNuGetRestore ("binding/SkiaSharp.Windows.sln");
DotNetBuild ("binding/SkiaSharp.Windows.sln", c => {
c.Configuration = "Release";
});
if (!DirectoryExists ("./output/portable/")) CreateDirectory ("./output/portable/");
if (!DirectoryExists ("./output/windows/")) CreateDirectory ("./output/windows/");
if (!DirectoryExists ("./output/uwp/")) CreateDirectory ("./output/uwp/");
// copy build output
CopyFileToDirectory ("./binding/SkiaSharp.Portable/bin/Release/SkiaSharp.dll", "./output/portable/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.dll", "./output/windows/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.pdb", "./output/windows/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.dll.config", "./output/windows/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.Desktop.targets", "./output/windows/");
CopyFileToDirectory ("./binding/SkiaSharp.UWP/bin/Release/SkiaSharp.dll", "./output/uwp/");
CopyFileToDirectory ("./binding/SkiaSharp.UWP/bin/Release/SkiaSharp.pdb", "./output/uwp/");
CopyFileToDirectory ("./binding/SkiaSharp.UWP/bin/Release/SkiaSharp.pri", "./output/uwp/");
CopyFileToDirectory ("./binding/SkiaSharp.UWP/bin/Release/SkiaSharp.UWP.targets", "./output/uwp/");
});
Task ("libs-osx")
.WithCriteria (IsRunningOnUnix ())
.IsDependentOn ("externals")
.IsDependentOn ("libs-base")
.Does (() =>
{
// build
RunNuGetRestore ("binding/SkiaSharp.Mac.sln");
DotNetBuild ("binding/SkiaSharp.Mac.sln", c => {
c.Configuration = "Release";
});
if (!DirectoryExists ("./output/android/")) CreateDirectory ("./output/android/");
if (!DirectoryExists ("./output/ios/")) CreateDirectory ("./output/ios/");
if (!DirectoryExists ("./output/tvos/")) CreateDirectory ("./output/tvos/");
if (!DirectoryExists ("./output/osx/")) CreateDirectory ("./output/osx/");
if (!DirectoryExists ("./output/portable/")) CreateDirectory ("./output/portable/");
if (!DirectoryExists ("./output/mac/")) CreateDirectory ("./output/mac/");
// copy build output
CopyFileToDirectory ("./binding/SkiaSharp.Android/bin/Release/SkiaSharp.dll", "./output/android/");
CopyFileToDirectory ("./binding/SkiaSharp.iOS/bin/Release/SkiaSharp.dll", "./output/ios/");
CopyFileToDirectory ("./binding/SkiaSharp.tvOS/bin/Release/SkiaSharp.dll", "./output/tvos/");
CopyFileToDirectory ("./binding/SkiaSharp.OSX/bin/Release/SkiaSharp.dll", "./output/osx/");
CopyFileToDirectory ("./binding/SkiaSharp.OSX/bin/Release/SkiaSharp.OSX.targets", "./output/osx/");
CopyFileToDirectory ("./binding/SkiaSharp.Portable/bin/Release/SkiaSharp.dll", "./output/portable/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.dll", "./output/mac/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.Desktop.targets", "./output/mac/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.dll.config", "./output/mac/");
Task ("libs")
.IsDependentOn ("externals")
.IsDependentOn ("libs-base")
.Does (() =>
{
// set the SHA on the assembly info
var sha = EnvironmentVariable ("GIT_COMMIT") ?? string.Empty;
if (!string.IsNullOrEmpty (sha) && sha.Length >= 6) {
sha = sha.Substring (0, 6);
Information ("Setting Git SHA to {0}.", sha);
ReplaceTextInFiles ("./binding/SkiaSharp/Properties/SkiaSharpAssemblyInfo.cs", "{GIT_SHA}", sha);
}
if (IsRunningOnWindows ()) {
// build
RunNuGetRestore ("binding/SkiaSharp.Windows.sln");
DotNetBuild ("binding/SkiaSharp.Windows.sln", c => {
c.Configuration = "Release";
});
if (!DirectoryExists ("./output/portable/")) CreateDirectory ("./output/portable/");
if (!DirectoryExists ("./output/windows/")) CreateDirectory ("./output/windows/");
if (!DirectoryExists ("./output/uwp/")) CreateDirectory ("./output/uwp/");
// copy build output
CopyFileToDirectory ("./binding/SkiaSharp.Portable/bin/Release/SkiaSharp.dll", "./output/portable/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.dll", "./output/windows/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.pdb", "./output/windows/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.dll.config", "./output/windows/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.Desktop.targets", "./output/windows/");
CopyFileToDirectory ("./binding/SkiaSharp.UWP/bin/Release/SkiaSharp.dll", "./output/uwp/");
CopyFileToDirectory ("./binding/SkiaSharp.UWP/bin/Release/SkiaSharp.pdb", "./output/uwp/");
CopyFileToDirectory ("./binding/SkiaSharp.UWP/bin/Release/SkiaSharp.pri", "./output/uwp/");
CopyFileToDirectory ("./binding/SkiaSharp.UWP/bin/Release/SkiaSharp.UWP.targets", "./output/uwp/");
}
if (IsRunningOnUnix ()) {
// build
RunNuGetRestore ("binding/SkiaSharp.Mac.sln");
DotNetBuild ("binding/SkiaSharp.Mac.sln", c => {
c.Configuration = "Release";
});
if (!DirectoryExists ("./output/android/")) CreateDirectory ("./output/android/");
if (!DirectoryExists ("./output/ios/")) CreateDirectory ("./output/ios/");
if (!DirectoryExists ("./output/tvos/")) CreateDirectory ("./output/tvos/");
if (!DirectoryExists ("./output/osx/")) CreateDirectory ("./output/osx/");
if (!DirectoryExists ("./output/portable/")) CreateDirectory ("./output/portable/");
if (!DirectoryExists ("./output/mac/")) CreateDirectory ("./output/mac/");
// copy build output
CopyFileToDirectory ("./binding/SkiaSharp.Android/bin/Release/SkiaSharp.dll", "./output/android/");
CopyFileToDirectory ("./binding/SkiaSharp.iOS/bin/Release/SkiaSharp.dll", "./output/ios/");
CopyFileToDirectory ("./binding/SkiaSharp.tvOS/bin/Release/SkiaSharp.dll", "./output/tvos/");
CopyFileToDirectory ("./binding/SkiaSharp.OSX/bin/Release/SkiaSharp.dll", "./output/osx/");
CopyFileToDirectory ("./binding/SkiaSharp.OSX/bin/Release/SkiaSharp.OSX.targets", "./output/osx/");
CopyFileToDirectory ("./binding/SkiaSharp.Portable/bin/Release/SkiaSharp.dll", "./output/portable/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.dll", "./output/mac/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.Desktop.targets", "./output/mac/");
CopyFileToDirectory ("./binding/SkiaSharp.Desktop/bin/Release/SkiaSharp.dll.config", "./output/mac/");
}
});
////////////////////////////////////////////////////////////////////////////////////////////////////
@ -271,6 +270,37 @@ Task ("views")
}
});
Task ("views-forms")
.IsDependentOn ("libs")
.IsDependentOn ("nuget")
.IsDependentOn ("views")
.IsDependentOn ("views-nuget")
.Does (() =>
{
ClearSkiaSharpNuGetCache ();
if (IsRunningOnUnix ()) {
RunNuGetRestore ("./source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.Mac.sln");
DotNetBuild ("./source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.Mac.sln", c => {
c.Configuration = "Release";
});
CopyFileToDirectory ("./source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms/bin/Release/SkiaSharp.Views.Forms.dll", "./output/portable/");
CopyFileToDirectory ("./source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.Android/bin/Release/SkiaSharp.Views.Forms.dll", "./output/android/");
CopyFileToDirectory ("./source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.iOS/bin/Release/SkiaSharp.Views.Forms.dll", "./output/ios/");
}
if (IsRunningOnWindows ()) {
RunNuGetRestore ("./source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.Windows.sln");
DotNetBuild ("./source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.Windows.sln", c => {
c.Configuration = "Release";
});
CopyFileToDirectory ("./source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms/bin/Release/SkiaSharp.Views.Forms.dll", "./output/portable/");
CopyFileToDirectory ("./source/SkiaSharp.Views.Forms/SkiaSharp.Views.Forms.UWP/bin/Release/SkiaSharp.Views.Forms.dll", "./output/uwp/");
}
});
////////////////////////////////////////////////////////////////////////////////////////////////////
// DOCS - building the API documentation
////////////////////////////////////////////////////////////////////////////////////////////////////
@ -332,6 +362,23 @@ Task ("views-nuget")
}
});
Task ("views-forms-nuget")
.IsDependentOn ("views-forms")
.Does (() =>
{
// we can only build the combined package on CI
if (TARGET == "CI") {
PackageNuGet ("./nuget/SkiaSharp.Views.Forms.nuspec", "./output/");
} else {
if (IsRunningOnWindows ()) {
PackageNuGet ("./nuget/SkiaSharp.Views.Forms.Windows.nuspec", "./output/");
}
if (IsRunningOnUnix ()) {
PackageNuGet ("./nuget/SkiaSharp.Views.Forms.Mac.nuspec", "./output/");
}
}
});
////////////////////////////////////////////////////////////////////////////////////////////////////
// COMPONENT - building the package for components.xamarin.com
////////////////////////////////////////////////////////////////////////////////////////////////////

Просмотреть файл

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SkiaSharp</id>
<title>SkiaSharp (for OSX)</title>
<title>SkiaSharp (for macOS)</title>
<version>1.54.0.1</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>

Просмотреть файл

@ -0,0 +1,33 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>SkiaSharp.Views.Forms</id>
<title>SkiaSharp for Xamarin.Forms (for macOS)</title>
<version>1.54.0.1-beta1</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>SkiaSharp for Xamarin.Forms is a set of views that can be used to draw on the screen.</description>
<copyright>Copyright (c) Xamarin Inc. 2016</copyright>
<licenseUrl>https://github.com/mono/SkiaSharp/blob/master/LICENSE.md</licenseUrl>
<projectUrl>https://github.com/mono/SkiaSharp</projectUrl>
<iconUrl>https://cdn.rawgit.com/mono/SkiaSharp/v1.53.0/images/skia_256x256.png</iconUrl>
<dependencies>
<group>
<dependency id="Xamarin.Forms" version="2.3.0"/>
<dependency id="SkiaSharp" version="1.54.0.1" />
</group>
<group targetFramework="MonoAndroid">
<dependency id="SkiaSharp.Views" version="1.54.0.1-beta1" />
</group>
<group targetFramework="XamariniOS">
<dependency id="SkiaSharp.Views" version="1.54.0.1-beta1" />
</group>
</dependencies>
</metadata>
<files>
<file src="output/portable/SkiaSharp.Views.Forms.dll" target="lib/portable-net45+xamarinmac+xamarinios+monotouch+monoandroid+win8+wpa81+wp8+xamarin.watchos+xamarin.tvos" />
<file src="output/android/SkiaSharp.Views.Forms.dll" target="lib/MonoAndroid" />
<file src="output/ios/SkiaSharp.Views.Forms.dll" target="lib/XamariniOS" />
</files>
</package>

Просмотреть файл

@ -0,0 +1,29 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>SkiaSharp.Views.Forms</id>
<title>SkiaSharp for Xamarin.Forms (for Windows)</title>
<version>1.54.0.1-beta1</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>SkiaSharp for Xamarin.Forms is a set of views that can be used to draw on the screen.</description>
<copyright>Copyright (c) Xamarin Inc. 2016</copyright>
<licenseUrl>https://github.com/mono/SkiaSharp/blob/master/LICENSE.md</licenseUrl>
<projectUrl>https://github.com/mono/SkiaSharp</projectUrl>
<iconUrl>https://cdn.rawgit.com/mono/SkiaSharp/v1.53.0/images/skia_256x256.png</iconUrl>
<dependencies>
<group>
<dependency id="Xamarin.Forms" version="2.3.0"/>
<dependency id="SkiaSharp" version="1.54.0.1" />
</group>
<group targetFramework="uap10.0">
<dependency id="SkiaSharp.Views" version="1.54.0.1-beta1" />
</group>
</dependencies>
</metadata>
<files>
<file src="output/portable/SkiaSharp.Views.Forms.dll" target="lib/portable-net45+xamarinmac+xamarinios+monotouch+monoandroid+win8+wpa81+wp8+xamarin.watchos+xamarin.tvos" />
<file src="output/uwp/SkiaSharp.Views.Forms.dll" target="lib/uap10.0" />
</files>
</package>

Просмотреть файл

@ -0,0 +1,37 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>SkiaSharp.Views.Forms</id>
<title>SkiaSharp for Xamarin.Forms</title>
<version>1.54.0.1-beta1</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>SkiaSharp for Xamarin.Forms is a set of views that can be used to draw on the screen.</description>
<copyright>Copyright (c) Xamarin Inc. 2016</copyright>
<licenseUrl>https://github.com/mono/SkiaSharp/blob/master/LICENSE.md</licenseUrl>
<projectUrl>https://github.com/mono/SkiaSharp</projectUrl>
<iconUrl>https://cdn.rawgit.com/mono/SkiaSharp/v1.53.0/images/skia_256x256.png</iconUrl>
<dependencies>
<group>
<dependency id="Xamarin.Forms" version="2.3.0"/>
<dependency id="SkiaSharp" version="1.54.0.1" />
</group>
<group targetFramework="MonoAndroid">
<dependency id="SkiaSharp.Views" version="1.54.0.1-beta1" />
</group>
<group targetFramework="XamariniOS">
<dependency id="SkiaSharp.Views" version="1.54.0.1-beta1" />
</group>
<group targetFramework="uap10.0">
<dependency id="SkiaSharp.Views" version="1.54.0.1-beta1" />
</group>
</dependencies>
</metadata>
<files>
<file src="output/portable/SkiaSharp.Views.Forms.dll" target="lib/portable-net45+xamarinmac+xamarinios+monotouch+monoandroid+win8+wpa81+wp8+xamarin.watchos+xamarin.tvos" />
<file src="output/android/SkiaSharp.Views.Forms.dll" target="lib/MonoAndroid" />
<file src="output/ios/SkiaSharp.Views.Forms.dll" target="lib/XamariniOS" />
<file src="output/uwp/SkiaSharp.Views.Forms.dll" target="lib/uap10.0" />
</files>
</package>

Просмотреть файл

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SkiaSharp.Views</id>
<title>SkiaSharp Views &amp; Layers (for macOS)</title>
<title>SkiaSharp Views &amp; Layers</title>
<version>1.54.0.1-beta1</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>

Просмотреть файл

@ -0,0 +1,31 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkiaSharp.Views.Forms", "SkiaSharp.Views.Forms\SkiaSharp.Views.Forms.csproj", "{1555D119-8598-4E4D-91AC-D313F94A1673}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkiaSharp.Views.Forms.iOS", "SkiaSharp.Views.Forms.iOS\SkiaSharp.Views.Forms.iOS.csproj", "{4AC36D63-BF11-445F-81EE-107C0CEF4FC9}"
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "SkiaSharp.Views.Forms.Shared", "SkiaSharp.Views.Forms.Shared\SkiaSharp.Views.Forms.Shared.shproj", "{794B3FB8-5BCF-42FB-9D18-6BA595187B94}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkiaSharp.Views.Forms.Android", "SkiaSharp.Views.Forms.Android\SkiaSharp.Views.Forms.Android.csproj", "{2F94F024-1841-47E8-B521-74AA4E3EBA54}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1555D119-8598-4E4D-91AC-D313F94A1673}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1555D119-8598-4E4D-91AC-D313F94A1673}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1555D119-8598-4E4D-91AC-D313F94A1673}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1555D119-8598-4E4D-91AC-D313F94A1673}.Release|Any CPU.Build.0 = Release|Any CPU
{4AC36D63-BF11-445F-81EE-107C0CEF4FC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4AC36D63-BF11-445F-81EE-107C0CEF4FC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4AC36D63-BF11-445F-81EE-107C0CEF4FC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4AC36D63-BF11-445F-81EE-107C0CEF4FC9}.Release|Any CPU.Build.0 = Release|Any CPU
{2F94F024-1841-47E8-B521-74AA4E3EBA54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2F94F024-1841-47E8-B521-74AA4E3EBA54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2F94F024-1841-47E8-B521-74AA4E3EBA54}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2F94F024-1841-47E8-B521-74AA4E3EBA54}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal