提交 1ffbd30a 编写于 作者: V Vatsan Madhavan

Add a redist project for PresentationNative

上级 c516feed
此差异已折叠。
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup>
<ConfigurationType>DynamicLibrary</ConfigurationType>
<CLRSupport>false</CLRSupport>
</PropertyGroup>
<!--
These properties must be set before Microsoft.Cpp.Default.props, which in will in turn
inclucde WpfArcadeSdk\...\Packaging.props
-->
<PropertyGroup>
<!-- PresentationNative is usually categorized as RepoLocation=Internal. Ovedrride the default value -->
<RepoLocation>External</RepoLocation>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<Import Project="$(WpfCppProps)" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<PropertyGroup Label="Globals">
<TargetName>PresentationNative$(WpfVersionSuffix)</TargetName>
<VCProjectVersion>16.0</VCProjectVersion>
<ProjectGuid>{af9084c3-bf37-4a56-a851-89f3bae731b3}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<Target Name="DiscoverPresentationNativeSourcePath"
DependsOnTargets="CppHelper"
BeforeTargets="CopyRedistFile">
<!-- @(NuGetReferencesForCpp) will have the full paths for PresentationNative.dll and PresentationNative.pdb -->
<ItemGroup>
<_PresentationNative Include="$(TargetName)" />
</ItemGroup>
<FilterItem1ByItem2 Item1="@(NuGetReferencesForCpp->'%(FileName)')"
Item2="@(_PresentationNative)"
Metadata2="Identity"
PreserveItem1Metadata="true">
<Output ItemName="_PresentationNativeFiles" TaskParameter="Result" />
</FilterItem1ByItem2>
<ItemGroup>
<_PresentationNativeFilePaths Include="@(_PresentationNativeFiles->'%(FilePath)')" />
<_PresentationNativeDll Include="@(_PresentationNativeFilePaths)"
Condition="'%(_PresentationNativeFilePaths.Extension)'=='.dll'"/>
<_PresentationNativePdb Include="@(_PresentationNativeFilePaths)"
Condition="'%(_PresentationNativeFilePaths.Extension)'=='.pdb'"/>
</ItemGroup>
<PropertyGroup>
<!-- Semi-colon separated list of DLL, PDB files associated with PresentationNative.dll -->
<RedistSourcePath>@(_PresentationNativeDll)</RedistSourcePath>
</PropertyGroup>
<ItemGroup>
<!-- Request that the PDB also be copied to the same directory as $(TargetPath) -->
<AdditionalRedistFile Include="@(_PresentationNativePdb)">
<Destination>$([System.IO.Path]::GetDirectoryName(`$(TargetPath)`))</Destination>
</AdditionalRedistFile>
</ItemGroup>
</Target>
</Project>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册