Browse Source

Updated Perspex.Skia.Desktop nuget

pull/509/head
Wiesław Šoltés 10 years ago
parent
commit
509f13fe3a
  1. 6
      nuget/build-version.ps1
  2. 10
      nuget/skia/build/net45/Perspex.Skia.Desktop.targets
  3. 1
      nuget/template/Perspex.Skia.Desktop.nuspec
  4. 16
      src/Skia/getnatives.ps1
  5. 13
      src/Skia/getnatives.sh
  6. 1
      src/Skia/native.url

6
nuget/build-version.ps1

@ -14,7 +14,6 @@ sv build "Perspex.Desktop\lib\net45"
sv skia_root "Perspex.Skia.Desktop"
sv skia_lib "Perspex.Skia.Desktop\lib\net45"
sv skia_native "Perspex.Skia.Desktop\build\net45\native"
sv android "Perspex.Android\lib\MonoAndroid10"
sv ios "Perspex.iOS\lib\Xamarin.iOS10"
@ -61,13 +60,8 @@ Copy-Item ..\src\Windows\Perspex.Win32\bin\Release\Perspex.Win32.dll $build
Copy-Item ..\src\Gtk\Perspex.Gtk\bin\Release\Perspex.Gtk.dll $build
Copy-Item ..\src\Gtk\Perspex.Cairo\bin\Release\Perspex.Cairo.dll $build
Copy-Item skia\build $skia_root -recurse
mkdir $skia_native
Copy-Item ..\src\Skia\native\Windows $skia_native -recurse
Copy-Item ..\src\Skia\native\Linux $skia_native -recurse
Copy-Item ..\src\Skia\Perspex.Skia.Desktop\bin\x86\Release\Perspex.Skia.Desktop.dll $skia_lib
Copy-Item ..\src\Android\Perspex.Android\bin\Release\Perspex.Android.dll $android
Copy-Item ..\src\Skia\Perspex.Skia.Android\bin\Release\Perspex.Skia.Android.dll $android

10
nuget/skia/build/net45/Perspex.Skia.Desktop.targets

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Condition="'$(MSBuildThisFileDirectory)' != '' And HasTrailingSlash('$(MSBuildThisFileDirectory)')">
<PlatformLibs Include="$(MSBuildThisFileDirectory)\native\**\*.*" />
<Content Include="@(PlatformLibs)">
<Link>native\%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

1
nuget/template/Perspex.Skia.Desktop.nuspec

@ -13,6 +13,7 @@
<copyright>Copyright 2015</copyright>
<tags>Perspex</tags>
<dependencies>
<dependency id="SkiaSharp" version="1.49.2.0-beta"/>
<dependency id="Perspex" version="#VERSION#" />
</dependencies>
</metadata>

16
src/Skia/getnatives.ps1

@ -1,16 +0,0 @@
$scriptpath = $MyInvocation.MyCommand.Path
$dir = Split-Path $scriptpath
Push-Location $dir
Add-Type -AssemblyName System.IO.Compression.FileSystem
rm -Force -Recurse .\native -ErrorAction SilentlyContinue
mkdir native
$url = cat native.url
$nativedir = join-path $dir "native"
$nativezip = join-path $nativedir "native.zip"
Invoke-WebRequest $url -OutFile $nativezip
[System.IO.Compression.ZipFile]::ExtractToDirectory(($nativezip), ($nativedir))
Pop-Location

13
src/Skia/getnatives.sh

@ -1,13 +0,0 @@
#!/bin/sh
rm -rf native native.zip
mkdir -p native
cd native
if which curl
then
curl `cat ../native.url` -o native.zip
else
wget `cat ../native.url` -O native.zip
fi
unzip native.zip
chmod -R +x .

1
src/Skia/native.url

@ -1 +0,0 @@
https://dl.dropboxusercontent.com/u/18301199/Perspex.Skia/abi-0003.zip
Loading…
Cancel
Save