Skip to content

Commit

Permalink
Simplify .props properties and targets
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed Feb 5, 2024
1 parent 764ecd0 commit 8c8c1b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 21 deletions.
10 changes: 3 additions & 7 deletions NuGet/chromiumembeddedframework.runtime.win-arm64.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@

<ItemGroup>
<CefRuntimeWinArm64 Include="$(MSBuildThisFileDirectory)..\runtimes\win-arm64\native\*.*" />
<_CefRuntimeWinArm64Locales Include="$(MSBuildThisFileDirectory)..\CEF\win-arm64\locales\*.*" />
<_CefRuntimeWinArm64Additional Include="$(MSBuildThisFileDirectory)..\CEF\win-arm64\**\*.*" />

<CefRedistArm64 Include="@(CefRuntimeWinArm64)" />
<CefRedistArm64 Include="@(_CefRuntimeWinArm64Locales->'locales\%(Filename)%(Extension)')" />
<CefRedistArm64 Include="@(_CefRuntimeWinArm64Additional)" />
</ItemGroup>

<Target Name="CefRedistArm64CopyResources">
<PropertyGroup>
<CefRedistArm64TargetDir Condition="'$(CefRedistArm64TargetDir)' == ''">$(TargetDir)</CefRedistArm64TargetDir>
<_CefRedistArm64LocalesTargetDir>$(CefRedistArm64TargetDir)\locales</_CefRedistArm64LocalesTargetDir>
</PropertyGroup>
<!--
Cannot gurantee access to the main CefRuntimeWinArm64 ItemGroup here
Expand All @@ -26,12 +25,9 @@
-->
<ItemGroup>
<_CefRuntimeWinArm64 Include="$(MSBuildThisFileDirectory)..\runtimes\win-arm64\native\*.*" />
<_CefRuntimeWinArm64Locales Include="$(MSBuildThisFileDirectory)..\CEF\win-arm64\locales\*.*" />
<_CefRuntimeWinArm64 Include="$(MSBuildThisFileDirectory)..\CEF\win-arm64\**\*.*" />
</ItemGroup>
<Message Importance="high" Text="Copying Chromium Embedded Framework Runtime arm64 files from $(MSBuildThisFileDirectory)..\runtimes\win-arm64\native to $(CefRedistArm64TargetDir)" />
<Copy SourceFiles="@(_CefRuntimeWinArm64)" DestinationFiles="@(_CefRuntimeWinArm64->'$(CefRedistArm64TargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />

<Message Importance="high" Text="Copying Chromium Embedded Framework Locales x86 files from $(MSBuildThisFileDirectory)..\CEF\win-x86\locales to $(_CefRedistArm64LocalesTargetDir)" />
<Copy SourceFiles="@(_CefRuntimeWinArm64Locales)" DestinationFiles="@(_CefRuntimeWinArm64Locales->'$(_CefRedistArm64LocalesTargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
</Target>
</Project>
10 changes: 3 additions & 7 deletions NuGet/chromiumembeddedframework.runtime.win-x64.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@

<ItemGroup>
<CefRuntimeWin64 Include="$(MSBuildThisFileDirectory)..\runtimes\win-x64\native\*.*" />
<_CefRuntimeWin64Locales Include="$(MSBuildThisFileDirectory)..\CEF\win-x64\locales\*.*" />
<_CefRuntimeWin64Additional Include="$(MSBuildThisFileDirectory)..\CEF\win-x64\**\*.*" />

<CefRedist64 Include="@(CefRuntimeWin64)" />
<CefRedist64 Include="@(_CefRuntimeWin64Locales->'locales\%(Filename)%(Extension)')" />
<CefRedist64 Include="@(_CefRuntimeWin64Additional)" />
</ItemGroup>

<Target Name="CefRedist64CopyResources">
<PropertyGroup>
<CefRedist64TargetDir Condition="'$(CefRedist64TargetDir)' == ''">$(TargetDir)</CefRedist64TargetDir>
<_CefRedist64LocalesTargetDir>$(CefRedist64TargetDir)\locales</_CefRedist64LocalesTargetDir>
</PropertyGroup>
<!--
Cannot gurantee access to the main CefRuntimeWin64 ItemGroup here
Expand All @@ -26,12 +25,9 @@
-->
<ItemGroup>
<_CefRuntimeWin64 Include="$(MSBuildThisFileDirectory)..\runtimes\win-x64\native\*.*" />
<_CefRuntimeWin64Locales Include="$(MSBuildThisFileDirectory)..\CEF\win-x64\locales\*.*" />
<_CefRuntimeWin64 Include="$(MSBuildThisFileDirectory)..\CEF\win-x64\**\*.*" />
</ItemGroup>
<Message Importance="high" Text="Copying Chromium Embedded Framework Runtime x64 files from $(MSBuildThisFileDirectory)..\runtimes\win-x64\native to $(CefRedist64TargetDir)" />
<Copy SourceFiles="@(_CefRuntimeWin64)" DestinationFiles="@(_CefRuntimeWin64->'$(CefRedist64TargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />

<Message Importance="high" Text="Copying Chromium Embedded Framework Locales x86 files from $(MSBuildThisFileDirectory)..\CEF\win-x86\locales to $(_CefRedist64LocalesTargetDir)" />
<Copy SourceFiles="@(_CefRuntimeWin64Locales)" DestinationFiles="@(_CefRuntimeWin64Locales->'$(_CefRedist64LocalesTargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
</Target>
</Project>
10 changes: 3 additions & 7 deletions NuGet/chromiumembeddedframework.runtime.win-x86.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@

<ItemGroup>
<CefRuntimeWin32 Include="$(MSBuildThisFileDirectory)..\runtimes\win-x86\native\*.*" />
<_CefRuntimeWin32Locales Include="$(MSBuildThisFileDirectory)..\CEF\win-x86\locales\*.*" />
<_CefRuntimeWin32Additional Include="$(MSBuildThisFileDirectory)..\CEF\win-x86\**\*.*" />

<CefRedist32 Include="@(CefRuntimeWin32)" />
<CefRedist32 Include="@(_CefRuntimeWin32Locales->'locales\%(Filename)%(Extension)')" />
<CefRedist32 Include="@(_CefRuntimeWin32Additional)" />
</ItemGroup>

<Target Name="CefRedist32CopyResources">
<PropertyGroup>
<CefRedist32TargetDir Condition="'$(CefRedist32TargetDir)' == ''">$(TargetDir)</CefRedist32TargetDir>
<_CefRedist32LocalesTargetDir>$(CefRedist32TargetDir)\locales</_CefRedist32LocalesTargetDir>
</PropertyGroup>
<!--
Cannot gurantee access to the main CefRuntimeWin32 ItemGroup here
Expand All @@ -26,12 +25,9 @@
-->
<ItemGroup>
<_CefRuntimeWin32 Include="$(MSBuildThisFileDirectory)..\runtimes\win-x86\native\*.*" />
<_CefRuntimeWin32Locales Include="$(MSBuildThisFileDirectory)..\CEF\win-x86\locales\*.*" />
<_CefRuntimeWin32 Include="$(MSBuildThisFileDirectory)..\CEF\win-x86\**\*.*" />
</ItemGroup>
<Message Importance="high" Text="Copying Chromium Embedded Framework Runtime x86 files from $(MSBuildThisFileDirectory)..\runtimes\win-x86\native to $(CefRedist32TargetDir)" />
<Copy SourceFiles="@(_CefRuntimeWin32)" DestinationFiles="@(_CefRuntimeWin32->'$(CefRedist32TargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />

<Message Importance="high" Text="Copying Chromium Embedded Framework Locales x86 files from $(MSBuildThisFileDirectory)..\CEF\win-x86\locales to $(_CefRedist32LocalesTargetDir)" />
<Copy SourceFiles="@(_CefRuntimeWin32Locales)" DestinationFiles="@(_CefRuntimeWin32Locales->'$(_CefRedist32LocalesTargetDir)\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="true" />
</Target>
</Project>

0 comments on commit 8c8c1b7

Please sign in to comment.