Build the native into the native folder, and then link into the project

This commit is contained in:
Matthew Leibowitz 2018-09-07 17:03:52 +02:00
Родитель 3545960a6c
Коммит 0b924240fd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3650EBE4AA155AF9
2 изменённых файлов: 5 добавлений и 6 удалений

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

@ -179,12 +179,6 @@ Task ("externals-uwp")
EnsureDirectoryExists (outDir);
CopyFileToDirectory ($"source/SkiaSharp.Views.Interop.UWP/bin/{arch}/Release/SkiaSharp.Views.Interop.UWP.dll", outDir);
CopyFileToDirectory ($"source/SkiaSharp.Views.Interop.UWP/bin/{arch}/Release/SkiaSharp.Views.Interop.UWP.pdb", outDir);
// copy SkiaSharp.Views.Interop.UWP to output
outDir = $"output/SkiaSharp.Views/nuget/runtimes/win10-{dir}/nativeassets/uap10.0";
EnsureDirectoryExists (outDir);
CopyFileToDirectory ($"source/SkiaSharp.Views.Interop.UWP/bin/{arch}/Release/SkiaSharp.Views.Interop.UWP.dll", outDir);
CopyFileToDirectory ($"source/SkiaSharp.Views.Interop.UWP/bin/{arch}/Release/SkiaSharp.Views.Interop.UWP.pdb", outDir);
});
buildInteropArch ("Win32", "x86");

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

@ -17,6 +17,11 @@
<ItemGroup>
<ProjectReference Include="..\..\..\binding\SkiaSharp.UWP\SkiaSharp.UWP.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\..\output\native\uwp\x64\SkiaSharp.Views.Interop.UWP.dll" Link="nuget\runtimes\win10-x64\nativeassets\uap10.0\SkiaSharp.Views.Interop.UWP.dll" />
<None Include="..\..\..\output\native\uwp\x86\SkiaSharp.Views.Interop.UWP.dll" Link="nuget\runtimes\win10-x86\nativeassets\uap10.0\SkiaSharp.Views.Interop.UWP.dll" />
<None Include="..\..\..\output\native\uwp\arm\SkiaSharp.Views.Interop.UWP.dll" Link="nuget\runtimes\win10-arm\nativeassets\uap10.0\SkiaSharp.Views.Interop.UWP.dll" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\SkiaSharp.Views.Shared\**\*.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>