mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
47b47617c1
When ARM64 support was added the switch to the new chromiumembeddedframework.runtime was made It's actually CefSharp.Common.NETCore that does the copying of SwiftShader and Locales Update CefSharp.AfterBuild.targets to include the two folders.
79 lines
3.6 KiB
XML
79 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<!--
|
|
Used by the NetCore projects
|
|
The file is split from the CefSharp.Native.props file which is used by the NetFull
|
|
projects as it's likely a new set of packages for distributing the CEF files will
|
|
be used.
|
|
-->
|
|
<Target Name="CefSharpCopyBrowserSubprocess" AfterTargets="AfterBuild">
|
|
<ItemGroup>
|
|
<!-- We only need the .exe and .pdb but I don't know how to express that easily with MSBuild... -->
|
|
<SubProcessFiles Include="$(SolutionDir)CefSharp.BrowserSubprocess\bin.netcore\$(Platform)\$(Configuration)\$(TargetFramework)\CefSharp.BrowserSubprocess.*" />
|
|
</ItemGroup>
|
|
<Message Importance="high" Text="Copying $(SolutionDir)CefSharp.BrowserSubprocess\bin.netcore\$(Platform)\$(Configuration)\$(TargetFramework)\CefSharp.BrowserSubprocess.* to $(TargetDir)" />
|
|
<Copy SourceFiles="@(SubProcessFiles)" DestinationFolder="$(TargetDir)" />
|
|
</Target>
|
|
|
|
<!--
|
|
Include swiftshader and locales in the Example projects
|
|
-->
|
|
<Choose>
|
|
<When Condition="$(RuntimeIdentifier.StartsWith('win')) and $(RuntimeIdentifier.Contains('-x64'))">
|
|
<ItemGroup>
|
|
<Content Include="@(CefRuntimeWin64Locales)">
|
|
<Link>locales\%(RecursiveDir)%(FileName)%(Extension)</Link>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<PublishState>Included</PublishState>
|
|
<Visible>false</Visible>
|
|
<IncludeInVsix>true</IncludeInVsix>
|
|
</Content>
|
|
<Content Include="@(CefRuntimeWin64SwiftShader)">
|
|
<Link>swiftshader\%(RecursiveDir)%(FileName)%(Extension)</Link>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<PublishState>Included</PublishState>
|
|
<Visible>false</Visible>
|
|
<IncludeInVsix>true</IncludeInVsix>
|
|
</Content>
|
|
</ItemGroup>
|
|
</When>
|
|
<When Condition="$(RuntimeIdentifier.StartsWith('win')) and $(RuntimeIdentifier.Contains('-x86'))">
|
|
<ItemGroup>
|
|
<Content Include="@(CefRuntimeWin32Locales)">
|
|
<Link>locales\%(RecursiveDir)%(FileName)%(Extension)</Link>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<PublishState>Included</PublishState>
|
|
<Visible>false</Visible>
|
|
<IncludeInVsix>true</IncludeInVsix>
|
|
</Content>
|
|
<Content Include="@(CefRuntimeWin32SwiftShader)">
|
|
<Link>swiftshader\%(RecursiveDir)%(FileName)%(Extension)</Link>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<PublishState>Included</PublishState>
|
|
<Visible>false</Visible>
|
|
<IncludeInVsix>true</IncludeInVsix>
|
|
</Content>
|
|
</ItemGroup>
|
|
</When>
|
|
<When Condition="$(RuntimeIdentifier.StartsWith('win')) and $(RuntimeIdentifier.Contains('-arm64'))">
|
|
<ItemGroup>
|
|
<Content Include="@(CefRuntimeWinArm64Locales)">
|
|
<Link>locales\%(RecursiveDir)%(FileName)%(Extension)</Link>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<PublishState>Included</PublishState>
|
|
<Visible>false</Visible>
|
|
<IncludeInVsix>true</IncludeInVsix>
|
|
</Content>
|
|
<Content Include="@(CefRuntimeWinArm64SwiftShader)">
|
|
<Link>swiftshader\%(RecursiveDir)%(FileName)%(Extension)</Link>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<PublishState>Included</PublishState>
|
|
<Visible>false</Visible>
|
|
<IncludeInVsix>true</IncludeInVsix>
|
|
</Content>
|
|
</ItemGroup>
|
|
</When>
|
|
</Choose>
|
|
</Project>
|